From 13d6e24c5b89d86f1ff5d2b0849dff3df288b84d Mon Sep 17 00:00:00 2001 From: Ivan Dagelic Date: Wed, 22 Jan 2025 12:45:52 +0100 Subject: [PATCH] initial Signed-off-by: Ivan Dagelic --- README.md | 591 + api/openapi.yaml | 30616 ++++++++++++++++ api_attack_detection.go | 313 + api_authentication_management.go | 3960 ++ api_client_attribute_certificate.go | 700 + api_client_initial_access.go | 329 + api_client_registration_policy.go | 125 + api_client_role_mappings.go | 1133 + api_client_scopes.go | 1027 + api_clients.go | 3745 ++ api_component.go | 667 + api_default.go | 4465 +++ api_groups.go | 1341 + api_identity_providers.go | 1851 + api_key.go | 125 + api_organizations.go | 2007 + api_protocol_mappers.go | 2225 ++ api_realms_admin.go | 4789 +++ api_role_mapper.go | 1305 + api_roles.go | 3209 ++ api_roles_by_id.go | 1098 + api_scope_mappings.go | 3629 ++ api_users.go | 3862 ++ client.go | 711 + configuration.go | 214 + docs/AbstractPolicyRepresentation.md | 342 + docs/Access.md | 82 + docs/AccessToken.md | 1148 + docs/AddressClaimSet.md | 186 + docs/AdminEventRepresentation.md | 264 + docs/ApplicationRepresentation.md | 1200 + docs/AttackDetectionAPI.md | 217 + docs/AuthDetailsRepresentation.md | 134 + ...enticationExecutionExportRepresentation.md | 238 + ...thenticationExecutionInfoRepresentation.md | 394 + docs/AuthenticationExecutionRepresentation.md | 264 + docs/AuthenticationFlowRepresentation.md | 212 + docs/AuthenticationManagementAPI.md | 2765 ++ docs/AuthenticatorConfigInfoRepresentation.md | 134 + docs/AuthenticatorConfigRepresentation.md | 108 + docs/Authorization.md | 56 + docs/BruteForceStrategy.md | 13 + docs/CertificateRepresentation.md | 134 + docs/ClaimRepresentation.md | 290 + docs/ClientAttributeCertificateAPI.md | 462 + docs/ClientInitialAccessAPI.md | 218 + docs/ClientInitialAccessCreatePresentation.md | 82 + docs/ClientInitialAccessPresentation.md | 186 + docs/ClientMappingsRepresentation.md | 108 + docs/ClientPoliciesRepresentation.md | 82 + docs/ClientPolicyConditionRepresentation.md | 82 + docs/ClientPolicyExecutorRepresentation.md | 82 + docs/ClientPolicyRepresentation.md | 160 + docs/ClientProfileRepresentation.md | 108 + docs/ClientProfilesRepresentation.md | 82 + docs/ClientRegistrationPolicyAPI.md | 77 + docs/ClientRepresentation.md | 1174 + docs/ClientRoleMappingsAPI.md | 762 + docs/ClientScopeRepresentation.md | 186 + docs/ClientScopesAPI.md | 712 + docs/ClientTemplateRepresentation.md | 420 + docs/ClientTypeRepresentation.md | 134 + docs/ClientTypesRepresentation.md | 82 + docs/ClientsAPI.md | 2506 ++ docs/ComponentAPI.md | 440 + docs/ComponentExportRepresentation.md | 186 + docs/ComponentRepresentation.md | 212 + docs/ComponentTypeRepresentation.md | 134 + docs/Composites.md | 108 + docs/ConfigPropertyRepresentation.md | 274 + docs/Confirmation.md | 82 + docs/CredentialRepresentation.md | 498 + docs/DecisionEffect.md | 13 + docs/DecisionStrategy.md | 15 + docs/DefaultAPI.md | 2529 ++ docs/EnforcementMode.md | 15 + docs/EvaluationResultRepresentation.md | 160 + docs/EventRepresentation.md | 264 + docs/FederatedIdentityRepresentation.md | 108 + docs/GlobalRequestResult.md | 82 + docs/GroupRepresentation.md | 290 + docs/GroupsAPI.md | 829 + docs/IDToken.md | 966 + docs/IdentityProviderMapperRepresentation.md | 160 + ...dentityProviderMapperTypeRepresentation.md | 160 + docs/IdentityProviderRepresentation.md | 472 + docs/IdentityProvidersAPI.md | 1244 + docs/InstallationAdapterConfig.md | 342 + docs/KeyAPI.md | 77 + docs/KeyMetadataRepresentation.md | 290 + docs/KeyStoreConfig.md | 186 + docs/KeyUse.md | 13 + docs/KeysMetadataRepresentation.md | 82 + docs/Logic.md | 13 + docs/ManagementPermissionReference.md | 108 + docs/MappingsRepresentation.md | 82 + docs/MemberRepresentation.md | 758 + docs/MembershipType.md | 13 + docs/MethodConfig.md | 108 + docs/OAuthClientRepresentation.md | 1200 + docs/OrganizationDomainRepresentation.md | 82 + docs/OrganizationRepresentation.md | 290 + docs/OrganizationsAPI.md | 1343 + docs/PathCacheConfig.md | 82 + docs/PathConfig.md | 316 + docs/Permission.md | 134 + docs/PolicyEnforcementMode.md | 15 + docs/PolicyEnforcerConfig.md | 342 + docs/PolicyEvaluationRequest.md | 186 + docs/PolicyEvaluationResponse.md | 134 + docs/PolicyProviderRepresentation.md | 108 + docs/PolicyRepresentation.md | 368 + docs/PolicyResultRepresentation.md | 134 + docs/PropertyConfig.md | 92 + .../ProtocolMapperEvaluationRepresentation.md | 186 + docs/ProtocolMapperRepresentation.md | 212 + docs/ProtocolMappersAPI.md | 1550 + docs/PublishedRealmRepresentation.md | 160 + docs/RealmEventsConfigRepresentation.md | 186 + docs/RealmRepresentation.md | 3875 ++ docs/RealmsAdminAPI.md | 3198 ++ .../RequiredActionConfigInfoRepresentation.md | 56 + docs/RequiredActionConfigRepresentation.md | 56 + docs/RequiredActionProviderRepresentation.md | 212 + docs/ResourceOwnerRepresentation.md | 82 + docs/ResourceRepresentation.md | 342 + docs/ResourceServerRepresentation.md | 264 + docs/RoleMapperAPI.md | 876 + docs/RoleRepresentation.md | 264 + docs/RolesAPI.md | 2100 ++ docs/RolesByIDAPI.md | 737 + docs/RolesRepresentation.md | 108 + docs/ScopeEnforcementMode.md | 15 + docs/ScopeMappingRepresentation.md | 160 + docs/ScopeMappingsAPI.md | 2447 ++ docs/ScopeRepresentation.md | 186 + docs/SocialLinkRepresentation.md | 108 + docs/UPAttribute.md | 264 + docs/UPAttributePermissions.md | 82 + docs/UPAttributeRequired.md | 82 + docs/UPAttributeSelector.md | 56 + docs/UPConfig.md | 108 + docs/UPGroup.md | 134 + docs/UnmanagedAttributePolicy.md | 15 + docs/UserConsentRepresentation.md | 160 + docs/UserFederationMapperRepresentation.md | 160 + docs/UserFederationProviderRepresentation.md | 238 + docs/UserProfileAttributeGroupMetadata.md | 134 + docs/UserProfileAttributeMetadata.md | 238 + docs/UserProfileMetadata.md | 82 + docs/UserRepresentation.md | 732 + docs/UserSessionRepresentation.md | 264 + docs/UsersAPI.md | 2537 ++ git_push.sh | 57 + model_abstract_policy_representation.go | 520 + model_access.go | 160 + model_access_token.go | 1636 + model_address_claim_set.go | 304 + model_admin_event_representation.go | 412 + model_application_representation.go | 1736 + model_auth_details_representation.go | 232 + ...ication_execution_export_representation.go | 380 + ...ntication_execution_info_representation.go | 592 + ...authentication_execution_representation.go | 416 + model_authentication_flow_representation.go | 340 + ...uthenticator_config_info_representation.go | 232 + model_authenticator_config_representation.go | 196 + model_authorization.go | 124 + model_brute_force_strategy.go | 110 + model_certificate_representation.go | 232 + model_claim_representation.go | 448 + ...ient_initial_access_create_presentation.go | 160 + model_client_initial_access_presentation.go | 304 + model_client_mappings_representation.go | 196 + model_client_policies_representation.go | 160 + ..._client_policy_condition_representation.go | 160 + ...l_client_policy_executor_representation.go | 160 + model_client_policy_representation.go | 268 + model_client_profile_representation.go | 196 + model_client_profiles_representation.go | 160 + model_client_representation.go | 1696 + model_client_scope_representation.go | 304 + model_client_template_representation.go | 628 + model_client_type_representation.go | 232 + model_client_types_representation.go | 160 + model_component_export_representation.go | 304 + model_component_representation.go | 340 + model_component_type_representation.go | 232 + model_composites.go | 200 + model_config_property_representation.go | 413 + model_confirmation.go | 160 + model_credential_representation.go | 772 + model_decision_effect.go | 110 + model_decision_strategy.go | 112 + model_enforcement_mode.go | 112 + model_evaluation_result_representation.go | 268 + model_event_representation.go | 412 + model_federated_identity_representation.go | 196 + model_global_request_result.go | 160 + model_group_representation.go | 448 + model_id_token.go | 1384 + ...identity_provider_mapper_representation.go | 268 + ...ity_provider_mapper_type_representation.go | 268 + model_identity_provider_representation.go | 708 + model_installation_adapter_config.go | 520 + model_key_metadata_representation.go | 448 + model_key_store_config.go | 304 + model_key_use.go | 110 + model_keys_metadata_representation.go | 160 + model_logic.go | 110 + model_management_permission_reference.go | 196 + model_mappings_representation.go | 160 + model_member_representation.go | 1104 + model_membership_type.go | 110 + model_method_config.go | 196 + model_o_auth_client_representation.go | 1736 + model_organization_domain_representation.go | 160 + model_organization_representation.go | 448 + model_path_cache_config.go | 160 + model_path_config.go | 484 + model_permission.go | 232 + model_policy_enforcement_mode.go | 112 + model_policy_enforcer_config.go | 520 + model_policy_evaluation_request.go | 304 + model_policy_evaluation_response.go | 232 + model_policy_provider_representation.go | 196 + model_policy_representation.go | 556 + model_policy_result_representation.go | 232 + model_property_config.go | 161 + ...otocol_mapper_evaluation_representation.go | 304 + model_protocol_mapper_representation.go | 348 + model_published_realm_representation.go | 268 + model_realm_events_config_representation.go | 304 + model_realm_representation.go | 5480 +++ ...uired_action_config_info_representation.go | 124 + ...l_required_action_config_representation.go | 124 + ...required_action_provider_representation.go | 340 + model_resource_owner_representation.go | 160 + model_resource_representation.go | 524 + model_resource_server_representation.go | 412 + model_role_representation.go | 416 + model_roles_representation.go | 200 + model_scope_enforcement_mode.go | 112 + model_scope_mapping_representation.go | 272 + model_scope_representation.go | 304 + model_social_link_representation.go | 196 + model_unmanaged_attribute_policy.go | 112 + model_up_attribute.go | 412 + model_up_attribute_permissions.go | 160 + model_up_attribute_required.go | 160 + model_up_attribute_selector.go | 124 + model_up_config.go | 196 + model_up_group.go | 232 + model_user_consent_representation.go | 272 + ...l_user_federation_mapper_representation.go | 268 + ...user_federation_provider_representation.go | 376 + ...l_user_profile_attribute_group_metadata.go | 232 + model_user_profile_attribute_metadata.go | 376 + model_user_profile_metadata.go | 160 + model_user_representation.go | 1068 + model_user_session_representation.go | 412 + response.go | 47 + test/api_attack_detection_test.go | 67 + test/api_authentication_management_test.go | 577 + test/api_client_attribute_certificate_test.go | 121 + test/api_client_initial_access_test.go | 67 + test/api_client_registration_policy_test.go | 39 + test/api_client_role_mappings_test.go | 181 + test/api_client_scopes_test.go | 165 + test/api_clients_test.go | 530 + test/api_component_test.go | 110 + test/api_default_test.go | 491 + test/api_groups_test.go | 183 + test/api_identity_providers_test.go | 273 + test/api_key_test.go | 39 + test/api_organizations_test.go | 290 + test/api_protocol_mappers_test.go | 340 + test/api_realms_admin_test.go | 645 + test/api_role_mapper_test.go | 201 + test/api_roles_by_id_test.go | 172 + test/api_roles_test.go | 447 + test/api_scope_mappings_test.go | 523 + test/api_users_test.go | 522 + utils.go | 361 + 284 files changed, 178296 insertions(+) create mode 100644 README.md create mode 100644 api/openapi.yaml create mode 100644 api_attack_detection.go create mode 100644 api_authentication_management.go create mode 100644 api_client_attribute_certificate.go create mode 100644 api_client_initial_access.go create mode 100644 api_client_registration_policy.go create mode 100644 api_client_role_mappings.go create mode 100644 api_client_scopes.go create mode 100644 api_clients.go create mode 100644 api_component.go create mode 100644 api_default.go create mode 100644 api_groups.go create mode 100644 api_identity_providers.go create mode 100644 api_key.go create mode 100644 api_organizations.go create mode 100644 api_protocol_mappers.go create mode 100644 api_realms_admin.go create mode 100644 api_role_mapper.go create mode 100644 api_roles.go create mode 100644 api_roles_by_id.go create mode 100644 api_scope_mappings.go create mode 100644 api_users.go create mode 100644 client.go create mode 100644 configuration.go create mode 100644 docs/AbstractPolicyRepresentation.md create mode 100644 docs/Access.md create mode 100644 docs/AccessToken.md create mode 100644 docs/AddressClaimSet.md create mode 100644 docs/AdminEventRepresentation.md create mode 100644 docs/ApplicationRepresentation.md create mode 100644 docs/AttackDetectionAPI.md create mode 100644 docs/AuthDetailsRepresentation.md create mode 100644 docs/AuthenticationExecutionExportRepresentation.md create mode 100644 docs/AuthenticationExecutionInfoRepresentation.md create mode 100644 docs/AuthenticationExecutionRepresentation.md create mode 100644 docs/AuthenticationFlowRepresentation.md create mode 100644 docs/AuthenticationManagementAPI.md create mode 100644 docs/AuthenticatorConfigInfoRepresentation.md create mode 100644 docs/AuthenticatorConfigRepresentation.md create mode 100644 docs/Authorization.md create mode 100644 docs/BruteForceStrategy.md create mode 100644 docs/CertificateRepresentation.md create mode 100644 docs/ClaimRepresentation.md create mode 100644 docs/ClientAttributeCertificateAPI.md create mode 100644 docs/ClientInitialAccessAPI.md create mode 100644 docs/ClientInitialAccessCreatePresentation.md create mode 100644 docs/ClientInitialAccessPresentation.md create mode 100644 docs/ClientMappingsRepresentation.md create mode 100644 docs/ClientPoliciesRepresentation.md create mode 100644 docs/ClientPolicyConditionRepresentation.md create mode 100644 docs/ClientPolicyExecutorRepresentation.md create mode 100644 docs/ClientPolicyRepresentation.md create mode 100644 docs/ClientProfileRepresentation.md create mode 100644 docs/ClientProfilesRepresentation.md create mode 100644 docs/ClientRegistrationPolicyAPI.md create mode 100644 docs/ClientRepresentation.md create mode 100644 docs/ClientRoleMappingsAPI.md create mode 100644 docs/ClientScopeRepresentation.md create mode 100644 docs/ClientScopesAPI.md create mode 100644 docs/ClientTemplateRepresentation.md create mode 100644 docs/ClientTypeRepresentation.md create mode 100644 docs/ClientTypesRepresentation.md create mode 100644 docs/ClientsAPI.md create mode 100644 docs/ComponentAPI.md create mode 100644 docs/ComponentExportRepresentation.md create mode 100644 docs/ComponentRepresentation.md create mode 100644 docs/ComponentTypeRepresentation.md create mode 100644 docs/Composites.md create mode 100644 docs/ConfigPropertyRepresentation.md create mode 100644 docs/Confirmation.md create mode 100644 docs/CredentialRepresentation.md create mode 100644 docs/DecisionEffect.md create mode 100644 docs/DecisionStrategy.md create mode 100644 docs/DefaultAPI.md create mode 100644 docs/EnforcementMode.md create mode 100644 docs/EvaluationResultRepresentation.md create mode 100644 docs/EventRepresentation.md create mode 100644 docs/FederatedIdentityRepresentation.md create mode 100644 docs/GlobalRequestResult.md create mode 100644 docs/GroupRepresentation.md create mode 100644 docs/GroupsAPI.md create mode 100644 docs/IDToken.md create mode 100644 docs/IdentityProviderMapperRepresentation.md create mode 100644 docs/IdentityProviderMapperTypeRepresentation.md create mode 100644 docs/IdentityProviderRepresentation.md create mode 100644 docs/IdentityProvidersAPI.md create mode 100644 docs/InstallationAdapterConfig.md create mode 100644 docs/KeyAPI.md create mode 100644 docs/KeyMetadataRepresentation.md create mode 100644 docs/KeyStoreConfig.md create mode 100644 docs/KeyUse.md create mode 100644 docs/KeysMetadataRepresentation.md create mode 100644 docs/Logic.md create mode 100644 docs/ManagementPermissionReference.md create mode 100644 docs/MappingsRepresentation.md create mode 100644 docs/MemberRepresentation.md create mode 100644 docs/MembershipType.md create mode 100644 docs/MethodConfig.md create mode 100644 docs/OAuthClientRepresentation.md create mode 100644 docs/OrganizationDomainRepresentation.md create mode 100644 docs/OrganizationRepresentation.md create mode 100644 docs/OrganizationsAPI.md create mode 100644 docs/PathCacheConfig.md create mode 100644 docs/PathConfig.md create mode 100644 docs/Permission.md create mode 100644 docs/PolicyEnforcementMode.md create mode 100644 docs/PolicyEnforcerConfig.md create mode 100644 docs/PolicyEvaluationRequest.md create mode 100644 docs/PolicyEvaluationResponse.md create mode 100644 docs/PolicyProviderRepresentation.md create mode 100644 docs/PolicyRepresentation.md create mode 100644 docs/PolicyResultRepresentation.md create mode 100644 docs/PropertyConfig.md create mode 100644 docs/ProtocolMapperEvaluationRepresentation.md create mode 100644 docs/ProtocolMapperRepresentation.md create mode 100644 docs/ProtocolMappersAPI.md create mode 100644 docs/PublishedRealmRepresentation.md create mode 100644 docs/RealmEventsConfigRepresentation.md create mode 100644 docs/RealmRepresentation.md create mode 100644 docs/RealmsAdminAPI.md create mode 100644 docs/RequiredActionConfigInfoRepresentation.md create mode 100644 docs/RequiredActionConfigRepresentation.md create mode 100644 docs/RequiredActionProviderRepresentation.md create mode 100644 docs/ResourceOwnerRepresentation.md create mode 100644 docs/ResourceRepresentation.md create mode 100644 docs/ResourceServerRepresentation.md create mode 100644 docs/RoleMapperAPI.md create mode 100644 docs/RoleRepresentation.md create mode 100644 docs/RolesAPI.md create mode 100644 docs/RolesByIDAPI.md create mode 100644 docs/RolesRepresentation.md create mode 100644 docs/ScopeEnforcementMode.md create mode 100644 docs/ScopeMappingRepresentation.md create mode 100644 docs/ScopeMappingsAPI.md create mode 100644 docs/ScopeRepresentation.md create mode 100644 docs/SocialLinkRepresentation.md create mode 100644 docs/UPAttribute.md create mode 100644 docs/UPAttributePermissions.md create mode 100644 docs/UPAttributeRequired.md create mode 100644 docs/UPAttributeSelector.md create mode 100644 docs/UPConfig.md create mode 100644 docs/UPGroup.md create mode 100644 docs/UnmanagedAttributePolicy.md create mode 100644 docs/UserConsentRepresentation.md create mode 100644 docs/UserFederationMapperRepresentation.md create mode 100644 docs/UserFederationProviderRepresentation.md create mode 100644 docs/UserProfileAttributeGroupMetadata.md create mode 100644 docs/UserProfileAttributeMetadata.md create mode 100644 docs/UserProfileMetadata.md create mode 100644 docs/UserRepresentation.md create mode 100644 docs/UserSessionRepresentation.md create mode 100644 docs/UsersAPI.md create mode 100644 git_push.sh create mode 100644 model_abstract_policy_representation.go create mode 100644 model_access.go create mode 100644 model_access_token.go create mode 100644 model_address_claim_set.go create mode 100644 model_admin_event_representation.go create mode 100644 model_application_representation.go create mode 100644 model_auth_details_representation.go create mode 100644 model_authentication_execution_export_representation.go create mode 100644 model_authentication_execution_info_representation.go create mode 100644 model_authentication_execution_representation.go create mode 100644 model_authentication_flow_representation.go create mode 100644 model_authenticator_config_info_representation.go create mode 100644 model_authenticator_config_representation.go create mode 100644 model_authorization.go create mode 100644 model_brute_force_strategy.go create mode 100644 model_certificate_representation.go create mode 100644 model_claim_representation.go create mode 100644 model_client_initial_access_create_presentation.go create mode 100644 model_client_initial_access_presentation.go create mode 100644 model_client_mappings_representation.go create mode 100644 model_client_policies_representation.go create mode 100644 model_client_policy_condition_representation.go create mode 100644 model_client_policy_executor_representation.go create mode 100644 model_client_policy_representation.go create mode 100644 model_client_profile_representation.go create mode 100644 model_client_profiles_representation.go create mode 100644 model_client_representation.go create mode 100644 model_client_scope_representation.go create mode 100644 model_client_template_representation.go create mode 100644 model_client_type_representation.go create mode 100644 model_client_types_representation.go create mode 100644 model_component_export_representation.go create mode 100644 model_component_representation.go create mode 100644 model_component_type_representation.go create mode 100644 model_composites.go create mode 100644 model_config_property_representation.go create mode 100644 model_confirmation.go create mode 100644 model_credential_representation.go create mode 100644 model_decision_effect.go create mode 100644 model_decision_strategy.go create mode 100644 model_enforcement_mode.go create mode 100644 model_evaluation_result_representation.go create mode 100644 model_event_representation.go create mode 100644 model_federated_identity_representation.go create mode 100644 model_global_request_result.go create mode 100644 model_group_representation.go create mode 100644 model_id_token.go create mode 100644 model_identity_provider_mapper_representation.go create mode 100644 model_identity_provider_mapper_type_representation.go create mode 100644 model_identity_provider_representation.go create mode 100644 model_installation_adapter_config.go create mode 100644 model_key_metadata_representation.go create mode 100644 model_key_store_config.go create mode 100644 model_key_use.go create mode 100644 model_keys_metadata_representation.go create mode 100644 model_logic.go create mode 100644 model_management_permission_reference.go create mode 100644 model_mappings_representation.go create mode 100644 model_member_representation.go create mode 100644 model_membership_type.go create mode 100644 model_method_config.go create mode 100644 model_o_auth_client_representation.go create mode 100644 model_organization_domain_representation.go create mode 100644 model_organization_representation.go create mode 100644 model_path_cache_config.go create mode 100644 model_path_config.go create mode 100644 model_permission.go create mode 100644 model_policy_enforcement_mode.go create mode 100644 model_policy_enforcer_config.go create mode 100644 model_policy_evaluation_request.go create mode 100644 model_policy_evaluation_response.go create mode 100644 model_policy_provider_representation.go create mode 100644 model_policy_representation.go create mode 100644 model_policy_result_representation.go create mode 100644 model_property_config.go create mode 100644 model_protocol_mapper_evaluation_representation.go create mode 100644 model_protocol_mapper_representation.go create mode 100644 model_published_realm_representation.go create mode 100644 model_realm_events_config_representation.go create mode 100644 model_realm_representation.go create mode 100644 model_required_action_config_info_representation.go create mode 100644 model_required_action_config_representation.go create mode 100644 model_required_action_provider_representation.go create mode 100644 model_resource_owner_representation.go create mode 100644 model_resource_representation.go create mode 100644 model_resource_server_representation.go create mode 100644 model_role_representation.go create mode 100644 model_roles_representation.go create mode 100644 model_scope_enforcement_mode.go create mode 100644 model_scope_mapping_representation.go create mode 100644 model_scope_representation.go create mode 100644 model_social_link_representation.go create mode 100644 model_unmanaged_attribute_policy.go create mode 100644 model_up_attribute.go create mode 100644 model_up_attribute_permissions.go create mode 100644 model_up_attribute_required.go create mode 100644 model_up_attribute_selector.go create mode 100644 model_up_config.go create mode 100644 model_up_group.go create mode 100644 model_user_consent_representation.go create mode 100644 model_user_federation_mapper_representation.go create mode 100644 model_user_federation_provider_representation.go create mode 100644 model_user_profile_attribute_group_metadata.go create mode 100644 model_user_profile_attribute_metadata.go create mode 100644 model_user_profile_metadata.go create mode 100644 model_user_representation.go create mode 100644 model_user_session_representation.go create mode 100644 response.go create mode 100644 test/api_attack_detection_test.go create mode 100644 test/api_authentication_management_test.go create mode 100644 test/api_client_attribute_certificate_test.go create mode 100644 test/api_client_initial_access_test.go create mode 100644 test/api_client_registration_policy_test.go create mode 100644 test/api_client_role_mappings_test.go create mode 100644 test/api_client_scopes_test.go create mode 100644 test/api_clients_test.go create mode 100644 test/api_component_test.go create mode 100644 test/api_default_test.go create mode 100644 test/api_groups_test.go create mode 100644 test/api_identity_providers_test.go create mode 100644 test/api_key_test.go create mode 100644 test/api_organizations_test.go create mode 100644 test/api_protocol_mappers_test.go create mode 100644 test/api_realms_admin_test.go create mode 100644 test/api_role_mapper_test.go create mode 100644 test/api_roles_by_id_test.go create mode 100644 test/api_roles_test.go create mode 100644 test/api_scope_mappings_test.go create mode 100644 test/api_users_test.go create mode 100644 utils.go diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc3f474 --- /dev/null +++ b/README.md @@ -0,0 +1,591 @@ +# Go API client for keycloak_admin_client + +This is a REST API reference for the Keycloak Admin REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.0 +- Package version: 1.0.0 +- Generator version: 7.9.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import keycloak_admin_client "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `keycloak_admin_client.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), keycloak_admin_client.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `keycloak_admin_client.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), keycloak_admin_client.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `keycloak_admin_client.ContextOperationServerIndices` and `keycloak_admin_client.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), keycloak_admin_client.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), keycloak_admin_client.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AttackDetectionAPI* | [**AdminRealmsRealmAttackDetectionBruteForceUsersDelete**](docs/AttackDetectionAPI.md#adminrealmsrealmattackdetectionbruteforceusersdelete) | **Delete** /admin/realms/{realm}/attack-detection/brute-force/users | Clear any user login failures for all users This can release temporary disabled users +*AttackDetectionAPI* | [**AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete**](docs/AttackDetectionAPI.md#adminrealmsrealmattackdetectionbruteforceusersuseriddelete) | **Delete** /admin/realms/{realm}/attack-detection/brute-force/users/{userId} | Clear any user login failures for the user This can release temporary disabled user +*AttackDetectionAPI* | [**AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet**](docs/AttackDetectionAPI.md#adminrealmsrealmattackdetectionbruteforceusersuseridget) | **Get** /admin/realms/{realm}/attack-detection/brute-force/users/{userId} | Get status of a username in brute force detection +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationAuthenticatorProvidersGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationauthenticatorprovidersget) | **Get** /admin/realms/{realm}/authentication/authenticator-providers | Get authenticator providers Returns a stream of authenticator providers. +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationclientauthenticatorprovidersget) | **Get** /admin/realms/{realm}/authentication/client-authenticator-providers | Get client authenticator providers Returns a stream of client authenticator providers. +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationconfigdescriptionprovideridget) | **Get** /admin/realms/{realm}/authentication/config-description/{providerId} | Get authenticator provider's configuration description +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationConfigIdDelete**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationconfigiddelete) | **Delete** /admin/realms/{realm}/authentication/config/{id} | Delete authenticator configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationConfigIdGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationconfigidget) | **Get** /admin/realms/{realm}/authentication/config/{id} | Get authenticator configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationConfigIdPut**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationconfigidput) | **Put** /admin/realms/{realm}/authentication/config/{id} | Update authenticator configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationConfigPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationconfigpost) | **Post** /admin/realms/{realm}/authentication/config | Create new authenticator configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationexecutionsexecutionidconfigidget) | **Get** /admin/realms/{realm}/authentication/executions/{executionId}/config/{id} | Get execution's configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationexecutionsexecutionidconfigpost) | **Post** /admin/realms/{realm}/authentication/executions/{executionId}/config | Update execution with new configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationexecutionsexecutioniddelete) | **Delete** /admin/realms/{realm}/authentication/executions/{executionId} | Delete execution +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationExecutionsExecutionIdGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationexecutionsexecutionidget) | **Get** /admin/realms/{realm}/authentication/executions/{executionId} | Get Single Execution +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationexecutionsexecutionidlowerprioritypost) | **Post** /admin/realms/{realm}/authentication/executions/{executionId}/lower-priority | Lower execution's priority +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationexecutionsexecutionidraiseprioritypost) | **Post** /admin/realms/{realm}/authentication/executions/{executionId}/raise-priority | Raise execution's priority +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationExecutionsPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationexecutionspost) | **Post** /admin/realms/{realm}/authentication/executions | Add new authentication execution +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsflowaliascopypost) | **Post** /admin/realms/{realm}/authentication/flows/{flowAlias}/copy | Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsflowaliasexecutionsexecutionpost) | **Post** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution | Add new authentication execution to a flow +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsflowaliasexecutionsflowpost) | **Post** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow | Add new flow with new execution to existing flow +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsflowaliasexecutionsget) | **Get** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions | Get authentication executions for a flow +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsflowaliasexecutionsput) | **Put** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions | Update authentication executions of a Flow +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsget) | **Get** /admin/realms/{realm}/authentication/flows | Get authentication flows Returns a stream of authentication flows. +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsIdDelete**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsiddelete) | **Delete** /admin/realms/{realm}/authentication/flows/{id} | Delete an authentication flow +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsIdGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsidget) | **Get** /admin/realms/{realm}/authentication/flows/{id} | Get authentication flow for id +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsIdPut**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowsidput) | **Put** /admin/realms/{realm}/authentication/flows/{id} | Update an authentication flow +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFlowsPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationflowspost) | **Post** /admin/realms/{realm}/authentication/flows | Create a new authentication flow +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFormActionProvidersGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationformactionprovidersget) | **Get** /admin/realms/{realm}/authentication/form-action-providers | Get form action providers Returns a stream of form action providers. +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationFormProvidersGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationformprovidersget) | **Get** /admin/realms/{realm}/authentication/form-providers | Get form providers Returns a stream of form providers. +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationperclientconfigdescriptionget) | **Get** /admin/realms/{realm}/authentication/per-client-config-description | Get configuration descriptions for all clients +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRegisterRequiredActionPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationregisterrequiredactionpost) | **Post** /admin/realms/{realm}/authentication/register-required-action | Register a new required actions +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasconfigdelete) | **Delete** /admin/realms/{realm}/authentication/required-actions/{alias}/config | Delete RequiredAction configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasconfigdescriptionget) | **Get** /admin/realms/{realm}/authentication/required-actions/{alias}/config-description | Get RequiredAction provider configuration description +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasconfigget) | **Get** /admin/realms/{realm}/authentication/required-actions/{alias}/config | Get RequiredAction configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasconfigput) | **Put** /admin/realms/{realm}/authentication/required-actions/{alias}/config | Update RequiredAction configuration +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasDelete**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasdelete) | **Delete** /admin/realms/{realm}/authentication/required-actions/{alias} | Delete required action +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasget) | **Get** /admin/realms/{realm}/authentication/required-actions/{alias} | Get required action for alias +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliaslowerprioritypost) | **Post** /admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority | Lower required action's priority +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasPut**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasput) | **Put** /admin/realms/{realm}/authentication/required-actions/{alias} | Update required action +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsaliasraiseprioritypost) | **Post** /admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority | Raise required action's priority +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationRequiredActionsGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationrequiredactionsget) | **Get** /admin/realms/{realm}/authentication/required-actions | Get required actions Returns a stream of required actions. +*AuthenticationManagementAPI* | [**AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet**](docs/AuthenticationManagementAPI.md#adminrealmsrealmauthenticationunregisteredrequiredactionsget) | **Get** /admin/realms/{realm}/authentication/unregistered-required-actions | Get unregistered required actions Returns a stream of unregistered required actions. +*ClientAttributeCertificateAPI* | [**AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost**](docs/ClientAttributeCertificateAPI.md#adminrealmsrealmclientsclientuuidcertificatesattrdownloadpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download | Get a keystore file for the client, containing private key and public certificate +*ClientAttributeCertificateAPI* | [**AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost**](docs/ClientAttributeCertificateAPI.md#adminrealmsrealmclientsclientuuidcertificatesattrgenerateanddownloadpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download | Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format. Only generated public certificate is saved in Keycloak DB - the private key is not. +*ClientAttributeCertificateAPI* | [**AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost**](docs/ClientAttributeCertificateAPI.md#adminrealmsrealmclientsclientuuidcertificatesattrgeneratepost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate | Generate a new certificate with new key pair +*ClientAttributeCertificateAPI* | [**AdminRealmsRealmClientsClientUuidCertificatesAttrGet**](docs/ClientAttributeCertificateAPI.md#adminrealmsrealmclientsclientuuidcertificatesattrget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr} | Get key info +*ClientAttributeCertificateAPI* | [**AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost**](docs/ClientAttributeCertificateAPI.md#adminrealmsrealmclientsclientuuidcertificatesattruploadcertificatepost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate | Upload only certificate, not private key +*ClientAttributeCertificateAPI* | [**AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost**](docs/ClientAttributeCertificateAPI.md#adminrealmsrealmclientsclientuuidcertificatesattruploadpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload | Upload certificate and eventually private key +*ClientInitialAccessAPI* | [**AdminRealmsRealmClientsInitialAccessGet**](docs/ClientInitialAccessAPI.md#adminrealmsrealmclientsinitialaccessget) | **Get** /admin/realms/{realm}/clients-initial-access | +*ClientInitialAccessAPI* | [**AdminRealmsRealmClientsInitialAccessIdDelete**](docs/ClientInitialAccessAPI.md#adminrealmsrealmclientsinitialaccessiddelete) | **Delete** /admin/realms/{realm}/clients-initial-access/{id} | +*ClientInitialAccessAPI* | [**AdminRealmsRealmClientsInitialAccessPost**](docs/ClientInitialAccessAPI.md#adminrealmsrealmclientsinitialaccesspost) | **Post** /admin/realms/{realm}/clients-initial-access | Create a new initial access token. +*ClientRegistrationPolicyAPI* | [**AdminRealmsRealmClientRegistrationPolicyProvidersGet**](docs/ClientRegistrationPolicyAPI.md#adminrealmsrealmclientregistrationpolicyprovidersget) | **Get** /admin/realms/{realm}/client-registration-policy/providers | Base path for retrieve providers with the configProperties properly filled +*ClientRoleMappingsAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmgroupsgroupidrolemappingsclientsclientidavailableget) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/available | Get available client-level roles that can be mapped to the user or group +*ClientRoleMappingsAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmgroupsgroupidrolemappingsclientsclientidcompositeget) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/composite | Get effective client-level role mappings This recurses any composite roles +*ClientRoleMappingsAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmgroupsgroupidrolemappingsclientsclientiddelete) | **Delete** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id} | Delete client-level roles from user or group role mapping +*ClientRoleMappingsAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmgroupsgroupidrolemappingsclientsclientidget) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id} | Get client-level role mappings for the user or group, and the app +*ClientRoleMappingsAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmgroupsgroupidrolemappingsclientsclientidpost) | **Post** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id} | Add client-level roles to the user or group role mapping +*ClientRoleMappingsAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmusersuseridrolemappingsclientsclientidavailableget) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/available | Get available client-level roles that can be mapped to the user or group +*ClientRoleMappingsAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmusersuseridrolemappingsclientsclientidcompositeget) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/composite | Get effective client-level role mappings This recurses any composite roles +*ClientRoleMappingsAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmusersuseridrolemappingsclientsclientiddelete) | **Delete** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id} | Delete client-level roles from user or group role mapping +*ClientRoleMappingsAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmusersuseridrolemappingsclientsclientidget) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id} | Get client-level role mappings for the user or group, and the app +*ClientRoleMappingsAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost**](docs/ClientRoleMappingsAPI.md#adminrealmsrealmusersuseridrolemappingsclientsclientidpost) | **Post** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id} | Add client-level roles to the user or group role mapping +*ClientScopesAPI* | [**AdminRealmsRealmClientScopesClientScopeIdDelete**](docs/ClientScopesAPI.md#adminrealmsrealmclientscopesclientscopeiddelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id} | Delete the client scope +*ClientScopesAPI* | [**AdminRealmsRealmClientScopesClientScopeIdGet**](docs/ClientScopesAPI.md#adminrealmsrealmclientscopesclientscopeidget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id} | Get representation of the client scope +*ClientScopesAPI* | [**AdminRealmsRealmClientScopesClientScopeIdPut**](docs/ClientScopesAPI.md#adminrealmsrealmclientscopesclientscopeidput) | **Put** /admin/realms/{realm}/client-scopes/{client-scope-id} | Update the client scope +*ClientScopesAPI* | [**AdminRealmsRealmClientScopesGet**](docs/ClientScopesAPI.md#adminrealmsrealmclientscopesget) | **Get** /admin/realms/{realm}/client-scopes | Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm +*ClientScopesAPI* | [**AdminRealmsRealmClientScopesPost**](docs/ClientScopesAPI.md#adminrealmsrealmclientscopespost) | **Post** /admin/realms/{realm}/client-scopes | Create a new client scope Client Scope’s name must be unique! +*ClientScopesAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdDelete**](docs/ClientScopesAPI.md#adminrealmsrealmclienttemplatesclientscopeiddelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id} | Delete the client scope +*ClientScopesAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdGet**](docs/ClientScopesAPI.md#adminrealmsrealmclienttemplatesclientscopeidget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id} | Get representation of the client scope +*ClientScopesAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdPut**](docs/ClientScopesAPI.md#adminrealmsrealmclienttemplatesclientscopeidput) | **Put** /admin/realms/{realm}/client-templates/{client-scope-id} | Update the client scope +*ClientScopesAPI* | [**AdminRealmsRealmClientTemplatesGet**](docs/ClientScopesAPI.md#adminrealmsrealmclienttemplatesget) | **Get** /admin/realms/{realm}/client-templates | Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm +*ClientScopesAPI* | [**AdminRealmsRealmClientTemplatesPost**](docs/ClientScopesAPI.md#adminrealmsrealmclienttemplatespost) | **Post** /admin/realms/{realm}/client-templates | Create a new client scope Client Scope’s name must be unique! +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidClientSecretGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidclientsecretget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/client-secret | Get the client secret +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidClientSecretPost**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidclientsecretpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/client-secret | Generate a new secret for the client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidclientsecretrotateddelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated | Invalidate the rotated secret for the client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidClientSecretRotatedGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidclientsecretrotatedget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated | Get the rotated client secret +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuiddefaultclientscopesclientscopeiddelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId} | +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuiddefaultclientscopesclientscopeidput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId} | +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidDefaultClientScopesGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuiddefaultclientscopesget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes | Get default client scopes. Only name and ids are returned. +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidDelete**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuiddelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid} | Delete the client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidevaluatescopesgenerateexampleaccesstokenget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-access-token | Create JSON with payload of example access token +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidevaluatescopesgenerateexampleidtokenget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-id-token | Create JSON with payload of example id token +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidevaluatescopesgenerateexampleuserinfoget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-userinfo | Create JSON with payload of example user info +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidevaluatescopesprotocolmappersget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/protocol-mappers | Return list of all protocol mappers, which will be used when generating tokens issued for particular client. +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidevaluatescopesscopemappingsrolecontaineridgrantedget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted | Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidevaluatescopesscopemappingsrolecontaineridnotgrantedget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted | Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him. +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidget) | **Get** /admin/realms/{realm}/clients/{client-uuid} | Get representation of the client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidinstallationprovidersprovideridget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/installation/providers/{providerId} | +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidManagementPermissionsGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidmanagementpermissionsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidManagementPermissionsPut**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidmanagementpermissionsput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidNodesNodeDelete**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidnodesnodedelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/nodes/{node} | Unregister a cluster node from the client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidNodesPost**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidnodespost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/nodes | Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidOfflineSessionCountGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidofflinesessioncountget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/offline-session-count | Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidOfflineSessionsGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidofflinesessionsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/offline-sessions | Get offline sessions for client Returns a list of offline user sessions associated with this client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidoptionalclientscopesclientscopeiddelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId} | +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidoptionalclientscopesclientscopeidput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId} | +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidOptionalClientScopesGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidoptionalclientscopesget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes | Get optional client scopes. Only name and ids are returned. +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidPushRevocationPost**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidpushrevocationpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/push-revocation | Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidPut**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidput) | **Put** /admin/realms/{realm}/clients/{client-uuid} | Update the client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidregistrationaccesstokenpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/registration-access-token | Generate a new registration access token for the client +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidServiceAccountUserGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidserviceaccountuserget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/service-account-user | Get a user dedicated to the service account +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidSessionCountGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidsessioncountget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/session-count | Get application session count Returns a number of user sessions associated with this client { \"count\": number } +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidTestNodesAvailableGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidtestnodesavailableget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/test-nodes-available | Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. +*ClientsAPI* | [**AdminRealmsRealmClientsClientUuidUserSessionsGet**](docs/ClientsAPI.md#adminrealmsrealmclientsclientuuidusersessionsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/user-sessions | Get user sessions for client Returns a list of user sessions associated with this client +*ClientsAPI* | [**AdminRealmsRealmClientsGet**](docs/ClientsAPI.md#adminrealmsrealmclientsget) | **Get** /admin/realms/{realm}/clients | Get clients belonging to the realm. +*ClientsAPI* | [**AdminRealmsRealmClientsPost**](docs/ClientsAPI.md#adminrealmsrealmclientspost) | **Post** /admin/realms/{realm}/clients | Create a new client Client’s client_id must be unique! +*ComponentAPI* | [**AdminRealmsRealmComponentsGet**](docs/ComponentAPI.md#adminrealmsrealmcomponentsget) | **Get** /admin/realms/{realm}/components | +*ComponentAPI* | [**AdminRealmsRealmComponentsIdDelete**](docs/ComponentAPI.md#adminrealmsrealmcomponentsiddelete) | **Delete** /admin/realms/{realm}/components/{id} | +*ComponentAPI* | [**AdminRealmsRealmComponentsIdGet**](docs/ComponentAPI.md#adminrealmsrealmcomponentsidget) | **Get** /admin/realms/{realm}/components/{id} | +*ComponentAPI* | [**AdminRealmsRealmComponentsIdPut**](docs/ComponentAPI.md#adminrealmsrealmcomponentsidput) | **Put** /admin/realms/{realm}/components/{id} | +*ComponentAPI* | [**AdminRealmsRealmComponentsIdSubComponentTypesGet**](docs/ComponentAPI.md#adminrealmsrealmcomponentsidsubcomponenttypesget) | **Get** /admin/realms/{realm}/components/{id}/sub-component-types | List of subcomponent types that are available to configure for a particular parent component. +*ComponentAPI* | [**AdminRealmsRealmComponentsPost**](docs/ComponentAPI.md#adminrealmsrealmcomponentspost) | **Post** /admin/realms/{realm}/components | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverimportpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/import | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpermissionevaluatepost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpermissionget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpermissionpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpermissionprovidersget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/providers | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpermissionsearchget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/search | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpolicyevaluatepost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpolicyget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpolicypost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpolicyprovidersget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/providers | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverpolicysearchget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/search | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerPut**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourceget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourcepost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourceresourceidattributesget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/attributes | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourceresourceiddelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourceresourceidget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourceresourceidpermissionsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/permissions | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourceresourceidput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourceresourceidscopesget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/scopes | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverresourcesearchget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/search | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopeget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopepost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopescopeiddelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopescopeidget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopescopeidpermissionsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/permissions | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopescopeidput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopescopeidresourcesget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/resources | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopesearchget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search | +*DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserversettingsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings | +*GroupsAPI* | [**AdminRealmsRealmGroupsCountGet**](docs/GroupsAPI.md#adminrealmsrealmgroupscountget) | **Get** /admin/realms/{realm}/groups/count | Returns the groups counts. +*GroupsAPI* | [**AdminRealmsRealmGroupsGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsget) | **Get** /admin/realms/{realm}/groups | Get group hierarchy. Only name and ids are returned. +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdChildrenGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidchildrenget) | **Get** /admin/realms/{realm}/groups/{group-id}/children | Return a paginated list of subgroups that have a parent group corresponding to the group on the URL +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdChildrenPost**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidchildrenpost) | **Post** /admin/realms/{realm}/groups/{group-id}/children | Set or create child. +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdDelete**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupiddelete) | **Delete** /admin/realms/{realm}/groups/{group-id} | +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidget) | **Get** /admin/realms/{realm}/groups/{group-id} | +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdManagementPermissionsGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidmanagementpermissionsget) | **Get** /admin/realms/{realm}/groups/{group-id}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdManagementPermissionsPut**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidmanagementpermissionsput) | **Put** /admin/realms/{realm}/groups/{group-id}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdMembersGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidmembersget) | **Get** /admin/realms/{realm}/groups/{group-id}/members | Get users Returns a stream of users, filtered according to query parameters +*GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdPut**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidput) | **Put** /admin/realms/{realm}/groups/{group-id} | Update group, ignores subgroups. +*GroupsAPI* | [**AdminRealmsRealmGroupsPost**](docs/GroupsAPI.md#adminrealmsrealmgroupspost) | **Post** /admin/realms/{realm}/groups | create or add a top level realm groupSet or create child. +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderImportConfigPost**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderimportconfigpost) | **Post** /admin/realms/{realm}/identity-provider/import-config | Import identity provider from JSON body +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasDelete**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasdelete) | **Delete** /admin/realms/{realm}/identity-provider/instances/{alias} | Delete the identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasExportGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasexportget) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/export | Export public broker configuration for identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasget) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias} | Get the identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmanagementpermissionsget) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmanagementpermissionsput) | **Put** /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmappertypesget) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types | Get mapper types for identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasMappersGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmappersget) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers | Get mappers for identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmappersiddelete) | **Delete** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id} | Delete a mapper for the identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmappersidget) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id} | Get mapper by id for the identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmappersidput) | **Put** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id} | Update a mapper for the identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasMappersPost**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasmapperspost) | **Post** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers | Add a mapper to identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasPut**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasput) | **Put** /admin/realms/{realm}/identity-provider/instances/{alias} | Update the identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesaliasreloadkeysget) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys | Reaload keys for the identity provider if the provider supports it, \"true\" is returned if reload was performed, \"false\" if not. +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancesget) | **Get** /admin/realms/{realm}/identity-provider/instances | List identity providers +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderInstancesPost**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderinstancespost) | **Post** /admin/realms/{realm}/identity-provider/instances | Create a new identity provider +*IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderProvidersProviderIdGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderprovidersprovideridget) | **Get** /admin/realms/{realm}/identity-provider/providers/{provider_id} | Get the identity provider factory for that provider id +*KeyAPI* | [**AdminRealmsRealmKeysGet**](docs/KeyAPI.md#adminrealmsrealmkeysget) | **Get** /admin/realms/{realm}/keys | +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsget) | **Get** /admin/realms/{realm}/organizations | Returns a paginated list of organizations filtered according to the specified parameters +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsiddelete) | **Delete** /admin/realms/{realm}/organizations/{id} | Deletes the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidget) | **Get** /admin/realms/{realm}/organizations/{id} | Returns the organization representation +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityprovidersaliasdelete) | **Delete** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Removes the identity provider with the specified alias from the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityprovidersaliasget) | **Get** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Returns the identity provider associated with the organization that has the specified alias +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityprovidersget) | **Get** /admin/realms/{realm}/organizations/{id}/identity-providers | Returns all identity providers associated with the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityproviderspost) | **Post** /admin/realms/{realm}/organizations/{id}/identity-providers | Adds the identity provider with the specified id to the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersCountGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmemberscountget) | **Get** /admin/realms/{realm}/organizations/{id}/members/count | Returns number of members in the organization. +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersget) | **Get** /admin/realms/{realm}/organizations/{id}/members | Returns a paginated list of organization members filtered according to the specified parameters +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersinviteexistinguserpost) | **Post** /admin/realms/{realm}/organizations/{id}/members/invite-existing-user | Invites an existing user to the organization, using the specified user id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersInviteUserPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersinviteuserpost) | **Post** /admin/realms/{realm}/organizations/{id}/members/invite-user | Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmemberspost) | **Post** /admin/realms/{realm}/organizations/{id}/members | Adds the user with the specified id as a member of the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersUserIdDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersuseriddelete) | **Delete** /admin/realms/{realm}/organizations/{id}/members/{userId} | Removes the user with the specified id from the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersUserIdGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersuseridget) | **Get** /admin/realms/{realm}/organizations/{id}/members/{userId} | Returns the member of the organization with the specified id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersuseridorganizationsget) | **Get** /admin/realms/{realm}/organizations/{id}/members/{userId}/organizations | Returns the organizations associated with the user that has the specified id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdPut**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidput) | **Put** /admin/realms/{realm}/organizations/{id} | Updates the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsMembersIdOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsmembersidorganizationsget) | **Get** /admin/realms/{realm}/organizations/members/{id}/organizations | Returns the organizations associated with the user that has the specified id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationspost) | **Post** /admin/realms/{realm}/organizations | Creates a new organization +*ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersaddmodelspost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models | Create multiple mappers +*ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelsget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models | Get mappers +*ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelsiddelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} | Delete the mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelsidget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} | Get mapper by id +*ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelsidput) | **Put** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} | Update the mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelspost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models | Create a mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersprotocolprotocolget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/protocol/{protocol} | Get mappers by name for a specific protocol +*ProtocolMappersAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost**](docs/ProtocolMappersAPI.md#adminrealmsrealmclienttemplatesclientscopeidprotocolmappersaddmodelspost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/add-models | Create multiple mappers +*ProtocolMappersAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclienttemplatesclientscopeidprotocolmappersmodelsget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models | Get mappers +*ProtocolMappersAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete**](docs/ProtocolMappersAPI.md#adminrealmsrealmclienttemplatesclientscopeidprotocolmappersmodelsiddelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} | Delete the mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclienttemplatesclientscopeidprotocolmappersmodelsidget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} | Get mapper by id +*ProtocolMappersAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut**](docs/ProtocolMappersAPI.md#adminrealmsrealmclienttemplatesclientscopeidprotocolmappersmodelsidput) | **Put** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} | Update the mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost**](docs/ProtocolMappersAPI.md#adminrealmsrealmclienttemplatesclientscopeidprotocolmappersmodelspost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models | Create a mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclienttemplatesclientscopeidprotocolmappersprotocolprotocolget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/protocol/{protocol} | Get mappers by name for a specific protocol +*ProtocolMappersAPI* | [**AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientsclientuuidprotocolmappersaddmodelspost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/add-models | Create multiple mappers +*ProtocolMappersAPI* | [**AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientsclientuuidprotocolmappersmodelsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models | Get mappers +*ProtocolMappersAPI* | [**AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientsclientuuidprotocolmappersmodelsiddelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} | Delete the mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientsclientuuidprotocolmappersmodelsidget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} | Get mapper by id +*ProtocolMappersAPI* | [**AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientsclientuuidprotocolmappersmodelsidput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} | Update the mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientsclientuuidprotocolmappersmodelspost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models | Create a mapper +*ProtocolMappersAPI* | [**AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientsclientuuidprotocolmappersprotocolprotocolget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/protocol/{protocol} | Get mappers by name for a specific protocol +*RealmsAdminAPI* | [**AdminRealmsGet**](docs/RealmsAdminAPI.md#adminrealmsget) | **Get** /admin/realms | Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. +*RealmsAdminAPI* | [**AdminRealmsPost**](docs/RealmsAdminAPI.md#adminrealmspost) | **Post** /admin/realms | Import a realm. Imports a realm from a full representation of that realm. +*RealmsAdminAPI* | [**AdminRealmsRealmAdminEventsDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmadmineventsdelete) | **Delete** /admin/realms/{realm}/admin-events | Delete all admin events +*RealmsAdminAPI* | [**AdminRealmsRealmAdminEventsGet**](docs/RealmsAdminAPI.md#adminrealmsrealmadmineventsget) | **Get** /admin/realms/{realm}/admin-events | Get admin events Returns all admin events, or filters events based on URL query parameters listed here +*RealmsAdminAPI* | [**AdminRealmsRealmClientDescriptionConverterPost**](docs/RealmsAdminAPI.md#adminrealmsrealmclientdescriptionconverterpost) | **Post** /admin/realms/{realm}/client-description-converter | Base path for importing clients under this realm. +*RealmsAdminAPI* | [**AdminRealmsRealmClientPoliciesPoliciesGet**](docs/RealmsAdminAPI.md#adminrealmsrealmclientpoliciespoliciesget) | **Get** /admin/realms/{realm}/client-policies/policies | +*RealmsAdminAPI* | [**AdminRealmsRealmClientPoliciesPoliciesPut**](docs/RealmsAdminAPI.md#adminrealmsrealmclientpoliciespoliciesput) | **Put** /admin/realms/{realm}/client-policies/policies | +*RealmsAdminAPI* | [**AdminRealmsRealmClientPoliciesProfilesGet**](docs/RealmsAdminAPI.md#adminrealmsrealmclientpoliciesprofilesget) | **Get** /admin/realms/{realm}/client-policies/profiles | +*RealmsAdminAPI* | [**AdminRealmsRealmClientPoliciesProfilesPut**](docs/RealmsAdminAPI.md#adminrealmsrealmclientpoliciesprofilesput) | **Put** /admin/realms/{realm}/client-policies/profiles | +*RealmsAdminAPI* | [**AdminRealmsRealmClientSessionStatsGet**](docs/RealmsAdminAPI.md#adminrealmsrealmclientsessionstatsget) | **Get** /admin/realms/{realm}/client-session-stats | Get client session stats Returns a JSON map. +*RealmsAdminAPI* | [**AdminRealmsRealmClientTypesGet**](docs/RealmsAdminAPI.md#adminrealmsrealmclienttypesget) | **Get** /admin/realms/{realm}/client-types | List all client types available in the current realm +*RealmsAdminAPI* | [**AdminRealmsRealmClientTypesPut**](docs/RealmsAdminAPI.md#adminrealmsrealmclienttypesput) | **Put** /admin/realms/{realm}/client-types | Update a client type +*RealmsAdminAPI* | [**AdminRealmsRealmCredentialRegistratorsGet**](docs/RealmsAdminAPI.md#adminrealmsrealmcredentialregistratorsget) | **Get** /admin/realms/{realm}/credential-registrators | +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultdefaultclientscopesclientscopeiddelete) | **Delete** /admin/realms/{realm}/default-default-client-scopes/{clientScopeId} | +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultdefaultclientscopesclientscopeidput) | **Put** /admin/realms/{realm}/default-default-client-scopes/{clientScopeId} | +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultDefaultClientScopesGet**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultdefaultclientscopesget) | **Get** /admin/realms/{realm}/default-default-client-scopes | Get realm default client scopes. Only name and ids are returned. +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultGroupsGet**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultgroupsget) | **Get** /admin/realms/{realm}/default-groups | Get group hierarchy. Only name and ids are returned. +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultGroupsGroupIdDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultgroupsgroupiddelete) | **Delete** /admin/realms/{realm}/default-groups/{groupId} | +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultGroupsGroupIdPut**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultgroupsgroupidput) | **Put** /admin/realms/{realm}/default-groups/{groupId} | +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultoptionalclientscopesclientscopeiddelete) | **Delete** /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId} | +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultoptionalclientscopesclientscopeidput) | **Put** /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId} | +*RealmsAdminAPI* | [**AdminRealmsRealmDefaultOptionalClientScopesGet**](docs/RealmsAdminAPI.md#adminrealmsrealmdefaultoptionalclientscopesget) | **Get** /admin/realms/{realm}/default-optional-client-scopes | Get realm optional client scopes. Only name and ids are returned. +*RealmsAdminAPI* | [**AdminRealmsRealmDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmdelete) | **Delete** /admin/realms/{realm} | Delete the realm +*RealmsAdminAPI* | [**AdminRealmsRealmEventsConfigGet**](docs/RealmsAdminAPI.md#adminrealmsrealmeventsconfigget) | **Get** /admin/realms/{realm}/events/config | Get the events provider configuration Returns JSON object with events provider configuration +*RealmsAdminAPI* | [**AdminRealmsRealmEventsConfigPut**](docs/RealmsAdminAPI.md#adminrealmsrealmeventsconfigput) | **Put** /admin/realms/{realm}/events/config | +*RealmsAdminAPI* | [**AdminRealmsRealmEventsDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmeventsdelete) | **Delete** /admin/realms/{realm}/events | Delete all events +*RealmsAdminAPI* | [**AdminRealmsRealmEventsGet**](docs/RealmsAdminAPI.md#adminrealmsrealmeventsget) | **Get** /admin/realms/{realm}/events | Get events Returns all events, or filters them based on URL query parameters listed here +*RealmsAdminAPI* | [**AdminRealmsRealmGet**](docs/RealmsAdminAPI.md#adminrealmsrealmget) | **Get** /admin/realms/{realm} | Get the top-level representation of the realm It will not include nested information like User and Client representations. +*RealmsAdminAPI* | [**AdminRealmsRealmGroupByPathPathGet**](docs/RealmsAdminAPI.md#adminrealmsrealmgroupbypathpathget) | **Get** /admin/realms/{realm}/group-by-path/{path} | +*RealmsAdminAPI* | [**AdminRealmsRealmLocalizationGet**](docs/RealmsAdminAPI.md#adminrealmsrealmlocalizationget) | **Get** /admin/realms/{realm}/localization | +*RealmsAdminAPI* | [**AdminRealmsRealmLocalizationLocaleDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmlocalizationlocaledelete) | **Delete** /admin/realms/{realm}/localization/{locale} | +*RealmsAdminAPI* | [**AdminRealmsRealmLocalizationLocaleGet**](docs/RealmsAdminAPI.md#adminrealmsrealmlocalizationlocaleget) | **Get** /admin/realms/{realm}/localization/{locale} | +*RealmsAdminAPI* | [**AdminRealmsRealmLocalizationLocaleKeyDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmlocalizationlocalekeydelete) | **Delete** /admin/realms/{realm}/localization/{locale}/{key} | +*RealmsAdminAPI* | [**AdminRealmsRealmLocalizationLocaleKeyGet**](docs/RealmsAdminAPI.md#adminrealmsrealmlocalizationlocalekeyget) | **Get** /admin/realms/{realm}/localization/{locale}/{key} | +*RealmsAdminAPI* | [**AdminRealmsRealmLocalizationLocaleKeyPut**](docs/RealmsAdminAPI.md#adminrealmsrealmlocalizationlocalekeyput) | **Put** /admin/realms/{realm}/localization/{locale}/{key} | +*RealmsAdminAPI* | [**AdminRealmsRealmLocalizationLocalePost**](docs/RealmsAdminAPI.md#adminrealmsrealmlocalizationlocalepost) | **Post** /admin/realms/{realm}/localization/{locale} | Import localization from uploaded JSON file +*RealmsAdminAPI* | [**AdminRealmsRealmLogoutAllPost**](docs/RealmsAdminAPI.md#adminrealmsrealmlogoutallpost) | **Post** /admin/realms/{realm}/logout-all | Removes all user sessions. +*RealmsAdminAPI* | [**AdminRealmsRealmPartialExportPost**](docs/RealmsAdminAPI.md#adminrealmsrealmpartialexportpost) | **Post** /admin/realms/{realm}/partial-export | Partial export of existing realm into a JSON file. +*RealmsAdminAPI* | [**AdminRealmsRealmPartialImportPost**](docs/RealmsAdminAPI.md#adminrealmsrealmpartialimportpost) | **Post** /admin/realms/{realm}/partialImport | Partial import from a JSON file to an existing realm. +*RealmsAdminAPI* | [**AdminRealmsRealmPushRevocationPost**](docs/RealmsAdminAPI.md#adminrealmsrealmpushrevocationpost) | **Post** /admin/realms/{realm}/push-revocation | Push the realm's revocation policy to any client that has an admin url associated with it. +*RealmsAdminAPI* | [**AdminRealmsRealmPut**](docs/RealmsAdminAPI.md#adminrealmsrealmput) | **Put** /admin/realms/{realm} | Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. +*RealmsAdminAPI* | [**AdminRealmsRealmSessionsSessionDelete**](docs/RealmsAdminAPI.md#adminrealmsrealmsessionssessiondelete) | **Delete** /admin/realms/{realm}/sessions/{session} | Remove a specific user session. +*RealmsAdminAPI* | [**AdminRealmsRealmTestSMTPConnectionPost**](docs/RealmsAdminAPI.md#adminrealmsrealmtestsmtpconnectionpost) | **Post** /admin/realms/{realm}/testSMTPConnection | Test SMTP connection with current logged in user +*RealmsAdminAPI* | [**AdminRealmsRealmUsersManagementPermissionsGet**](docs/RealmsAdminAPI.md#adminrealmsrealmusersmanagementpermissionsget) | **Get** /admin/realms/{realm}/users-management-permissions | +*RealmsAdminAPI* | [**AdminRealmsRealmUsersManagementPermissionsPut**](docs/RealmsAdminAPI.md#adminrealmsrealmusersmanagementpermissionsput) | **Put** /admin/realms/{realm}/users-management-permissions | +*RoleMapperAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsGet**](docs/RoleMapperAPI.md#adminrealmsrealmgroupsgroupidrolemappingsget) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings | Get role mappings +*RoleMapperAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet**](docs/RoleMapperAPI.md#adminrealmsrealmgroupsgroupidrolemappingsrealmavailableget) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/available | Get realm-level roles that can be mapped +*RoleMapperAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet**](docs/RoleMapperAPI.md#adminrealmsrealmgroupsgroupidrolemappingsrealmcompositeget) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/composite | Get effective realm-level role mappings This will recurse all composite roles to get the result. +*RoleMapperAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete**](docs/RoleMapperAPI.md#adminrealmsrealmgroupsgroupidrolemappingsrealmdelete) | **Delete** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm | Delete realm-level role mappings +*RoleMapperAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet**](docs/RoleMapperAPI.md#adminrealmsrealmgroupsgroupidrolemappingsrealmget) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm | Get realm-level role mappings +*RoleMapperAPI* | [**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost**](docs/RoleMapperAPI.md#adminrealmsrealmgroupsgroupidrolemappingsrealmpost) | **Post** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm | Add realm-level role mappings to the user +*RoleMapperAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsGet**](docs/RoleMapperAPI.md#adminrealmsrealmusersuseridrolemappingsget) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings | Get role mappings +*RoleMapperAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet**](docs/RoleMapperAPI.md#adminrealmsrealmusersuseridrolemappingsrealmavailableget) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/realm/available | Get realm-level roles that can be mapped +*RoleMapperAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet**](docs/RoleMapperAPI.md#adminrealmsrealmusersuseridrolemappingsrealmcompositeget) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/realm/composite | Get effective realm-level role mappings This will recurse all composite roles to get the result. +*RoleMapperAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete**](docs/RoleMapperAPI.md#adminrealmsrealmusersuseridrolemappingsrealmdelete) | **Delete** /admin/realms/{realm}/users/{user-id}/role-mappings/realm | Delete realm-level role mappings +*RoleMapperAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsRealmGet**](docs/RoleMapperAPI.md#adminrealmsrealmusersuseridrolemappingsrealmget) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/realm | Get realm-level role mappings +*RoleMapperAPI* | [**AdminRealmsRealmUsersUserIdRoleMappingsRealmPost**](docs/RoleMapperAPI.md#adminrealmsrealmusersuseridrolemappingsrealmpost) | **Post** /admin/realms/{realm}/users/{user-id}/role-mappings/realm | Add realm-level role mappings to the user +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles | Get all roles for the realm or client +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesPost**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolespost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/roles | Create a new role for the realm or client +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamecompositesclientsclientincompositeuuidget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-in-composite-uuid} | Get client-level roles for the client that are in the role's composite +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamecompositesdelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites | Remove roles from the role's composite +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamecompositesget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites | Get composites of the role +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamecompositespost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites | Add a composite to the role +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamecompositesrealmget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm | Get realm-level roles of the role's composite +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameDelete**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamedelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name} | Delete a role by name +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenameget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name} | Get a role by name +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamegroupsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups | Returns a stream of groups that have the specified role name +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamemanagementpermissionsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenamemanagementpermissionsput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNamePut**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenameput) | **Put** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name} | Update a role by name +*RolesAPI* | [**AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet**](docs/RolesAPI.md#adminrealmsrealmclientsclientuuidrolesrolenameusersget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users | Returns a stream of users that have the specified role name. +*RolesAPI* | [**AdminRealmsRealmRolesGet**](docs/RolesAPI.md#adminrealmsrealmrolesget) | **Get** /admin/realms/{realm}/roles | Get all roles for the realm or client +*RolesAPI* | [**AdminRealmsRealmRolesPost**](docs/RolesAPI.md#adminrealmsrealmrolespost) | **Post** /admin/realms/{realm}/roles | Create a new role for the realm or client +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamecompositesclientsclientuuidget) | **Get** /admin/realms/{realm}/roles/{role-name}/composites/clients/{client-uuid} | Get client-level roles for the client that are in the role's composite +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameCompositesDelete**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamecompositesdelete) | **Delete** /admin/realms/{realm}/roles/{role-name}/composites | Remove roles from the role's composite +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameCompositesGet**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamecompositesget) | **Get** /admin/realms/{realm}/roles/{role-name}/composites | Get composites of the role +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameCompositesPost**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamecompositespost) | **Post** /admin/realms/{realm}/roles/{role-name}/composites | Add a composite to the role +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameCompositesRealmGet**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamecompositesrealmget) | **Get** /admin/realms/{realm}/roles/{role-name}/composites/realm | Get realm-level roles of the role's composite +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameDelete**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamedelete) | **Delete** /admin/realms/{realm}/roles/{role-name} | Delete a role by name +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameGet**](docs/RolesAPI.md#adminrealmsrealmrolesrolenameget) | **Get** /admin/realms/{realm}/roles/{role-name} | Get a role by name +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameGroupsGet**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamegroupsget) | **Get** /admin/realms/{realm}/roles/{role-name}/groups | Returns a stream of groups that have the specified role name +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameManagementPermissionsGet**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamemanagementpermissionsget) | **Get** /admin/realms/{realm}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameManagementPermissionsPut**](docs/RolesAPI.md#adminrealmsrealmrolesrolenamemanagementpermissionsput) | **Put** /admin/realms/{realm}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +*RolesAPI* | [**AdminRealmsRealmRolesRoleNamePut**](docs/RolesAPI.md#adminrealmsrealmrolesrolenameput) | **Put** /admin/realms/{realm}/roles/{role-name} | Update a role by name +*RolesAPI* | [**AdminRealmsRealmRolesRoleNameUsersGet**](docs/RolesAPI.md#adminrealmsrealmrolesrolenameusersget) | **Get** /admin/realms/{realm}/roles/{role-name}/users | Returns a stream of users that have the specified role name. +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidcompositesclientsclientuuidget) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid} | Get client-level roles for the client that are in the role's composite +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdCompositesDelete**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidcompositesdelete) | **Delete** /admin/realms/{realm}/roles-by-id/{role-id}/composites | Remove a set of roles from the role's composite +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdCompositesGet**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidcompositesget) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/composites | Get role's children Returns a set of role's children provided the role is a composite. +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdCompositesPost**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidcompositespost) | **Post** /admin/realms/{realm}/roles-by-id/{role-id}/composites | Make the role a composite role by associating some child roles +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidcompositesrealmget) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/composites/realm | Get realm-level roles that are in the role's composite +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdDelete**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleiddelete) | **Delete** /admin/realms/{realm}/roles-by-id/{role-id} | Delete the role +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdGet**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidget) | **Get** /admin/realms/{realm}/roles-by-id/{role-id} | Get a specific role's representation +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidmanagementpermissionsget) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidmanagementpermissionsput) | **Put** /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +*RolesByIDAPI* | [**AdminRealmsRealmRolesByIdRoleIdPut**](docs/RolesByIDAPI.md#adminrealmsrealmrolesbyidroleidput) | **Put** /admin/realms/{realm}/roles-by-id/{role-id} | Update the role +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsclientsclientavailableget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/available | The available client-level roles Returns the roles for the client that can be associated with the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsclientsclientcompositeget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/composite | Get effective client roles Returns the roles for the client that are associated with the client's scope. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsclientsclientdelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client} | Remove client-level roles from the client's scope. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsclientsclientget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client} | Get the roles associated with a client's scope Returns roles for the client. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsclientsclientpost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client} | Add client-level roles to the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings | Get all scope mappings for the client +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsrealmavailableget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/available | Get realm-level roles that are available to attach to this client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsrealmcompositeget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/composite | Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsrealmdelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm | Remove a set of realm-level roles from the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsrealmget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm | Get realm-level roles associated with the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientscopesclientscopeidscopemappingsrealmpost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm | Add a set of realm-level roles to the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsclientsclientavailableget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/available | The available client-level roles Returns the roles for the client that can be associated with the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsclientsclientcompositeget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/composite | Get effective client roles Returns the roles for the client that are associated with the client's scope. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsclientsclientdelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client} | Remove client-level roles from the client's scope. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsclientsclientget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client} | Get the roles associated with a client's scope Returns roles for the client. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsclientsclientpost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client} | Add client-level roles to the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings | Get all scope mappings for the client +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsrealmavailableget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/available | Get realm-level roles that are available to attach to this client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsrealmcompositeget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/composite | Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsrealmdelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm | Remove a set of realm-level roles from the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsrealmget) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm | Get realm-level roles associated with the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost**](docs/ScopeMappingsAPI.md#adminrealmsrealmclienttemplatesclientscopeidscopemappingsrealmpost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm | Add a set of realm-level roles to the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsclientsclientavailableget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/available | The available client-level roles Returns the roles for the client that can be associated with the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsclientsclientcompositeget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/composite | Get effective client roles Returns the roles for the client that are associated with the client's scope. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsclientsclientdelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client} | Remove client-level roles from the client's scope. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsclientsclientget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client} | Get the roles associated with a client's scope Returns roles for the client. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsclientsclientpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client} | Add client-level roles to the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings | Get all scope mappings for the client +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsrealmavailableget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/available | Get realm-level roles that are available to attach to this client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsrealmcompositeget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/composite | Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsrealmdelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm | Remove a set of realm-level roles from the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsrealmget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm | Get realm-level roles associated with the client's scope +*ScopeMappingsAPI* | [**AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost**](docs/ScopeMappingsAPI.md#adminrealmsrealmclientsclientuuidscopemappingsrealmpost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm | Add a set of realm-level roles to the client's scope +*UsersAPI* | [**AdminRealmsRealmUsersCountGet**](docs/UsersAPI.md#adminrealmsrealmuserscountget) | **Get** /admin/realms/{realm}/users/count | Returns the number of users that match the given criteria. +*UsersAPI* | [**AdminRealmsRealmUsersGet**](docs/UsersAPI.md#adminrealmsrealmusersget) | **Get** /admin/realms/{realm}/users | Get users Returns a stream of users, filtered according to query parameters. +*UsersAPI* | [**AdminRealmsRealmUsersPost**](docs/UsersAPI.md#adminrealmsrealmuserspost) | **Post** /admin/realms/{realm}/users | Create a new user Username must be unique. +*UsersAPI* | [**AdminRealmsRealmUsersProfileGet**](docs/UsersAPI.md#adminrealmsrealmusersprofileget) | **Get** /admin/realms/{realm}/users/profile | +*UsersAPI* | [**AdminRealmsRealmUsersProfileMetadataGet**](docs/UsersAPI.md#adminrealmsrealmusersprofilemetadataget) | **Get** /admin/realms/{realm}/users/profile/metadata | +*UsersAPI* | [**AdminRealmsRealmUsersProfilePut**](docs/UsersAPI.md#adminrealmsrealmusersprofileput) | **Put** /admin/realms/{realm}/users/profile | +*UsersAPI* | [**AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridconfigureduserstoragecredentialtypesget) | **Get** /admin/realms/{realm}/users/{user-id}/configured-user-storage-credential-types | Return credential types, which are provided by the user storage where user is stored. +*UsersAPI* | [**AdminRealmsRealmUsersUserIdConsentsClientDelete**](docs/UsersAPI.md#adminrealmsrealmusersuseridconsentsclientdelete) | **Delete** /admin/realms/{realm}/users/{user-id}/consents/{client} | Revoke consent and offline tokens for particular client from user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdConsentsGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridconsentsget) | **Get** /admin/realms/{realm}/users/{user-id}/consents | Get consents granted by the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete**](docs/UsersAPI.md#adminrealmsrealmusersuseridcredentialscredentialiddelete) | **Delete** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId} | Remove a credential for a user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost**](docs/UsersAPI.md#adminrealmsrealmusersuseridcredentialscredentialidmoveafternewpreviouscredentialidpost) | **Post** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId} | Move a credential to a position behind another credential +*UsersAPI* | [**AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost**](docs/UsersAPI.md#adminrealmsrealmusersuseridcredentialscredentialidmovetofirstpost) | **Post** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveToFirst | Move a credential to a first position in the credentials list of the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut**](docs/UsersAPI.md#adminrealmsrealmusersuseridcredentialscredentialiduserlabelput) | **Put** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/userLabel | Update a credential label for a user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdCredentialsGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridcredentialsget) | **Get** /admin/realms/{realm}/users/{user-id}/credentials | +*UsersAPI* | [**AdminRealmsRealmUsersUserIdDelete**](docs/UsersAPI.md#adminrealmsrealmusersuseriddelete) | **Delete** /admin/realms/{realm}/users/{user-id} | Delete the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdDisableCredentialTypesPut**](docs/UsersAPI.md#adminrealmsrealmusersuseriddisablecredentialtypesput) | **Put** /admin/realms/{realm}/users/{user-id}/disable-credential-types | Disable all credentials for a user of a specific type +*UsersAPI* | [**AdminRealmsRealmUsersUserIdExecuteActionsEmailPut**](docs/UsersAPI.md#adminrealmsrealmusersuseridexecuteactionsemailput) | **Put** /admin/realms/{realm}/users/{user-id}/execute-actions-email | Send an email to the user with a link they can click to execute particular actions. +*UsersAPI* | [**AdminRealmsRealmUsersUserIdFederatedIdentityGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridfederatedidentityget) | **Get** /admin/realms/{realm}/users/{user-id}/federated-identity | Get social logins associated with the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete**](docs/UsersAPI.md#adminrealmsrealmusersuseridfederatedidentityproviderdelete) | **Delete** /admin/realms/{realm}/users/{user-id}/federated-identity/{provider} | Remove a social login provider from user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost**](docs/UsersAPI.md#adminrealmsrealmusersuseridfederatedidentityproviderpost) | **Post** /admin/realms/{realm}/users/{user-id}/federated-identity/{provider} | Add a social login provider to the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridget) | **Get** /admin/realms/{realm}/users/{user-id} | Get representation of the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdGroupsCountGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridgroupscountget) | **Get** /admin/realms/{realm}/users/{user-id}/groups/count | +*UsersAPI* | [**AdminRealmsRealmUsersUserIdGroupsGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridgroupsget) | **Get** /admin/realms/{realm}/users/{user-id}/groups | +*UsersAPI* | [**AdminRealmsRealmUsersUserIdGroupsGroupIdDelete**](docs/UsersAPI.md#adminrealmsrealmusersuseridgroupsgroupiddelete) | **Delete** /admin/realms/{realm}/users/{user-id}/groups/{groupId} | +*UsersAPI* | [**AdminRealmsRealmUsersUserIdGroupsGroupIdPut**](docs/UsersAPI.md#adminrealmsrealmusersuseridgroupsgroupidput) | **Put** /admin/realms/{realm}/users/{user-id}/groups/{groupId} | +*UsersAPI* | [**AdminRealmsRealmUsersUserIdImpersonationPost**](docs/UsersAPI.md#adminrealmsrealmusersuseridimpersonationpost) | **Post** /admin/realms/{realm}/users/{user-id}/impersonation | Impersonate the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdLogoutPost**](docs/UsersAPI.md#adminrealmsrealmusersuseridlogoutpost) | **Post** /admin/realms/{realm}/users/{user-id}/logout | Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. +*UsersAPI* | [**AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridofflinesessionsclientuuidget) | **Get** /admin/realms/{realm}/users/{user-id}/offline-sessions/{clientUuid} | Get offline sessions associated with the user and client +*UsersAPI* | [**AdminRealmsRealmUsersUserIdPut**](docs/UsersAPI.md#adminrealmsrealmusersuseridput) | **Put** /admin/realms/{realm}/users/{user-id} | Update the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdResetPasswordEmailPut**](docs/UsersAPI.md#adminrealmsrealmusersuseridresetpasswordemailput) | **Put** /admin/realms/{realm}/users/{user-id}/reset-password-email | Send an email to the user with a link they can click to reset their password. +*UsersAPI* | [**AdminRealmsRealmUsersUserIdResetPasswordPut**](docs/UsersAPI.md#adminrealmsrealmusersuseridresetpasswordput) | **Put** /admin/realms/{realm}/users/{user-id}/reset-password | Set up a new password for the user. +*UsersAPI* | [**AdminRealmsRealmUsersUserIdSendVerifyEmailPut**](docs/UsersAPI.md#adminrealmsrealmusersuseridsendverifyemailput) | **Put** /admin/realms/{realm}/users/{user-id}/send-verify-email | Send an email-verification email to the user An email contains a link the user can click to verify their email address. +*UsersAPI* | [**AdminRealmsRealmUsersUserIdSessionsGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridsessionsget) | **Get** /admin/realms/{realm}/users/{user-id}/sessions | Get sessions associated with the user +*UsersAPI* | [**AdminRealmsRealmUsersUserIdUnmanagedAttributesGet**](docs/UsersAPI.md#adminrealmsrealmusersuseridunmanagedattributesget) | **Get** /admin/realms/{realm}/users/{user-id}/unmanagedAttributes | + + +## Documentation For Models + + - [AbstractPolicyRepresentation](docs/AbstractPolicyRepresentation.md) + - [Access](docs/Access.md) + - [AccessToken](docs/AccessToken.md) + - [AddressClaimSet](docs/AddressClaimSet.md) + - [AdminEventRepresentation](docs/AdminEventRepresentation.md) + - [ApplicationRepresentation](docs/ApplicationRepresentation.md) + - [AuthDetailsRepresentation](docs/AuthDetailsRepresentation.md) + - [AuthenticationExecutionExportRepresentation](docs/AuthenticationExecutionExportRepresentation.md) + - [AuthenticationExecutionInfoRepresentation](docs/AuthenticationExecutionInfoRepresentation.md) + - [AuthenticationExecutionRepresentation](docs/AuthenticationExecutionRepresentation.md) + - [AuthenticationFlowRepresentation](docs/AuthenticationFlowRepresentation.md) + - [AuthenticatorConfigInfoRepresentation](docs/AuthenticatorConfigInfoRepresentation.md) + - [AuthenticatorConfigRepresentation](docs/AuthenticatorConfigRepresentation.md) + - [Authorization](docs/Authorization.md) + - [BruteForceStrategy](docs/BruteForceStrategy.md) + - [CertificateRepresentation](docs/CertificateRepresentation.md) + - [ClaimRepresentation](docs/ClaimRepresentation.md) + - [ClientInitialAccessCreatePresentation](docs/ClientInitialAccessCreatePresentation.md) + - [ClientInitialAccessPresentation](docs/ClientInitialAccessPresentation.md) + - [ClientMappingsRepresentation](docs/ClientMappingsRepresentation.md) + - [ClientPoliciesRepresentation](docs/ClientPoliciesRepresentation.md) + - [ClientPolicyConditionRepresentation](docs/ClientPolicyConditionRepresentation.md) + - [ClientPolicyExecutorRepresentation](docs/ClientPolicyExecutorRepresentation.md) + - [ClientPolicyRepresentation](docs/ClientPolicyRepresentation.md) + - [ClientProfileRepresentation](docs/ClientProfileRepresentation.md) + - [ClientProfilesRepresentation](docs/ClientProfilesRepresentation.md) + - [ClientRepresentation](docs/ClientRepresentation.md) + - [ClientScopeRepresentation](docs/ClientScopeRepresentation.md) + - [ClientTemplateRepresentation](docs/ClientTemplateRepresentation.md) + - [ClientTypeRepresentation](docs/ClientTypeRepresentation.md) + - [ClientTypesRepresentation](docs/ClientTypesRepresentation.md) + - [ComponentExportRepresentation](docs/ComponentExportRepresentation.md) + - [ComponentRepresentation](docs/ComponentRepresentation.md) + - [ComponentTypeRepresentation](docs/ComponentTypeRepresentation.md) + - [Composites](docs/Composites.md) + - [ConfigPropertyRepresentation](docs/ConfigPropertyRepresentation.md) + - [Confirmation](docs/Confirmation.md) + - [CredentialRepresentation](docs/CredentialRepresentation.md) + - [DecisionEffect](docs/DecisionEffect.md) + - [DecisionStrategy](docs/DecisionStrategy.md) + - [EnforcementMode](docs/EnforcementMode.md) + - [EvaluationResultRepresentation](docs/EvaluationResultRepresentation.md) + - [EventRepresentation](docs/EventRepresentation.md) + - [FederatedIdentityRepresentation](docs/FederatedIdentityRepresentation.md) + - [GlobalRequestResult](docs/GlobalRequestResult.md) + - [GroupRepresentation](docs/GroupRepresentation.md) + - [IDToken](docs/IDToken.md) + - [IdentityProviderMapperRepresentation](docs/IdentityProviderMapperRepresentation.md) + - [IdentityProviderMapperTypeRepresentation](docs/IdentityProviderMapperTypeRepresentation.md) + - [IdentityProviderRepresentation](docs/IdentityProviderRepresentation.md) + - [InstallationAdapterConfig](docs/InstallationAdapterConfig.md) + - [KeyMetadataRepresentation](docs/KeyMetadataRepresentation.md) + - [KeyStoreConfig](docs/KeyStoreConfig.md) + - [KeyUse](docs/KeyUse.md) + - [KeysMetadataRepresentation](docs/KeysMetadataRepresentation.md) + - [Logic](docs/Logic.md) + - [ManagementPermissionReference](docs/ManagementPermissionReference.md) + - [MappingsRepresentation](docs/MappingsRepresentation.md) + - [MemberRepresentation](docs/MemberRepresentation.md) + - [MembershipType](docs/MembershipType.md) + - [MethodConfig](docs/MethodConfig.md) + - [OAuthClientRepresentation](docs/OAuthClientRepresentation.md) + - [OrganizationDomainRepresentation](docs/OrganizationDomainRepresentation.md) + - [OrganizationRepresentation](docs/OrganizationRepresentation.md) + - [PathCacheConfig](docs/PathCacheConfig.md) + - [PathConfig](docs/PathConfig.md) + - [Permission](docs/Permission.md) + - [PolicyEnforcementMode](docs/PolicyEnforcementMode.md) + - [PolicyEnforcerConfig](docs/PolicyEnforcerConfig.md) + - [PolicyEvaluationRequest](docs/PolicyEvaluationRequest.md) + - [PolicyEvaluationResponse](docs/PolicyEvaluationResponse.md) + - [PolicyProviderRepresentation](docs/PolicyProviderRepresentation.md) + - [PolicyRepresentation](docs/PolicyRepresentation.md) + - [PolicyResultRepresentation](docs/PolicyResultRepresentation.md) + - [PropertyConfig](docs/PropertyConfig.md) + - [ProtocolMapperEvaluationRepresentation](docs/ProtocolMapperEvaluationRepresentation.md) + - [ProtocolMapperRepresentation](docs/ProtocolMapperRepresentation.md) + - [PublishedRealmRepresentation](docs/PublishedRealmRepresentation.md) + - [RealmEventsConfigRepresentation](docs/RealmEventsConfigRepresentation.md) + - [RealmRepresentation](docs/RealmRepresentation.md) + - [RequiredActionConfigInfoRepresentation](docs/RequiredActionConfigInfoRepresentation.md) + - [RequiredActionConfigRepresentation](docs/RequiredActionConfigRepresentation.md) + - [RequiredActionProviderRepresentation](docs/RequiredActionProviderRepresentation.md) + - [ResourceOwnerRepresentation](docs/ResourceOwnerRepresentation.md) + - [ResourceRepresentation](docs/ResourceRepresentation.md) + - [ResourceServerRepresentation](docs/ResourceServerRepresentation.md) + - [RoleRepresentation](docs/RoleRepresentation.md) + - [RolesRepresentation](docs/RolesRepresentation.md) + - [ScopeEnforcementMode](docs/ScopeEnforcementMode.md) + - [ScopeMappingRepresentation](docs/ScopeMappingRepresentation.md) + - [ScopeRepresentation](docs/ScopeRepresentation.md) + - [SocialLinkRepresentation](docs/SocialLinkRepresentation.md) + - [UPAttribute](docs/UPAttribute.md) + - [UPAttributePermissions](docs/UPAttributePermissions.md) + - [UPAttributeRequired](docs/UPAttributeRequired.md) + - [UPAttributeSelector](docs/UPAttributeSelector.md) + - [UPConfig](docs/UPConfig.md) + - [UPGroup](docs/UPGroup.md) + - [UnmanagedAttributePolicy](docs/UnmanagedAttributePolicy.md) + - [UserConsentRepresentation](docs/UserConsentRepresentation.md) + - [UserFederationMapperRepresentation](docs/UserFederationMapperRepresentation.md) + - [UserFederationProviderRepresentation](docs/UserFederationProviderRepresentation.md) + - [UserProfileAttributeGroupMetadata](docs/UserProfileAttributeGroupMetadata.md) + - [UserProfileAttributeMetadata](docs/UserProfileAttributeMetadata.md) + - [UserProfileMetadata](docs/UserProfileMetadata.md) + - [UserRepresentation](docs/UserRepresentation.md) + - [UserSessionRepresentation](docs/UserSessionRepresentation.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/api/openapi.yaml b/api/openapi.yaml new file mode 100644 index 0000000..b8f4d62 --- /dev/null +++ b/api/openapi.yaml @@ -0,0 +1,30616 @@ +openapi: 3.0.3 +info: + description: This is a REST API reference for the Keycloak Admin REST API. + title: Keycloak Admin REST API + version: "1.0" +servers: +- url: / +tags: +- name: Attack Detection +- name: Authentication Management +- name: Client Attribute Certificate +- name: Client Initial Access +- name: Client Registration Policy +- name: Client Role Mappings +- name: Client Scopes +- name: Clients +- name: Component +- name: Groups +- name: Identity Providers +- name: Key +- name: Organizations +- name: Protocol Mappers +- name: Realms Admin +- name: Role Mapper +- name: Roles +- name: Roles (by ID) +- name: Scope Mappings +- name: Users +paths: + /admin/realms: + get: + parameters: + - explode: true + in: query + name: briefRepresentation + required: false + schema: + default: false + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RealmRepresentation' + type: array + description: OK + summary: Get accessible realms Returns a list of accessible realms. The list + is filtered based on what realms the caller is allowed to view. + tags: + - Realms Admin + post: + description: Realm name must be unique. + requestBody: + content: + application/json: + schema: + format: binary + type: string + responses: + "201": + description: Created + summary: Import a realm. Imports a realm from a full representation of that + realm. + tags: + - Realms Admin + /admin/realms/{realm}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete the realm + tags: + - Realms Admin + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RealmRepresentation' + description: OK + summary: Get the top-level representation of the realm It will not include nested + information like User and Client representations. + tags: + - Realms Admin + put: + description: This will only update top-level attributes of the realm. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RealmRepresentation' + responses: + "200": + description: OK + summary: "Update the top-level information of the realm Any user, roles or client\ + \ information in the representation will be ignored." + tags: + - Realms Admin + /admin/realms/{realm}/admin-events: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete all admin events + tags: + - Realms Admin + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: authClient + required: false + schema: + type: string + style: form + - explode: true + in: query + name: authIpAddress + required: false + schema: + type: string + style: form + - explode: true + in: query + name: authRealm + required: false + schema: + type: string + style: form + - description: user id + explode: true + in: query + name: authUser + required: false + schema: + type: string + style: form + - explode: true + in: query + name: dateFrom + required: false + schema: + type: string + style: form + - explode: true + in: query + name: dateTo + required: false + schema: + type: string + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: Maximum results size (defaults to 100) + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: operationTypes + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: resourcePath + required: false + schema: + type: string + style: form + - explode: true + in: query + name: resourceTypes + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AdminEventRepresentation' + type: array + description: OK + summary: "Get admin events Returns all admin events, or filters events based\ + \ on URL query parameters listed here" + tags: + - Realms Admin + /admin/realms/{realm}/attack-detection/brute-force/users: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Clear any user login failures for all users This can release temporary + disabled users + tags: + - Attack Detection + /admin/realms/{realm}/attack-detection/brute-force/users/{userId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: userId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Clear any user login failures for the user This can release temporary + disabled user + tags: + - Attack Detection + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: userId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: {} + type: object + description: OK + summary: Get status of a username in brute force detection + tags: + - Attack Detection + /admin/realms/{realm}/authentication/authenticator-providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + additionalProperties: {} + type: object + type: array + description: OK + summary: Get authenticator providers Returns a stream of authenticator providers. + tags: + - Authentication Management + /admin/realms/{realm}/authentication/client-authenticator-providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + additionalProperties: {} + type: object + type: array + description: OK + summary: Get client authenticator providers Returns a stream of client authenticator + providers. + tags: + - Authentication Management + /admin/realms/{realm}/authentication/config: + post: + deprecated: true + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorConfigRepresentation' + responses: + "201": + description: Created + summary: Create new authenticator configuration + tags: + - Authentication Management + /admin/realms/{realm}/authentication/config-description/{providerId}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: providerId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorConfigInfoRepresentation' + description: OK + summary: Get authenticator provider's configuration description + tags: + - Authentication Management + /admin/realms/{realm}/authentication/config/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Configuration id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete authenticator configuration + tags: + - Authentication Management + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Configuration id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorConfigRepresentation' + description: OK + summary: Get authenticator configuration + tags: + - Authentication Management + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Configuration id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorConfigRepresentation' + responses: + "204": + description: No Content + summary: Update authenticator configuration + tags: + - Authentication Management + /admin/realms/{realm}/authentication/executions: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticationExecutionRepresentation' + responses: + "201": + description: Created + summary: Add new authentication execution + tags: + - Authentication Management + /admin/realms/{realm}/authentication/executions/{executionId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Execution id + explode: false + in: path + name: executionId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete execution + tags: + - Authentication Management + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: executionId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticationExecutionRepresentation' + description: OK + summary: Get Single Execution + tags: + - Authentication Management + /admin/realms/{realm}/authentication/executions/{executionId}/config: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Execution id + explode: false + in: path + name: executionId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorConfigRepresentation' + responses: + "201": + description: Created + summary: Update execution with new configuration + tags: + - Authentication Management + /admin/realms/{realm}/authentication/executions/{executionId}/config/{id}: + get: + deprecated: true + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Execution id + explode: false + in: path + name: executionId + required: true + schema: + type: string + style: simple + - description: Configuration id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorConfigRepresentation' + description: OK + summary: Get execution's configuration + tags: + - Authentication Management + /admin/realms/{realm}/authentication/executions/{executionId}/lower-priority: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Execution id + explode: false + in: path + name: executionId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Lower execution's priority + tags: + - Authentication Management + /admin/realms/{realm}/authentication/executions/{executionId}/raise-priority: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Execution id + explode: false + in: path + name: executionId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Raise execution's priority + tags: + - Authentication Management + /admin/realms/{realm}/authentication/flows: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AuthenticationFlowRepresentation' + type: array + description: OK + summary: Get authentication flows Returns a stream of authentication flows. + tags: + - Authentication Management + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticationFlowRepresentation' + responses: + "201": + description: Created + summary: Create a new authentication flow + tags: + - Authentication Management + /admin/realms/{realm}/authentication/flows/{flowAlias}/copy: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: name of the existing authentication flow + explode: false + in: path + name: flowAlias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: + type: string + type: object + responses: + "201": + description: Created + summary: Copy existing authentication flow under a new name The new name is + given as 'newName' attribute of the passed JSON object + tags: + - Authentication Management + /admin/realms/{realm}/authentication/flows/{flowAlias}/executions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Flow alias + explode: false + in: path + name: flowAlias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AuthenticationExecutionInfoRepresentation' + type: array + description: OK + summary: Get authentication executions for a flow + tags: + - Authentication Management + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Flow alias + explode: false + in: path + name: flowAlias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticationExecutionInfoRepresentation' + responses: + "204": + description: No Content + summary: Update authentication executions of a Flow + tags: + - Authentication Management + /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of parent flow + explode: false + in: path + name: flowAlias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: {} + type: object + responses: + "201": + description: Created + summary: Add new authentication execution to a flow + tags: + - Authentication Management + /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of parent authentication flow + explode: false + in: path + name: flowAlias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: {} + type: object + responses: + "201": + description: Created + summary: Add new flow with new execution to existing flow + tags: + - Authentication Management + /admin/realms/{realm}/authentication/flows/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Flow id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete an authentication flow + tags: + - Authentication Management + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Flow id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticationFlowRepresentation' + description: OK + summary: Get authentication flow for id + tags: + - Authentication Management + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticationFlowRepresentation' + responses: + "204": + description: No Content + summary: Update an authentication flow + tags: + - Authentication Management + /admin/realms/{realm}/authentication/form-action-providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + additionalProperties: {} + type: object + type: array + description: OK + summary: Get form action providers Returns a stream of form action providers. + tags: + - Authentication Management + /admin/realms/{realm}/authentication/form-providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + additionalProperties: {} + type: object + type: array + description: OK + summary: Get form providers Returns a stream of form providers. + tags: + - Authentication Management + /admin/realms/{realm}/authentication/per-client-config-description: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: + items: + $ref: '#/components/schemas/ConfigPropertyRepresentation' + type: array + type: object + description: OK + summary: Get configuration descriptions for all clients + tags: + - Authentication Management + /admin/realms/{realm}/authentication/register-required-action: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: + type: string + type: object + responses: + "204": + description: No Content + summary: Register a new required actions + tags: + - Authentication Management + /admin/realms/{realm}/authentication/required-actions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RequiredActionProviderRepresentation' + type: array + description: OK + summary: Get required actions Returns a stream of required actions. + tags: + - Authentication Management + /admin/realms/{realm}/authentication/required-actions/{alias}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete required action + tags: + - Authentication Management + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RequiredActionProviderRepresentation' + description: OK + summary: Get required action for alias + tags: + - Authentication Management + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RequiredActionProviderRepresentation' + responses: + "204": + description: No Content + summary: Update required action + tags: + - Authentication Management + /admin/realms/{realm}/authentication/required-actions/{alias}/config: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete RequiredAction configuration + tags: + - Authentication Management + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RequiredActionConfigRepresentation' + description: OK + summary: Get RequiredAction configuration + tags: + - Authentication Management + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RequiredActionConfigRepresentation' + responses: + "204": + description: No Content + summary: Update RequiredAction configuration + tags: + - Authentication Management + /admin/realms/{realm}/authentication/required-actions/{alias}/config-description: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RequiredActionConfigInfoRepresentation' + description: OK + summary: Get RequiredAction provider configuration description + tags: + - Authentication Management + /admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Lower required action's priority + tags: + - Authentication Management + /admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Alias of required action + explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Raise required action's priority + tags: + - Authentication Management + /admin/realms/{realm}/authentication/unregistered-required-actions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + additionalProperties: + type: string + type: object + type: array + description: OK + summary: Get unregistered required actions Returns a stream of unregistered + required actions. + tags: + - Authentication Management + /admin/realms/{realm}/client-description-converter: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + type: string + application/xml: + schema: + type: string + text/plain: + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRepresentation' + description: OK + summary: Base path for importing clients under this realm. + tags: + - Realms Admin + /admin/realms/{realm}/client-policies/policies: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: include-global-policies + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientPoliciesRepresentation' + description: OK + tags: + - Realms Admin + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientPoliciesRepresentation' + responses: + "200": + description: OK + tags: + - Realms Admin + /admin/realms/{realm}/client-policies/profiles: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: include-global-profiles + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientProfilesRepresentation' + description: OK + tags: + - Realms Admin + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientProfilesRepresentation' + responses: + "200": + description: OK + tags: + - Realms Admin + /admin/realms/{realm}/client-registration-policy/providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ComponentTypeRepresentation' + type: array + description: OK + summary: Base path for retrieve providers with the configProperties properly + filled + tags: + - Client Registration Policy + /admin/realms/{realm}/client-scopes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientScopeRepresentation' + type: array + description: OK + summary: Get client scopes belonging to the realm Returns a list of client scopes + belonging to the realm + tags: + - Client Scopes + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScopeRepresentation' + responses: + "200": + description: OK + summary: Create a new client scope Client Scope’s name must be unique! + tags: + - Client Scopes + /admin/realms/{realm}/client-scopes/{client-scope-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Delete the client scope + tags: + - Client Scopes + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScopeRepresentation' + description: OK + summary: Get representation of the client scope + tags: + - Client Scopes + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScopeRepresentation' + responses: + "200": + description: OK + summary: Update the client scope + tags: + - Client Scopes + /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + responses: + "204": + description: No Content + summary: Create multiple mappers + tags: + - Protocol Mappers + /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + description: OK + summary: Get mappers + tags: + - Protocol Mappers + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + responses: + "200": + description: OK + summary: Create a mapper + tags: + - Protocol Mappers + /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete the mapper + tags: + - Protocol Mappers + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + description: OK + summary: Get mapper by id + tags: + - Protocol Mappers + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + responses: + "204": + description: No Content + summary: Update the mapper + tags: + - Protocol Mappers + /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/protocol/{protocol}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: protocol + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + description: OK + summary: Get mappers by name for a specific protocol + tags: + - Protocol Mappers + /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings: + get: + deprecated: true + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MappingsRepresentation' + description: OK + summary: Get all scope mappings for the client + tags: + - Scope Mappings + /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove client-level roles from the client's scope. + tags: + - Scope Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get the roles associated with a client's scope Returns roles for the + client. + tags: + - Scope Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add client-level roles to the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: The available client-level roles Returns the roles for the client that + can be associated with the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/composite: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective client roles Returns the roles for the client that are + associated with the client's scope. + tags: + - Scope Mappings + /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove a set of realm-level roles from the client's scope + tags: + - Scope Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles associated with the client's scope + tags: + - Scope Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add a set of realm-level roles to the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles that are available to attach to this client's + scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/composite: + get: + description: The method is really to show a comprehensive total view of realm-level + roles associated with the client. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective realm-level roles associated with the client’s scope + What this does is recurse any composite roles associated with the client’s + scope and adds the roles to this lists. + tags: + - Scope Mappings + /admin/realms/{realm}/client-session-stats: + get: + description: "The key is the client id, the value is the number of sessions\ + \ that currently are active with that client. Only clients that actually have\ + \ a session associated with them will be in this map." + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + additionalProperties: + type: string + type: object + type: array + description: OK + summary: Get client session stats Returns a JSON map. + tags: + - Realms Admin + /admin/realms/{realm}/client-templates: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientScopeRepresentation' + type: array + description: OK + summary: Get client scopes belonging to the realm Returns a list of client scopes + belonging to the realm + tags: + - Client Scopes + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScopeRepresentation' + responses: + "200": + description: OK + summary: Create a new client scope Client Scope’s name must be unique! + tags: + - Client Scopes + /admin/realms/{realm}/client-templates/{client-scope-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Delete the client scope + tags: + - Client Scopes + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScopeRepresentation' + description: OK + summary: Get representation of the client scope + tags: + - Client Scopes + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScopeRepresentation' + responses: + "200": + description: OK + summary: Update the client scope + tags: + - Client Scopes + /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/add-models: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + responses: + "204": + description: No Content + summary: Create multiple mappers + tags: + - Protocol Mappers + /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + description: OK + summary: Get mappers + tags: + - Protocol Mappers + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + responses: + "200": + description: OK + summary: Create a mapper + tags: + - Protocol Mappers + /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete the mapper + tags: + - Protocol Mappers + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + description: OK + summary: Get mapper by id + tags: + - Protocol Mappers + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + responses: + "204": + description: No Content + summary: Update the mapper + tags: + - Protocol Mappers + /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/protocol/{protocol}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: protocol + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + description: OK + summary: Get mappers by name for a specific protocol + tags: + - Protocol Mappers + /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings: + get: + deprecated: true + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MappingsRepresentation' + description: OK + summary: Get all scope mappings for the client + tags: + - Scope Mappings + /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove client-level roles from the client's scope. + tags: + - Scope Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get the roles associated with a client's scope Returns roles for the + client. + tags: + - Scope Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add client-level roles to the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: The available client-level roles Returns the roles for the client that + can be associated with the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/composite: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective client roles Returns the roles for the client that are + associated with the client's scope. + tags: + - Scope Mappings + /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove a set of realm-level roles from the client's scope + tags: + - Scope Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles associated with the client's scope + tags: + - Scope Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add a set of realm-level roles to the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles that are available to attach to this client's + scope + tags: + - Scope Mappings + /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/composite: + get: + description: The method is really to show a comprehensive total view of realm-level + roles associated with the client. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-scope-id + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective realm-level roles associated with the client’s scope + What this does is recurse any composite roles associated with the client’s + scope and adds the roles to this lists. + tags: + - Scope Mappings + /admin/realms/{realm}/client-types: + get: + description: This endpoint returns a list of both global and realm level client + types and the attributes they set + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientTypesRepresentation' + description: OK + summary: List all client types available in the current realm + tags: + - Realms Admin + put: + description: This endpoint allows you to update a realm level client type + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientTypesRepresentation' + responses: + "204": + description: No Content + summary: Update a client type + tags: + - Realms Admin + /admin/realms/{realm}/clients: + get: + description: "If a client can’t be retrieved from the storage due to a problem\ + \ with the underlying storage, it is silently removed from the returned list.\ + \ This ensures that concurrent modifications to the list don’t prevent callers\ + \ from retrieving this list." + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: filter by clientId + explode: true + in: query + name: clientId + required: false + schema: + type: string + style: form + - description: the first result + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: the max results to return + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: q + required: false + schema: + type: string + style: form + - description: whether this is a search query or a getClientById query + explode: true + in: query + name: search + required: false + schema: + default: false + type: boolean + style: form + - description: filter clients that cannot be viewed in full by admin + explode: true + in: query + name: viewableOnly + required: false + schema: + default: false + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientRepresentation' + type: array + description: OK + summary: Get clients belonging to the realm. + tags: + - Clients + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRepresentation' + responses: + "201": + description: Created + summary: Create a new client Client’s client_id must be unique! + tags: + - Clients + /admin/realms/{realm}/clients-initial-access: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientInitialAccessPresentation' + type: array + description: OK + tags: + - Client Initial Access + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientInitialAccessCreatePresentation' + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientInitialAccessCreatePresentation' + description: Created + summary: Create a new initial access token. + tags: + - Client Initial Access + /admin/realms/{realm}/clients-initial-access/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Client Initial Access + /admin/realms/{realm}/clients/{client-uuid}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete the client + tags: + - Clients + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRepresentation' + description: OK + summary: Get representation of the client + tags: + - Clients + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRepresentation' + responses: + "200": + description: OK + summary: Update the client + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceServerRepresentation' + description: OK + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceServerRepresentation' + responses: + "204": + description: No Content + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/import: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceServerRepresentation' + responses: + "204": + description: No Content + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: permission + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: policyId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: resource + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AbstractPolicyRepresentation' + type: array + description: OK + "204": + description: No Content + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + type: string + responses: + "201": + description: Created + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PolicyEvaluationRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PolicyEvaluationResponse' + description: OK + "500": + description: Internal Server Error + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/PolicyProviderRepresentation' + type: array + description: OK + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/search: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AbstractPolicyRepresentation' + description: OK + "204": + description: No Content + "400": + description: Bad Request + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: permission + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: policyId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: resource + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AbstractPolicyRepresentation' + type: array + description: OK + "204": + description: No Content + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + type: string + responses: + "201": + description: Created + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PolicyEvaluationRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PolicyEvaluationResponse' + description: OK + "500": + description: Internal Server Error + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/PolicyProviderRepresentation' + type: array + description: OK + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/search: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AbstractPolicyRepresentation' + description: OK + "204": + description: No Content + "400": + description: Bad Request + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + description: OK + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceRepresentation' + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceRepresentation' + description: Created + "400": + description: Bad Request + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/search: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceRepresentation' + description: OK + "204": + description: No Content + "400": + description: Bad Request + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + - explode: false + in: path + name: resource-id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + "404": + description: Not Found + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + - explode: false + in: path + name: resource-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceRepresentation' + description: OK + "404": + description: Not found + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + - explode: false + in: path + name: resource-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceRepresentation' + responses: + "204": + description: No Content + "404": + description: Not Found + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/attributes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + - explode: false + in: path + name: resource-id + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + - explode: false + in: path + name: resource-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/PolicyRepresentation' + type: array + description: OK + "404": + description: Not found + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/scopes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: _id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deep + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exactName + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: matchingUri + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: owner + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: uri + required: false + schema: + type: string + style: form + - explode: false + in: path + name: resource-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + description: OK + "404": + description: Not found + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: scopeId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + description: OK + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScopeRepresentation' + responses: + "200": + description: OK + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + description: OK + "204": + description: No Content + "400": + description: Bad Request + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ScopeRepresentation' + description: OK + "404": + description: Not found + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: scope-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScopeRepresentation' + responses: + "200": + description: OK + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/PolicyRepresentation' + type: array + description: OK + "404": + description: Not found + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/resources: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: scope-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + description: OK + "404": + description: Not found + /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceServerRepresentation' + description: OK + /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: attr + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateRepresentation' + description: OK + summary: Get key info + tags: + - Client Attribute Certificate + /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: attr + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/KeyStoreConfig' + responses: + "200": + content: + application/octet-stream: + schema: + format: binary + type: string + description: OK + summary: "Get a keystore file for the client, containing private key and public\ + \ certificate" + tags: + - Client Attribute Certificate + /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: attr + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateRepresentation' + description: OK + summary: Generate a new certificate with new key pair + tags: + - Client Attribute Certificate + /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: attr + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/KeyStoreConfig' + responses: + "200": + content: + application/octet-stream: + schema: + format: binary + type: string + description: OK + summary: |- + Generate a new keypair and certificate, and get the private key file + + Generates a keypair and certificate and serves the private key in a specified keystore format. + Only generated public certificate is saved in Keycloak DB - the private key is not. + tags: + - Client Attribute Certificate + /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: attr + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateRepresentation' + description: OK + summary: Upload certificate and eventually private key + tags: + - Client Attribute Certificate + /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: attr + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateRepresentation' + description: OK + summary: "Upload only certificate, not private key" + tags: + - Client Attribute Certificate + /admin/realms/{realm}/clients/{client-uuid}/client-secret: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CredentialRepresentation' + description: OK + summary: Get the client secret + tags: + - Clients + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CredentialRepresentation' + description: OK + summary: Generate a new secret for the client + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Invalidate the rotated secret for the client + tags: + - Clients + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CredentialRepresentation' + description: OK + summary: Get the rotated client secret + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientScopeRepresentation' + type: array + description: OK + summary: Get default client scopes. Only name and ids are returned. + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Clients + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-access-token: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessToken' + description: OK + summary: Create JSON with payload of example access token + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-id-token: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/IDToken' + description: OK + summary: Create JSON with payload of example id token + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-userinfo: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + additionalProperties: {} + type: object + description: OK + summary: Create JSON with payload of example user info + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/protocol-mappers: + get: + description: This means protocol mappers assigned to this client directly and + protocol mappers assigned to all client scopes of this client. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperEvaluationRepresentation' + type: array + description: OK + summary: "Return list of all protocol mappers, which will be used when generating\ + \ tokens issued for particular client." + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted: + get: + description: "This contains scope mappings, which this client has directly,\ + \ as well as scope mappings, which are granted to all client scopes, which\ + \ are linked with this client." + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: either realm name OR client UUID + explode: false + in: path + name: roleContainerId + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: "Get effective scope mapping of all roles of particular role container,\ + \ which this client is defacto allowed to have in the accessToken issued for\ + \ him." + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted: + get: + description: "Defacto all the other roles of particular role container, which\ + \ are not in {@link #getGrantedScopeMappings()}" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: either realm name OR client UUID + explode: false + in: path + name: roleContainerId + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: scope + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: "Get roles, which this client doesn't have scope for and can't have\ + \ them in the accessToken issued for him." + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/installation/providers/{providerId}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: providerId + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/management/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether client Authorization permissions have + been initialized or not and a reference + tags: + - Clients + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether client Authorization permissions have + been initialized or not and a reference + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/nodes: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: + type: string + type: object + responses: + "204": + description: No Content + summary: Register a cluster node with the client Manually register cluster node + to this client - usually it’s not needed to call this directly as adapter + should handle by sending registration request to Keycloak + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/nodes/{node}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: node + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Unregister a cluster node from the client + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/offline-session-count: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: + format: int64 + type: integer + type: object + description: OK + summary: "Get application offline session count Returns a number of offline\ + \ user sessions associated with this client { \"count\": number }" + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/offline-sessions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: Paging offset + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: Maximum results size (defaults to 100) + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserSessionRepresentation' + type: array + description: OK + summary: Get offline sessions for client Returns a list of offline user sessions + associated with this client + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientScopeRepresentation' + type: array + description: OK + summary: Get optional client scopes. Only name and ids are returned. + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Clients + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/add-models: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + responses: + "204": + description: No Content + summary: Create multiple mappers + tags: + - Protocol Mappers + /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + description: OK + summary: Get mappers + tags: + - Protocol Mappers + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + responses: + "200": + description: OK + summary: Create a mapper + tags: + - Protocol Mappers + /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete the mapper + tags: + - Protocol Mappers + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + description: OK + summary: Get mapper by id + tags: + - Protocol Mappers + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + responses: + "204": + description: No Content + summary: Update the mapper + tags: + - Protocol Mappers + /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/protocol/{protocol}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: protocol + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + description: OK + summary: Get mappers by name for a specific protocol + tags: + - Protocol Mappers + /admin/realms/{realm}/clients/{client-uuid}/push-revocation: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GlobalRequestResult' + description: OK + summary: "Push the client's revocation policy to its admin URL If the client\ + \ has an admin URL, push revocation policy to it." + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/registration-access-token: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRepresentation' + description: OK + summary: Generate a new registration access token for the client + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/roles: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: search + required: false + schema: + default: "" + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get all roles for the realm or client + tags: + - Roles + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + responses: + "200": + description: OK + summary: Create a new role for the realm or client + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete a role by name + tags: + - Roles + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + description: OK + summary: Get a role by name + tags: + - Roles + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + responses: + "200": + description: OK + summary: Update a role by name + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove roles from the role's composite + tags: + - Roles + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get composites of the role + tags: + - Roles + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add a composite to the role + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-in-composite-uuid}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-in-composite-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get client-level roles for the client that are in the role's composite + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles of the role's composite + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: the role name. + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + - description: "if false, return a full representation of the {@code GroupRepresentation}\ + \ objects." + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + - description: "first result to return. Ignored if negative or {@code null}." + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: "maximum number of results to return. Ignored if negative or\ + \ {@code null}." + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + description: OK + summary: Returns a stream of groups that have the specified role name + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether role Authorization permissions have been + initialized or not and a reference + tags: + - Roles + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether role Authorization permissions have been + initialized or not and a reference + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: the role name. + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + - description: "Boolean which defines whether brief representations are returned\ + \ (default: false)" + explode: true + in: query + name: briefRepresentation + required: false + schema: + type: boolean + style: form + - description: "first result to return. Ignored if negative or {@code null}." + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: "maximum number of results to return. Ignored if negative or\ + \ {@code null}." + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserRepresentation' + type: array + description: OK + summary: Returns a stream of users that have the specified role name. + tags: + - Roles + /admin/realms/{realm}/clients/{client-uuid}/scope-mappings: + get: + deprecated: true + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MappingsRepresentation' + description: OK + summary: Get all scope mappings for the client + tags: + - Scope Mappings + /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove client-level roles from the client's scope. + tags: + - Scope Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get the roles associated with a client's scope Returns roles for the + client. + tags: + - Scope Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add client-level roles to the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: The available client-level roles Returns the roles for the client that + can be associated with the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/composite: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective client roles Returns the roles for the client that are + associated with the client's scope. + tags: + - Scope Mappings + /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove a set of realm-level roles from the client's scope + tags: + - Scope Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles associated with the client's scope + tags: + - Scope Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add a set of realm-level roles to the client's scope + tags: + - Scope Mappings + /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles that are available to attach to this client's + scope + tags: + - Scope Mappings + /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/composite: + get: + description: The method is really to show a comprehensive total view of realm-level + roles associated with the client. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective realm-level roles associated with the client’s scope + What this does is recurse any composite roles associated with the client’s + scope and adds the roles to this lists. + tags: + - Scope Mappings + /admin/realms/{realm}/clients/{client-uuid}/service-account-user: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserRepresentation' + description: OK + summary: Get a user dedicated to the service account + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/session-count: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: + format: int64 + type: integer + type: object + description: OK + summary: "Get application session count Returns a number of user sessions associated\ + \ with this client { \"count\": number }" + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/test-nodes-available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GlobalRequestResult' + description: OK + summary: Test if registered cluster nodes are available Tests availability by + sending 'ping' request to all cluster nodes. + tags: + - Clients + /admin/realms/{realm}/clients/{client-uuid}/user-sessions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of client (not client-id!) + explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: Paging offset + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: Maximum results size (defaults to 100) + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserSessionRepresentation' + type: array + description: OK + summary: | + Get user sessions for client Returns a list of user sessions associated with this client + tags: + - Clients + /admin/realms/{realm}/components: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: parent + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ComponentRepresentation' + type: array + description: OK + tags: + - Component + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ComponentRepresentation' + responses: + "200": + description: OK + tags: + - Component + /admin/realms/{realm}/components/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Component + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ComponentRepresentation' + description: OK + tags: + - Component + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ComponentRepresentation' + responses: + "200": + description: OK + tags: + - Component + /admin/realms/{realm}/components/{id}/sub-component-types: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ComponentTypeRepresentation' + type: array + description: OK + summary: List of subcomponent types that are available to configure for a particular + parent component. + tags: + - Component + /admin/realms/{realm}/credential-registrators: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + type: string + type: array + description: OK + tags: + - Realms Admin + /admin/realms/{realm}/default-default-client-scopes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientScopeRepresentation' + type: array + description: OK + summary: Get realm default client scopes. Only name and ids are returned. + tags: + - Realms Admin + /admin/realms/{realm}/default-default-client-scopes/{clientScopeId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + /admin/realms/{realm}/default-groups: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + description: OK + summary: Get group hierarchy. Only name and ids are returned. + tags: + - Realms Admin + /admin/realms/{realm}/default-groups/{groupId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: groupId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: groupId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + /admin/realms/{realm}/default-optional-client-scopes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ClientScopeRepresentation' + type: array + description: OK + summary: Get realm optional client scopes. Only name and ids are returned. + tags: + - Realms Admin + /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientScopeId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + /admin/realms/{realm}/events: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete all events + tags: + - Realms Admin + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: App or oauth client name + explode: true + in: query + name: client + required: false + schema: + type: string + style: form + - description: From date + explode: true + in: query + name: dateFrom + required: false + schema: + type: string + style: form + - description: To date + explode: true + in: query + name: dateTo + required: false + schema: + type: string + style: form + - description: Paging offset + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: IP Address + explode: true + in: query + name: ipAddress + required: false + schema: + type: string + style: form + - description: Maximum results size (defaults to 100) + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - description: The types of events to return + explode: true + in: query + name: type + required: false + schema: + items: + type: string + type: array + style: form + - description: User id + explode: true + in: query + name: user + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/EventRepresentation' + type: array + description: OK + summary: "Get events Returns all events, or filters them based on URL query\ + \ parameters listed here" + tags: + - Realms Admin + /admin/realms/{realm}/events/config: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RealmEventsConfigRepresentation' + description: OK + summary: Get the events provider configuration Returns JSON object with events + provider configuration + tags: + - Realms Admin + put: + description: Update the events provider Change the events provider and/or its + configuration + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RealmEventsConfigRepresentation' + responses: + "204": + description: No Content + tags: + - Realms Admin + /admin/realms/{realm}/group-by-path/{path}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: path + required: true + schema: + pattern: .* + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GroupRepresentation' + description: OK + tags: + - Realms Admin + /admin/realms/{realm}/groups: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + - explode: true + in: query + name: exact + required: false + schema: + default: false + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: populateHierarchy + required: false + schema: + default: true + type: boolean + style: form + - explode: true + in: query + name: q + required: false + schema: + type: string + style: form + - explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + description: OK + summary: Get group hierarchy. Only name and ids are returned. + tags: + - Groups + post: + description: This will update the group and set the parent if it exists. Create + it and set the parent if the group doesn’t exist. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupRepresentation' + responses: + "200": + description: OK + summary: create or add a top level realm groupSet or create child. + tags: + - Groups + /admin/realms/{realm}/groups/count: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - explode: true + in: query + name: top + required: false + schema: + default: false + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + additionalProperties: + format: int64 + type: integer + type: object + description: OK + summary: Returns the groups counts. + tags: + - Groups + /admin/realms/{realm}/groups/{group-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Groups + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GroupRepresentation' + description: OK + tags: + - Groups + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupRepresentation' + responses: + "200": + description: OK + summary: "Update group, ignores subgroups." + tags: + - Groups + /admin/realms/{realm}/groups/{group-id}/children: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: "Boolean which defines whether brief groups representations are\ + \ returned or not (default: false)" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: false + type: boolean + style: form + - description: Boolean which defines whether the params "search" must match + exactly or not + explode: true + in: query + name: exact + required: false + schema: + type: boolean + style: form + - description: The position of the first result to be returned (pagination offset). + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: The maximum number of results that are to be returned. Defaults + to 10 + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - description: A String representing either an exact group name or a partial + name + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + description: OK + summary: Return a paginated list of subgroups that have a parent group corresponding + to the group on the URL + tags: + - Groups + post: + description: This will just set the parent if it exists. Create it and set the + parent if the group doesn’t exist. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupRepresentation' + responses: + "200": + description: OK + summary: Set or create child. + tags: + - Groups + /admin/realms/{realm}/groups/{group-id}/management/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether client Authorization permissions have + been initialized or not and a reference + tags: + - Groups + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether client Authorization permissions have + been initialized or not and a reference + tags: + - Groups + /admin/realms/{realm}/groups/{group-id}/members: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: "Only return basic information (only guaranteed to return id,\ + \ username, created, first and last name, email, enabled state, email verification\ + \ state, federation link, and access. Note that it means that namely user\ + \ attributes, required actions, and not before are not returned.)" + explode: true + in: query + name: briefRepresentation + required: false + schema: + type: boolean + style: form + - description: Pagination offset + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: Maximum results size (defaults to 100) + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserRepresentation' + type: array + description: OK + summary: "Get users Returns a stream of users, filtered according to query parameters" + tags: + - Groups + /admin/realms/{realm}/groups/{group-id}/role-mappings: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MappingsRepresentation' + description: OK + summary: Get role mappings + tags: + - Role Mapper + /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Delete client-level roles from user or group role mapping + tags: + - Client Role Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: "Get client-level role mappings for the user or group, and the app" + tags: + - Client Role Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add client-level roles to the user or group role mapping + tags: + - Client Role Mappings + /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get available client-level roles that can be mapped to the user or + group + tags: + - Client Role Mappings + /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/composite: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective client-level role mappings This recurses any composite + roles + tags: + - Client Role Mappings + /admin/realms/{realm}/groups/{group-id}/role-mappings/realm: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Delete realm-level role mappings + tags: + - Role Mapper + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level role mappings + tags: + - Role Mapper + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add realm-level role mappings to the user + tags: + - Role Mapper + /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles that can be mapped + tags: + - Role Mapper + /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/composite: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: group-id + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective realm-level role mappings This will recurse all composite + roles to get the result. + tags: + - Role Mapper + /admin/realms/{realm}/identity-provider/import-config: + post: + description: Import identity provider from uploaded JSON file + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: {} + type: object + responses: + "200": + content: + application/json: + schema: + additionalProperties: + type: string + type: object + description: OK + summary: Import identity provider from JSON body + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: "Boolean which defines whether brief representations are returned\ + \ (default: false)" + explode: true + in: query + name: briefRepresentation + required: false + schema: + type: boolean + style: form + - description: Pagination offset + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: Maximum results size (defaults to 100) + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - description: "Boolean which defines if only realm-level IDPs (not associated\ + \ with orgs) should be returned (default: false)" + explode: true + in: query + name: realmOnly + required: false + schema: + type: boolean + style: form + - description: "Filter specific providers by name. Search can be prefix (name*),\ + \ contains (*name*) or exact (\"name\"). Default prefixed." + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/IdentityProviderRepresentation' + type: array + description: OK + summary: List identity providers + tags: + - Identity Providers + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/IdentityProviderRepresentation' + responses: + "200": + description: OK + summary: Create a new identity provider + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances/{alias}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Delete the identity provider + tags: + - Identity Providers + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/IdentityProviderRepresentation' + description: OK + summary: Get the identity provider + tags: + - Identity Providers + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/IdentityProviderRepresentation' + responses: + "200": + description: OK + summary: Update the identity provider + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances/{alias}/export: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + - description: Format to use + explode: true + in: query + name: format + required: false + schema: + type: string + style: form + responses: + "200": + description: OK + summary: Export public broker configuration for identity provider + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether client Authorization permissions have + been initialized or not and a reference + tags: + - Identity Providers + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether client Authorization permissions have + been initialized or not and a reference + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + '*/*': + schema: + additionalProperties: + $ref: '#/components/schemas/IdentityProviderMapperTypeRepresentation' + type: object + description: OK + summary: Get mapper types for identity provider + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances/{alias}/mappers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/IdentityProviderMapperRepresentation' + type: array + description: OK + summary: Get mappers for identity provider + tags: + - Identity Providers + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/IdentityProviderMapperRepresentation' + responses: + "200": + description: OK + summary: Add a mapper to identity provider + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete a mapper for the identity provider + tags: + - Identity Providers + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/IdentityProviderMapperRepresentation' + description: OK + summary: Get mapper by id for the identity provider + tags: + - Identity Providers + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + - description: Mapper id + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/IdentityProviderMapperRepresentation' + responses: + "204": + description: No Content + summary: Update a mapper for the identity provider + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: boolean + description: OK + summary: "Reaload keys for the identity provider if the provider supports it,\ + \ \"true\" is returned if reload was performed, \"false\" if not." + tags: + - Identity Providers + /admin/realms/{realm}/identity-provider/providers/{provider_id}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: The provider id to get the factory + explode: false + in: path + name: provider_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + summary: Get the identity provider factory for that provider id + tags: + - Identity Providers + /admin/realms/{realm}/keys: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/KeysMetadataRepresentation' + description: OK + tags: + - Key + /admin/realms/{realm}/localization: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + type: string + type: array + description: OK + tags: + - Realms Admin + /admin/realms/{realm}/localization/{locale}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: locale + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: locale + required: true + schema: + type: string + style: simple + - deprecated: true + explode: true + in: query + name: useRealmDefaultLocaleFallback + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + additionalProperties: + type: string + type: object + description: OK + tags: + - Realms Admin + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: locale + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: + type: string + type: object + responses: + "204": + description: No Content + summary: Import localization from uploaded JSON file + tags: + - Realms Admin + /admin/realms/{realm}/localization/{locale}/{key}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: locale + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Realms Admin + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: locale + required: true + schema: + type: string + style: simple + responses: + "200": + content: + text/plain: + schema: + type: string + description: OK + tags: + - Realms Admin + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: locale + required: true + schema: + type: string + style: simple + requestBody: + content: + text/plain: + schema: + type: string + responses: + "204": + description: No Content + tags: + - Realms Admin + /admin/realms/{realm}/logout-all: + post: + description: Any client that has an admin url will also be told to invalidate + any sessions they have. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GlobalRequestResult' + description: OK + summary: Removes all user sessions. + tags: + - Realms Admin + /admin/realms/{realm}/organizations: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Boolean which defines whether the param 'search' must match exactly + or not + explode: true + in: query + name: exact + required: false + schema: + type: boolean + style: form + - description: The position of the first result to be processed (pagination + offset) + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: The maximum number of results to be returned - defaults to 10 + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - description: "A query to search for custom attributes, in the format 'key1:value2\ + \ key2:value2'" + explode: true + in: query + name: q + required: false + schema: + type: string + style: form + - description: A String representing either an organization name or domain + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/OrganizationRepresentation' + type: array + description: OK + summary: Returns a paginated list of organizations filtered according to the + specified parameters + tags: + - Organizations + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationRepresentation' + responses: + "200": + description: OK + summary: Creates a new organization + tags: + - Organizations + /admin/realms/{realm}/organizations/members/{id}/organizations: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/OrganizationRepresentation' + type: array + description: OK + summary: Returns the organizations associated with the user that has the specified + id + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Deletes the organization + tags: + - Organizations + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationRepresentation' + description: OK + summary: Returns the organization representation + tags: + - Organizations + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationRepresentation' + responses: + "200": + description: OK + summary: Updates the organization + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/identity-providers: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/IdentityProviderRepresentation' + type: array + description: OK + summary: Returns all identity providers associated with the organization + tags: + - Organizations + post: + description: "Adds, or associates, an existing identity provider with the organization.\ + \ If no identity provider is found, or if it is already associated with the\ + \ organization, an error response is returned" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + type: string + responses: + "200": + description: OK + summary: Adds the identity provider with the specified id to the organization + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/identity-providers/{alias}: + delete: + description: "Breaks the association between the identity provider and the organization.\ + \ The provider itself is not deleted. If no provider is found, or if it is\ + \ not currently associated with the org, an error response is returned" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Removes the identity provider with the specified alias from the organization + tags: + - Organizations + get: + description: "Searches for an identity provider with the given alias. If one\ + \ is found and is associated with the organization, it is returned. Otherwise,\ + \ an error response with status NOT_FOUND is returned" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: alias + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/IdentityProviderRepresentation' + description: OK + summary: Returns the identity provider associated with the organization that + has the specified alias + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/members: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Boolean which defines whether the param 'search' must match exactly + or not + explode: true + in: query + name: exact + required: false + schema: + type: boolean + style: form + - description: The position of the first result to be processed (pagination + offset) + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: The maximum number of results to be returned. Defaults to 10 + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - description: "A String representing either a member's username, e-mail, first\ + \ name, or last name." + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/MemberRepresentation' + type: array + description: OK + summary: Returns a paginated list of organization members filtered according + to the specified parameters + tags: + - Organizations + post: + description: "Adds, or associates, an existing user with the organization. If\ + \ no user is found, or if it is already associated with the organization,\ + \ an error response is returned" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + type: string + responses: + "200": + description: OK + summary: Adds the user with the specified id as a member of the organization + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/members/count: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + format: int64 + type: integer + description: OK + summary: Returns number of members in the organization. + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/members/invite-existing-user: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/_admin_realms__realm__organizations__id__members_invite_existing_user_post_request' + responses: + "200": + description: OK + summary: "Invites an existing user to the organization, using the specified\ + \ user id" + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/members/invite-user: + post: + description: "If the user with the given e-mail address exists, it sends an\ + \ invitation link, otherwise it sends a registration link." + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/_admin_realms__realm__organizations__id__members_invite_user_post_request' + responses: + "200": + description: OK + summary: "Invites an existing user or sends a registration link to a new user,\ + \ based on the provided e-mail address." + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/members/{userId}: + delete: + description: "Breaks the association between the user and organization. The\ + \ user itself is deleted in case the membership is managed, otherwise the\ + \ user is not deleted. If no user is found, or if they are not a member of\ + \ the organization, an error response is returned" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: userId + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Removes the user with the specified id from the organization + tags: + - Organizations + get: + description: "Searches for auser with the given id. If one is found, and is\ + \ currently a member of the organization, returns it. Otherwise,an error response\ + \ with status NOT_FOUND is returned" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: userId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MemberRepresentation' + description: OK + summary: Returns the member of the organization with the specified id + tags: + - Organizations + /admin/realms/{realm}/organizations/{id}/members/{userId}/organizations: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: userId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/OrganizationRepresentation' + type: array + description: OK + summary: Returns the organizations associated with the user that has the specified + id + tags: + - Organizations + /admin/realms/{realm}/partial-export: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: exportClients + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: exportGroupsAndRoles + required: false + schema: + type: boolean + style: form + responses: + "200": + description: OK + summary: Partial export of existing realm into a JSON file. + tags: + - Realms Admin + /admin/realms/{realm}/partialImport: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + format: binary + type: string + responses: + "200": + description: OK + summary: Partial import from a JSON file to an existing realm. + tags: + - Realms Admin + /admin/realms/{realm}/push-revocation: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GlobalRequestResult' + description: OK + summary: Push the realm's revocation policy to any client that has an admin + url associated with it. + tags: + - Realms Admin + /admin/realms/{realm}/roles: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: search + required: false + schema: + default: "" + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get all roles for the realm or client + tags: + - Roles + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + responses: + "200": + description: OK + summary: Create a new role for the realm or client + tags: + - Roles + /admin/realms/{realm}/roles-by-id/{role-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of role + explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete the role + tags: + - Roles (by ID) + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of role + explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + description: OK + summary: Get a specific role's representation + tags: + - Roles (by ID) + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: id of role + explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + responses: + "204": + description: No Content + summary: Update the role + tags: + - Roles (by ID) + /admin/realms/{realm}/roles-by-id/{role-id}/composites: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: Role id + explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove a set of roles from the role's composite + tags: + - Roles (by ID) + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get role's children Returns a set of role's children provided the role + is a composite. + tags: + - Roles (by ID) + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Make the role a composite role by associating some child roles + tags: + - Roles (by ID) + /admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientUuid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get client-level roles for the client that are in the role's composite + tags: + - Roles (by ID) + /admin/realms/{realm}/roles-by-id/{role-id}/composites/realm: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles that are in the role's composite + tags: + - Roles (by ID) + /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether role Authorization permissions have been + initialized or not and a reference + tags: + - Roles (by ID) + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether role Authorization permissions have been + initialized or not and a reference + tags: + - Roles (by ID) + /admin/realms/{realm}/roles/{role-name}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete a role by name + tags: + - Roles + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + description: OK + summary: Get a role by name + tags: + - Roles + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRepresentation' + responses: + "200": + description: OK + summary: Update a role by name + tags: + - Roles + /admin/realms/{realm}/roles/{role-name}/composites: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Remove roles from the role's composite + tags: + - Roles + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get composites of the role + tags: + - Roles + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add a composite to the role + tags: + - Roles + /admin/realms/{realm}/roles/{role-name}/composites/clients/{client-uuid}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: client-uuid + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get client-level roles for the client that are in the role's composite + tags: + - Roles + /admin/realms/{realm}/roles/{role-name}/composites/realm: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: role's name (not id!) + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles of the role's composite + tags: + - Roles + /admin/realms/{realm}/roles/{role-name}/groups: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: the role name. + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + - description: "if false, return a full representation of the {@code GroupRepresentation}\ + \ objects." + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + - description: "first result to return. Ignored if negative or {@code null}." + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: "maximum number of results to return. Ignored if negative or\ + \ {@code null}." + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + description: OK + summary: Returns a stream of groups that have the specified role name + tags: + - Roles + /admin/realms/{realm}/roles/{role-name}/management/permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether role Authorization permissions have been + initialized or not and a reference + tags: + - Roles + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + summary: Return object stating whether role Authorization permissions have been + initialized or not and a reference + tags: + - Roles + /admin/realms/{realm}/roles/{role-name}/users: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: the role name. + explode: false + in: path + name: role-name + required: true + schema: + type: string + style: simple + - description: "Boolean which defines whether brief representations are returned\ + \ (default: false)" + explode: true + in: query + name: briefRepresentation + required: false + schema: + type: boolean + style: form + - description: "first result to return. Ignored if negative or {@code null}." + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: "maximum number of results to return. Ignored if negative or\ + \ {@code null}." + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserRepresentation' + type: array + description: OK + summary: Returns a stream of users that have the specified role name. + tags: + - Roles + /admin/realms/{realm}/sessions/{session}: + delete: + description: Any client that has an admin url will also be told to invalidate + this particular session. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: session + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: isOffline + required: false + schema: + default: false + type: boolean + style: form + responses: + "204": + description: No Content + summary: Remove a specific user session. + tags: + - Realms Admin + /admin/realms/{realm}/testSMTPConnection: + post: + deprecated: true + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + additionalProperties: + type: string + type: object + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/_admin_realms__realm__testSMTPConnection_post_request' + responses: + "200": + description: OK + summary: Test SMTP connection with current logged in user + tags: + - Realms Admin + /admin/realms/{realm}/users: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: "Boolean which defines whether brief representations are returned\ + \ (default: false)" + explode: true + in: query + name: briefRepresentation + required: false + schema: + type: boolean + style: form + - description: "A String contained in email, or the complete email, if param\ + \ \"exact\" is true" + explode: true + in: query + name: email + required: false + schema: + type: string + style: form + - description: whether the email has been verified + explode: true + in: query + name: emailVerified + required: false + schema: + type: boolean + style: form + - description: Boolean representing if user is enabled or not + explode: true + in: query + name: enabled + required: false + schema: + type: boolean + style: form + - description: "Boolean which defines whether the params \"last\", \"first\"\ + , \"email\" and \"username\" must match exactly" + explode: true + in: query + name: exact + required: false + schema: + type: boolean + style: form + - description: Pagination offset + explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - description: "A String contained in firstName, or the complete firstName,\ + \ if param \"exact\" is true" + explode: true + in: query + name: firstName + required: false + schema: + type: string + style: form + - description: The alias of an Identity Provider linked to the user + explode: true + in: query + name: idpAlias + required: false + schema: + type: string + style: form + - description: The userId at an Identity Provider linked to the user + explode: true + in: query + name: idpUserId + required: false + schema: + type: string + style: form + - description: "A String contained in lastName, or the complete lastName, if\ + \ param \"exact\" is true" + explode: true + in: query + name: lastName + required: false + schema: + type: string + style: form + - description: Maximum results size (defaults to 100) + explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - description: "A query to search for custom attributes, in the format 'key1:value2\ + \ key2:value2'" + explode: true + in: query + name: q + required: false + schema: + type: string + style: form + - description: "A String contained in username, first or last name, or email.\ + \ Default search behavior is prefix-based (e.g., foo or foo*). Use *foo*\ + \ for infix search and \"foo\" for exact search." + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: "A String contained in username, or the complete username, if\ + \ param \"exact\" is true" + explode: true + in: query + name: username + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserRepresentation' + type: array + description: OK + summary: "Get users Returns a stream of users, filtered according to query parameters." + tags: + - Users + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserRepresentation' + responses: + "200": + description: OK + summary: Create a new user Username must be unique. + tags: + - Users + /admin/realms/{realm}/users-management-permissions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + tags: + - Realms Admin + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ManagementPermissionReference' + description: OK + tags: + - Realms Admin + /admin/realms/{realm}/users/count: + get: + description: "It can be called in three different ways. 1. Don’t specify any\ + \ criteria and pass {@code null}. The number of all users within that realm\ + \ will be returned.

2. If {@code search} is specified other criteria such\ + \ as {@code last} will be ignored even though you set them. The {@code search}\ + \ string will be matched against the first and last name, the username and\ + \ the email of a user.

3. If {@code search} is unspecified but any of\ + \ {@code last}, {@code first}, {@code email} or {@code username} those criteria\ + \ are matched against their respective fields on a user entity. Combined with\ + \ a logical and." + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - description: email filter + explode: true + in: query + name: email + required: false + schema: + type: string + style: form + - explode: true + in: query + name: emailVerified + required: false + schema: + type: boolean + style: form + - description: Boolean representing if user is enabled or not + explode: true + in: query + name: enabled + required: false + schema: + type: boolean + style: form + - description: first name filter + explode: true + in: query + name: firstName + required: false + schema: + type: string + style: form + - description: last name filter + explode: true + in: query + name: lastName + required: false + schema: + type: string + style: form + - explode: true + in: query + name: q + required: false + schema: + type: string + style: form + - description: "arbitrary search string for all the fields below. Default search\ + \ behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search\ + \ and \"foo\" for exact search." + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: username filter + explode: true + in: query + name: username + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + format: int32 + type: integer + description: OK + summary: Returns the number of users that match the given criteria. + tags: + - Users + /admin/realms/{realm}/users/profile: + get: + description: Get the configuration for the user profile + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UPConfig' + description: OK + tags: + - Users + put: + description: Set the configuration for the user profile + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UPConfig' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UPConfig' + description: OK + tags: + - Users + /admin/realms/{realm}/users/profile/metadata: + get: + description: Get the UserProfileMetadata from the configuration + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserProfileMetadata' + description: OK + tags: + - Users + /admin/realms/{realm}/users/{user-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Delete the user + tags: + - Users + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: Indicates if the user profile metadata should be added to the + response + explode: true + in: query + name: userProfileMetadata + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserRepresentation' + description: OK + summary: Get representation of the user + tags: + - Users + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserRepresentation' + responses: + "200": + description: OK + summary: Update the user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/configured-user-storage-credential-types: + get: + description: "Returned values can contain for example \"password\", \"otp\"\ + \ etc. This will always return empty list for \"local\" users, which are not\ + \ backed by any user storage" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + type: string + type: array + description: OK + summary: "Return credential types, which are provided by the user storage where\ + \ user is stored." + tags: + - Users + /admin/realms/{realm}/users/{user-id}/consents: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + additionalProperties: {} + type: object + type: array + description: OK + summary: Get consents granted by the user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/consents/{client}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: Client id + explode: false + in: path + name: client + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Revoke consent and offline tokens for particular client from user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/credentials: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/CredentialRepresentation' + type: array + description: OK + tags: + - Users + /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: credentialId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Remove a credential for a user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: The credential to move + explode: false + in: path + name: credentialId + required: true + schema: + type: string + style: simple + - description: "The credential that will be the previous element in the list.\ + \ If set to null, the moved credential will be the first element in the\ + \ list." + explode: false + in: path + name: newPreviousCredentialId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Move a credential to a position behind another credential + tags: + - Users + /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveToFirst: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: The credential to move + explode: false + in: path + name: credentialId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Move a credential to a first position in the credentials list of the + user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/userLabel: + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: credentialId + required: true + schema: + type: string + style: simple + requestBody: + content: + text/plain: + schema: + type: string + responses: + "204": + description: No Content + summary: Update a credential label for a user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/disable-credential-types: + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + type: string + type: array + responses: + "204": + description: No Content + summary: Disable all credentials for a user of a specific type + tags: + - Users + /admin/realms/{realm}/users/{user-id}/execute-actions-email: + put: + description: "An email contains a link the user can click to perform a set of\ + \ required actions. The redirectUri and clientId parameters are optional.\ + \ If no redirect is given, then there will be no link back to click after\ + \ actions have completed. Redirect uri must be a valid uri for the particular\ + \ clientId." + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: Client id + explode: true + in: query + name: client_id + required: false + schema: + type: string + style: form + - description: Number of seconds after which the generated token expires + explode: true + in: query + name: lifespan + required: false + schema: + format: int32 + type: integer + style: form + - description: Redirect uri + explode: true + in: query + name: redirect_uri + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + items: + type: string + type: array + responses: + "200": + description: OK + summary: Send an email to the user with a link they can click to execute particular + actions. + tags: + - Users + /admin/realms/{realm}/users/{user-id}/federated-identity: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/FederatedIdentityRepresentation' + type: array + description: OK + summary: Get social logins associated with the user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/federated-identity/{provider}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: Social login provider id + explode: false + in: path + name: provider + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Remove a social login provider from user + tags: + - Users + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: Social login provider id + explode: false + in: path + name: provider + required: true + schema: + type: string + style: simple + responses: + "200": + description: OK + summary: Add a social login provider to the user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/groups: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + - explode: true + in: query + name: first + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + description: OK + tags: + - Users + /admin/realms/{realm}/users/{user-id}/groups/count: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + additionalProperties: + format: int64 + type: integer + type: object + description: OK + tags: + - Users + /admin/realms/{realm}/users/{user-id}/groups/{groupId}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: groupId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Users + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: groupId + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + tags: + - Users + /admin/realms/{realm}/users/{user-id}/impersonation: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: {} + type: object + description: OK + summary: Impersonate the user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/logout: + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Remove all user sessions associated with the user Also send notification + to all clients that have an admin URL to invalidate the sessions for the particular + user. + tags: + - Users + /admin/realms/{realm}/users/{user-id}/offline-sessions/{clientUuid}: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: clientUuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserSessionRepresentation' + type: array + description: OK + summary: Get offline sessions associated with the user and client + tags: + - Users + /admin/realms/{realm}/users/{user-id}/reset-password: + put: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CredentialRepresentation' + responses: + "204": + description: No Content + summary: Set up a new password for the user. + tags: + - Users + /admin/realms/{realm}/users/{user-id}/reset-password-email: + put: + deprecated: true + description: The redirectUri and clientId parameters are optional. The default + for the redirect is the account client. This endpoint has been deprecated. Please + use the execute-actions-email passing a list with UPDATE_PASSWORD within it. + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: client id + explode: true + in: query + name: client_id + required: false + schema: + type: string + style: form + - description: redirect uri + explode: true + in: query + name: redirect_uri + required: false + schema: + type: string + style: form + responses: + "200": + description: OK + summary: Send an email to the user with a link they can click to reset their + password. + tags: + - Users + /admin/realms/{realm}/users/{user-id}/role-mappings: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MappingsRepresentation' + description: OK + summary: Get role mappings + tags: + - Role Mapper + /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Delete client-level roles from user or group role mapping + tags: + - Client Role Mappings + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: "Get client-level role mappings for the user or group, and the app" + tags: + - Client Role Mappings + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add client-level roles to the user or group role mapping + tags: + - Client Role Mappings + /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get available client-level roles that can be mapped to the user or + group + tags: + - Client Role Mappings + /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/composite: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: client id (not clientId!) + explode: false + in: path + name: client-id + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective client-level role mappings This recurses any composite + roles + tags: + - Client Role Mappings + /admin/realms/{realm}/users/{user-id}/role-mappings/realm: + delete: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Delete realm-level role mappings + tags: + - Role Mapper + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level role mappings + tags: + - Role Mapper + post: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + responses: + "204": + description: No Content + summary: Add realm-level role mappings to the user + tags: + - Role Mapper + /admin/realms/{realm}/users/{user-id}/role-mappings/realm/available: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get realm-level roles that can be mapped + tags: + - Role Mapper + /admin/realms/{realm}/users/{user-id}/role-mappings/realm/composite: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: "if false, return roles with their attributes" + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + description: OK + summary: Get effective realm-level role mappings This will recurse all composite + roles to get the result. + tags: + - Role Mapper + /admin/realms/{realm}/users/{user-id}/send-verify-email: + put: + description: "The redirectUri, clientId and lifespan parameters are optional.\ + \ The default for the redirect is the account client. The default for the\ + \ lifespan is 12 hours" + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + - description: Client id + explode: true + in: query + name: client_id + required: false + schema: + type: string + style: form + - description: Number of seconds after which the generated token expires + explode: true + in: query + name: lifespan + required: false + schema: + format: int32 + type: integer + style: form + - description: Redirect uri + explode: true + in: query + name: redirect_uri + required: false + schema: + type: string + style: form + responses: + "200": + description: OK + summary: Send an email-verification email to the user An email contains a link + the user can click to verify their email address. + tags: + - Users + /admin/realms/{realm}/users/{user-id}/sessions: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserSessionRepresentation' + type: array + description: OK + summary: Get sessions associated with the user + tags: + - Users + /admin/realms/{realm}/users/{user-id}/unmanagedAttributes: + get: + parameters: + - description: realm name (not id!) + explode: false + in: path + name: realm + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: user-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: + items: + type: string + type: array + type: object + description: OK + tags: + - Users +components: + schemas: + AbstractPolicyRepresentation: + example: + owner: owner + scopesData: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + name: name + policies: + - policies + - policies + resourcesData: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + description: description + resources: + - resources + - resources + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + type: type + decisionStrategy: AFFIRMATIVE + properties: + id: + type: string + name: + type: string + description: + type: string + type: + type: string + policies: + items: + type: string + type: array + uniqueItems: true + resources: + items: + type: string + type: array + uniqueItems: true + scopes: + items: + type: string + type: array + uniqueItems: true + logic: + $ref: '#/components/schemas/Logic' + decisionStrategy: + $ref: '#/components/schemas/DecisionStrategy' + owner: + type: string + resourcesData: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + uniqueItems: true + scopesData: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + uniqueItems: true + type: object + Access: + example: + roles: + - roles + - roles + verify_caller: true + properties: + roles: + items: + type: string + type: array + uniqueItems: true + verify_caller: + type: boolean + type: object + AccessToken: + example: + at_hash: at_hash + sub: sub + zoneinfo: zoneinfo + resource_access: + key: + roles: + - roles + - roles + verify_caller: true + birthdate: birthdate + gender: gender + allowed-origins: + - allowed-origins + - allowed-origins + iss: iss + typ: typ + trusted-certs: + - trusted-certs + - trusted-certs + preferred_username: preferred_username + locale: locale + sid: sid + authorization: + permissions: + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + acr: acr + updated_at: 5 + realm_access: + roles: + - roles + - roles + verify_caller: true + azp: azp + auth_time: 5 + scope: scope + nickname: nickname + cnf: + x5t#S256: x5t#S256 + jkt: jkt + exp: 0 + iat: 1 + jti: jti + email: email + website: website + email_verified: true + address: + street_address: street_address + country: country + formatted: formatted + locality: locality + region: region + postal_code: postal_code + profile: profile + otherClaims: + key: "" + phone_number_verified: true + given_name: given_name + middle_name: middle_name + nonce: nonce + picture: picture + c_hash: c_hash + s_hash: s_hash + nbf: 6 + claims_locales: claims_locales + name: name + phone_number: phone_number + family_name: family_name + properties: + jti: + type: string + exp: + format: int64 + type: integer + nbf: + format: int64 + type: integer + iat: + format: int64 + type: integer + iss: + type: string + sub: + type: string + typ: + type: string + azp: + type: string + otherClaims: + additionalProperties: {} + type: object + nonce: + type: string + auth_time: + format: int64 + type: integer + sid: + type: string + at_hash: + type: string + c_hash: + type: string + name: + type: string + given_name: + type: string + family_name: + type: string + middle_name: + type: string + nickname: + type: string + preferred_username: + type: string + profile: + type: string + picture: + type: string + website: + type: string + email: + type: string + email_verified: + type: boolean + gender: + type: string + birthdate: + type: string + zoneinfo: + type: string + locale: + type: string + phone_number: + type: string + phone_number_verified: + type: boolean + address: + $ref: '#/components/schemas/AddressClaimSet' + updated_at: + format: int64 + type: integer + claims_locales: + type: string + acr: + type: string + s_hash: + type: string + trusted-certs: + items: + type: string + type: array + uniqueItems: true + allowed-origins: + items: + type: string + type: array + uniqueItems: true + realm_access: + $ref: '#/components/schemas/Access' + resource_access: + additionalProperties: + $ref: '#/components/schemas/Access' + type: object + writeOnly: true + authorization: + $ref: '#/components/schemas/Authorization' + cnf: + $ref: '#/components/schemas/Confirmation' + scope: + type: string + type: object + AddressClaimSet: + example: + street_address: street_address + country: country + formatted: formatted + locality: locality + region: region + postal_code: postal_code + properties: + formatted: + type: string + street_address: + type: string + locality: + type: string + region: + type: string + postal_code: + type: string + country: + type: string + type: object + AdminEventRepresentation: + example: + realmId: realmId + resourcePath: resourcePath + operationType: operationType + details: + key: details + time: 0 + authDetails: + realmId: realmId + clientId: clientId + ipAddress: ipAddress + userId: userId + error: error + representation: representation + resourceType: resourceType + properties: + time: + format: int64 + type: integer + realmId: + type: string + authDetails: + $ref: '#/components/schemas/AuthDetailsRepresentation' + operationType: + type: string + resourceType: + type: string + resourcePath: + type: string + representation: + type: string + error: + type: string + details: + additionalProperties: + type: string + type: object + type: object + ApplicationRepresentation: + deprecated: true + example: + optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 0 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 0 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 9 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + name: name + claims: "{}" + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + properties: + id: + type: string + clientId: + type: string + description: + type: string + type: + type: string + rootUrl: + type: string + adminUrl: + type: string + baseUrl: + type: string + surrogateAuthRequired: + type: boolean + enabled: + type: boolean + alwaysDisplayInConsole: + type: boolean + clientAuthenticatorType: + type: string + secret: + type: string + registrationAccessToken: + type: string + defaultRoles: + deprecated: true + items: + type: string + type: array + redirectUris: + items: + type: string + type: array + webOrigins: + items: + type: string + type: array + notBefore: + format: int32 + type: integer + bearerOnly: + type: boolean + consentRequired: + type: boolean + standardFlowEnabled: + type: boolean + implicitFlowEnabled: + type: boolean + directAccessGrantsEnabled: + type: boolean + serviceAccountsEnabled: + type: boolean + authorizationServicesEnabled: + type: boolean + directGrantsOnly: + deprecated: true + type: boolean + publicClient: + type: boolean + frontchannelLogout: + type: boolean + protocol: + type: string + attributes: + additionalProperties: + type: string + type: object + authenticationFlowBindingOverrides: + additionalProperties: + type: string + type: object + fullScopeAllowed: + type: boolean + nodeReRegistrationTimeout: + format: int32 + type: integer + registeredNodes: + additionalProperties: + format: int32 + type: integer + type: object + protocolMappers: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + clientTemplate: + deprecated: true + type: string + useTemplateConfig: + deprecated: true + type: boolean + useTemplateScope: + deprecated: true + type: boolean + useTemplateMappers: + deprecated: true + type: boolean + defaultClientScopes: + items: + type: string + type: array + optionalClientScopes: + items: + type: string + type: array + authorizationSettings: + $ref: '#/components/schemas/ResourceServerRepresentation' + access: + additionalProperties: + type: boolean + type: object + origin: + type: string + name: + type: string + claims: + allOf: + - $ref: '#/components/schemas/ClaimRepresentation' + deprecated: true + type: object + type: object + AuthDetailsRepresentation: + example: + realmId: realmId + clientId: clientId + ipAddress: ipAddress + userId: userId + properties: + realmId: + type: string + clientId: + type: string + userId: + type: string + ipAddress: + type: string + type: object + AuthenticationExecutionExportRepresentation: + example: + authenticatorConfig: authenticatorConfig + authenticatorFlow: true + userSetupAllowed: true + requirement: requirement + priority: 1 + flowAlias: flowAlias + authenticator: authenticator + autheticatorFlow: true + properties: + authenticatorConfig: + type: string + authenticator: + type: string + authenticatorFlow: + type: boolean + requirement: + type: string + priority: + format: int32 + type: integer + autheticatorFlow: + deprecated: true + type: boolean + flowAlias: + type: string + userSetupAllowed: + type: boolean + type: object + AuthenticationExecutionInfoRepresentation: + example: + authenticationFlow: true + level: 0 + displayName: displayName + description: description + index: 6 + requirement: requirement + priority: 1 + requirementChoices: + - requirementChoices + - requirementChoices + providerId: providerId + alias: alias + id: id + authenticationConfig: authenticationConfig + flowId: flowId + configurable: true + properties: + id: + type: string + requirement: + type: string + displayName: + type: string + alias: + type: string + description: + type: string + requirementChoices: + items: + type: string + type: array + configurable: + type: boolean + authenticationFlow: + type: boolean + providerId: + type: string + authenticationConfig: + type: string + flowId: + type: string + level: + format: int32 + type: integer + index: + format: int32 + type: integer + priority: + format: int32 + type: integer + type: object + AuthenticationExecutionRepresentation: + example: + authenticatorConfig: authenticatorConfig + authenticatorFlow: true + requirement: requirement + id: id + priority: 0 + parentFlow: parentFlow + authenticator: authenticator + flowId: flowId + autheticatorFlow: true + properties: + authenticatorConfig: + type: string + authenticator: + type: string + authenticatorFlow: + type: boolean + requirement: + type: string + priority: + format: int32 + type: integer + autheticatorFlow: + deprecated: true + type: boolean + id: + type: string + flowId: + type: string + parentFlow: + type: string + type: object + AuthenticationFlowRepresentation: + example: + authenticationExecutions: + - authenticatorConfig: authenticatorConfig + authenticatorFlow: true + userSetupAllowed: true + requirement: requirement + priority: 1 + flowAlias: flowAlias + authenticator: authenticator + autheticatorFlow: true + - authenticatorConfig: authenticatorConfig + authenticatorFlow: true + userSetupAllowed: true + requirement: requirement + priority: 1 + flowAlias: flowAlias + authenticator: authenticator + autheticatorFlow: true + providerId: providerId + topLevel: true + builtIn: true + alias: alias + description: description + id: id + properties: + id: + type: string + alias: + type: string + description: + type: string + providerId: + type: string + topLevel: + type: boolean + builtIn: + type: boolean + authenticationExecutions: + items: + $ref: '#/components/schemas/AuthenticationExecutionExportRepresentation' + type: array + type: object + AuthenticatorConfigInfoRepresentation: + example: + helpText: helpText + providerId: providerId + name: name + properties: + - helpText: helpText + defaultValue: "" + name: name + options: + - options + - options + readOnly: true + label: label + secret: true + type: type + required: true + - helpText: helpText + defaultValue: "" + name: name + options: + - options + - options + readOnly: true + label: label + secret: true + type: type + required: true + properties: + name: + type: string + providerId: + type: string + helpText: + type: string + properties: + items: + $ref: '#/components/schemas/ConfigPropertyRepresentation' + type: array + type: object + AuthenticatorConfigRepresentation: + example: + alias: alias + id: id + config: + key: config + properties: + id: + type: string + alias: + type: string + config: + additionalProperties: + type: string + type: object + type: object + Authorization: + example: + permissions: + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + properties: + permissions: + items: + $ref: '#/components/schemas/Permission' + type: array + type: object + BruteForceStrategy: + enum: + - LINEAR + - MULTIPLE + type: string + CertificateRepresentation: + example: + privateKey: privateKey + kid: kid + certificate: certificate + publicKey: publicKey + properties: + privateKey: + type: string + publicKey: + type: string + certificate: + type: string + kid: + type: string + type: object + ClaimRepresentation: + properties: + name: + type: boolean + username: + type: boolean + profile: + type: boolean + picture: + type: boolean + website: + type: boolean + email: + type: boolean + gender: + type: boolean + locale: + type: boolean + address: + type: boolean + phone: + type: boolean + type: object + ClientInitialAccessCreatePresentation: + example: + count: 6 + expiration: 0 + properties: + expiration: + format: int32 + type: integer + count: + format: int32 + type: integer + type: object + ClientInitialAccessPresentation: + example: + count: 1 + expiration: 6 + id: id + remainingCount: 5 + token: token + timestamp: 0 + properties: + id: + type: string + token: + type: string + timestamp: + format: int32 + type: integer + expiration: + format: int32 + type: integer + count: + format: int32 + type: integer + remainingCount: + format: int32 + type: integer + type: object + ClientMappingsRepresentation: + example: + mappings: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + client: client + id: id + properties: + id: + type: string + client: + type: string + mappings: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + type: object + ClientPoliciesRepresentation: + example: + policies: + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + globalPolicies: + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + properties: + policies: + items: + $ref: '#/components/schemas/ClientPolicyRepresentation' + type: array + globalPolicies: + items: + $ref: '#/components/schemas/ClientPolicyRepresentation' + type: array + type: object + ClientPolicyConditionRepresentation: + example: + condition: condition + configuration: + - configuration + - configuration + properties: + condition: + type: string + configuration: + items: + description: TODO default missing array inner type to string + type: string + type: array + type: object + ClientPolicyExecutorRepresentation: + example: + configuration: + - configuration + - configuration + executor: executor + properties: + executor: + type: string + configuration: + items: + description: TODO default missing array inner type to string + type: string + type: array + type: object + ClientPolicyRepresentation: + example: + name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + properties: + name: + type: string + description: + type: string + enabled: + type: boolean + conditions: + items: + $ref: '#/components/schemas/ClientPolicyConditionRepresentation' + type: array + profiles: + items: + type: string + type: array + type: object + ClientProfileRepresentation: + example: + name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + properties: + name: + type: string + description: + type: string + executors: + items: + $ref: '#/components/schemas/ClientPolicyExecutorRepresentation' + type: array + type: object + ClientProfilesRepresentation: + example: + profiles: + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + globalProfiles: + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + properties: + profiles: + items: + $ref: '#/components/schemas/ClientProfileRepresentation' + type: array + globalProfiles: + items: + $ref: '#/components/schemas/ClientProfileRepresentation' + type: array + type: object + ClientRepresentation: + example: + optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 5 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 3 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 7 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + name: name + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + properties: + id: + type: string + clientId: + type: string + name: + type: string + description: + type: string + type: + type: string + rootUrl: + type: string + adminUrl: + type: string + baseUrl: + type: string + surrogateAuthRequired: + type: boolean + enabled: + type: boolean + alwaysDisplayInConsole: + type: boolean + clientAuthenticatorType: + type: string + secret: + type: string + registrationAccessToken: + type: string + defaultRoles: + deprecated: true + items: + type: string + type: array + redirectUris: + items: + type: string + type: array + webOrigins: + items: + type: string + type: array + notBefore: + format: int32 + type: integer + bearerOnly: + type: boolean + consentRequired: + type: boolean + standardFlowEnabled: + type: boolean + implicitFlowEnabled: + type: boolean + directAccessGrantsEnabled: + type: boolean + serviceAccountsEnabled: + type: boolean + authorizationServicesEnabled: + type: boolean + directGrantsOnly: + deprecated: true + type: boolean + publicClient: + type: boolean + frontchannelLogout: + type: boolean + protocol: + type: string + attributes: + additionalProperties: + type: string + type: object + authenticationFlowBindingOverrides: + additionalProperties: + type: string + type: object + fullScopeAllowed: + type: boolean + nodeReRegistrationTimeout: + format: int32 + type: integer + registeredNodes: + additionalProperties: + format: int32 + type: integer + type: object + protocolMappers: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + clientTemplate: + deprecated: true + type: string + useTemplateConfig: + deprecated: true + type: boolean + useTemplateScope: + deprecated: true + type: boolean + useTemplateMappers: + deprecated: true + type: boolean + defaultClientScopes: + items: + type: string + type: array + optionalClientScopes: + items: + type: string + type: array + authorizationSettings: + $ref: '#/components/schemas/ResourceServerRepresentation' + access: + additionalProperties: + type: boolean + type: object + origin: + type: string + type: object + ClientScopeRepresentation: + example: + protocol: protocol + name: name + description: description + attributes: + key: attributes + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + id: id + properties: + id: + type: string + name: + type: string + description: + type: string + protocol: + type: string + attributes: + additionalProperties: + type: string + type: object + protocolMappers: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + type: object + ClientTemplateRepresentation: + deprecated: true + example: + publicClient: true + description: description + serviceAccountsEnabled: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + consentRequired: true + fullScopeAllowed: true + implicitFlowEnabled: true + directAccessGrantsEnabled: true + frontchannelLogout: true + protocol: protocol + bearerOnly: true + name: name + standardFlowEnabled: true + attributes: + key: attributes + id: id + properties: + id: + type: string + name: + type: string + description: + type: string + protocol: + type: string + fullScopeAllowed: + type: boolean + bearerOnly: + type: boolean + consentRequired: + type: boolean + standardFlowEnabled: + type: boolean + implicitFlowEnabled: + type: boolean + directAccessGrantsEnabled: + type: boolean + serviceAccountsEnabled: + type: boolean + publicClient: + type: boolean + frontchannelLogout: + type: boolean + attributes: + additionalProperties: + type: string + type: object + protocolMappers: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + type: object + ClientTypeRepresentation: + example: + parent: parent + provider: provider + name: name + config: + key: + applicable: true + value: "" + properties: + name: + type: string + provider: + type: string + parent: + type: string + config: + additionalProperties: + $ref: '#/components/schemas/PropertyConfig' + type: object + type: object + ClientTypesRepresentation: + example: + client-types: + - parent: parent + provider: provider + name: name + config: + key: + applicable: true + value: "" + - parent: parent + provider: provider + name: name + config: + key: + applicable: true + value: "" + global-client-types: + - parent: parent + provider: provider + name: name + config: + key: + applicable: true + value: "" + - parent: parent + provider: provider + name: name + config: + key: + applicable: true + value: "" + properties: + client-types: + items: + $ref: '#/components/schemas/ClientTypeRepresentation' + type: array + global-client-types: + items: + $ref: '#/components/schemas/ClientTypeRepresentation' + type: array + type: object + ComponentExportRepresentation: + example: + providerId: providerId + name: name + subComponents: + key: + - null + - null + subType: subType + id: id + config: + key: + - config + - config + properties: + id: + type: string + name: + type: string + providerId: + type: string + subType: + type: string + subComponents: + additionalProperties: + items: + $ref: '#/components/schemas/ComponentExportRepresentation' + type: array + type: object + config: + additionalProperties: + items: + type: string + type: array + type: object + type: object + ComponentRepresentation: + example: + providerId: providerId + name: name + subType: subType + id: id + config: + key: + - config + - config + providerType: providerType + parentId: parentId + properties: + id: + type: string + name: + type: string + providerId: + type: string + providerType: + type: string + parentId: + type: string + subType: + type: string + config: + additionalProperties: + items: + type: string + type: array + type: object + type: object + ComponentTypeRepresentation: + example: + metadata: + key: "" + helpText: helpText + id: id + properties: + - helpText: helpText + defaultValue: "" + name: name + options: + - options + - options + readOnly: true + label: label + secret: true + type: type + required: true + - helpText: helpText + defaultValue: "" + name: name + options: + - options + - options + readOnly: true + label: label + secret: true + type: type + required: true + properties: + id: + type: string + helpText: + type: string + properties: + items: + $ref: '#/components/schemas/ConfigPropertyRepresentation' + type: array + metadata: + additionalProperties: {} + type: object + type: object + Composites: + example: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + properties: + realm: + items: + type: string + type: array + uniqueItems: true + client: + additionalProperties: + items: + type: string + type: array + type: object + application: + additionalProperties: + items: + type: string + type: array + deprecated: true + type: object + type: object + ConfigPropertyRepresentation: + example: + helpText: helpText + defaultValue: "" + name: name + options: + - options + - options + readOnly: true + label: label + secret: true + type: type + required: true + properties: + name: + type: string + label: + type: string + helpText: + type: string + type: + type: string + defaultValue: {} + options: + items: + type: string + type: array + secret: + type: boolean + required: + type: boolean + readOnly: + type: boolean + type: object + Confirmation: + example: + x5t#S256: x5t#S256 + jkt: jkt + properties: + x5t#S256: + type: string + jkt: + type: string + type: object + CredentialRepresentation: + example: + userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + properties: + id: + type: string + type: + type: string + userLabel: + type: string + createdDate: + format: int64 + type: integer + secretData: + type: string + credentialData: + type: string + priority: + format: int32 + type: integer + value: + type: string + temporary: + type: boolean + device: + deprecated: true + type: string + hashedSaltedValue: + deprecated: true + type: string + salt: + deprecated: true + type: string + hashIterations: + deprecated: true + format: int32 + type: integer + counter: + deprecated: true + format: int32 + type: integer + algorithm: + deprecated: true + type: string + digits: + deprecated: true + format: int32 + type: integer + period: + deprecated: true + format: int32 + type: integer + config: + allOf: + - $ref: '#/components/schemas/MultivaluedHashMapStringString' + deprecated: true + type: object + type: object + DecisionEffect: + enum: + - PERMIT + - DENY + type: string + DecisionStrategy: + enum: + - AFFIRMATIVE + - UNANIMOUS + - CONSENSUS + type: string + EnforcementMode: + enum: + - PERMISSIVE + - ENFORCING + - DISABLED + type: string + EvaluationResultRepresentation: + example: + resource: + owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + policies: + - scopes: + - scopes + - scopes + associatedPolicies: + - null + - null + policy: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + status: PERMIT + - scopes: + - scopes + - scopes + associatedPolicies: + - null + - null + policy: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + status: PERMIT + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowedScopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + status: null + properties: + resource: + $ref: '#/components/schemas/ResourceRepresentation' + scopes: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + policies: + items: + $ref: '#/components/schemas/PolicyResultRepresentation' + type: array + status: + $ref: '#/components/schemas/DecisionEffect' + allowedScopes: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + type: object + EventRepresentation: + example: + realmId: realmId + clientId: clientId + ipAddress: ipAddress + details: + key: details + time: 0 + sessionId: sessionId + type: type + error: error + userId: userId + properties: + time: + format: int64 + type: integer + type: + type: string + realmId: + type: string + clientId: + type: string + userId: + type: string + sessionId: + type: string + ipAddress: + type: string + error: + type: string + details: + additionalProperties: + type: string + type: object + type: object + FederatedIdentityRepresentation: + example: + userName: userName + userId: userId + identityProvider: identityProvider + properties: + identityProvider: + type: string + userId: + type: string + userName: + type: string + type: object + GlobalRequestResult: + example: + successRequests: + - successRequests + - successRequests + failedRequests: + - failedRequests + - failedRequests + properties: + successRequests: + items: + type: string + type: array + failedRequests: + items: + type: string + type: array + type: object + GroupRepresentation: + example: + path: path + realmRoles: + - realmRoles + - realmRoles + access: + key: true + name: name + subGroups: + - null + - null + attributes: + key: + - attributes + - attributes + id: id + parentId: parentId + clientRoles: + key: + - clientRoles + - clientRoles + subGroupCount: 1 + properties: + id: + type: string + name: + type: string + path: + type: string + parentId: + type: string + subGroupCount: + format: int64 + type: integer + subGroups: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + attributes: + additionalProperties: + items: + type: string + type: array + type: object + realmRoles: + items: + type: string + type: array + clientRoles: + additionalProperties: + items: + type: string + type: array + type: object + access: + additionalProperties: + type: boolean + type: object + type: object + IDToken: + example: + at_hash: at_hash + sub: sub + zoneinfo: zoneinfo + birthdate: birthdate + gender: gender + iss: iss + typ: typ + preferred_username: preferred_username + locale: locale + sid: sid + acr: acr + updated_at: 5 + azp: azp + auth_time: 5 + nickname: nickname + exp: 0 + iat: 1 + jti: jti + email: email + website: website + email_verified: true + address: + street_address: street_address + country: country + formatted: formatted + locality: locality + region: region + postal_code: postal_code + profile: profile + otherClaims: + key: "" + phone_number_verified: true + given_name: given_name + middle_name: middle_name + nonce: nonce + picture: picture + c_hash: c_hash + s_hash: s_hash + nbf: 6 + claims_locales: claims_locales + name: name + phone_number: phone_number + family_name: family_name + properties: + jti: + type: string + exp: + format: int64 + type: integer + nbf: + format: int64 + type: integer + iat: + format: int64 + type: integer + iss: + type: string + sub: + type: string + typ: + type: string + azp: + type: string + otherClaims: + additionalProperties: {} + type: object + nonce: + type: string + auth_time: + format: int64 + type: integer + sid: + type: string + at_hash: + type: string + c_hash: + type: string + name: + type: string + given_name: + type: string + family_name: + type: string + middle_name: + type: string + nickname: + type: string + preferred_username: + type: string + profile: + type: string + picture: + type: string + website: + type: string + email: + type: string + email_verified: + type: boolean + gender: + type: string + birthdate: + type: string + zoneinfo: + type: string + locale: + type: string + phone_number: + type: string + phone_number_verified: + type: boolean + address: + $ref: '#/components/schemas/AddressClaimSet' + updated_at: + format: int64 + type: integer + claims_locales: + type: string + acr: + type: string + s_hash: + type: string + type: object + IdentityProviderMapperRepresentation: + example: + identityProviderAlias: identityProviderAlias + name: name + id: id + config: + key: config + identityProviderMapper: identityProviderMapper + properties: + id: + type: string + name: + type: string + identityProviderAlias: + type: string + identityProviderMapper: + type: string + config: + additionalProperties: + type: string + type: object + type: object + IdentityProviderMapperTypeRepresentation: + properties: + id: + type: string + name: + type: string + category: + type: string + helpText: + type: string + properties: + items: + $ref: '#/components/schemas/ConfigPropertyRepresentation' + type: array + type: object + IdentityProviderRepresentation: + example: + addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + properties: + alias: + type: string + displayName: + type: string + internalId: + type: string + providerId: + type: string + enabled: + type: boolean + updateProfileFirstLoginMode: + deprecated: true + type: string + trustEmail: + type: boolean + storeToken: + type: boolean + addReadTokenRoleOnCreate: + type: boolean + authenticateByDefault: + type: boolean + linkOnly: + type: boolean + hideOnLogin: + type: boolean + firstBrokerLoginFlowAlias: + type: string + postBrokerLoginFlowAlias: + type: string + organizationId: + type: string + config: + additionalProperties: + type: string + type: object + updateProfileFirstLogin: + deprecated: true + type: boolean + type: object + InstallationAdapterConfig: + properties: + realm: + type: string + realm-public-key: + type: string + auth-server-url: + type: string + ssl-required: + type: string + bearer-only: + type: boolean + resource: + type: string + public-client: + type: boolean + verify-token-audience: + type: boolean + credentials: + additionalProperties: {} + type: object + use-resource-role-mappings: + type: boolean + confidential-port: + format: int32 + type: integer + policy-enforcer: + $ref: '#/components/schemas/PolicyEnforcerConfig' + type: object + KeyMetadataRepresentation: + example: + providerId: providerId + use: SIG + kid: kid + certificate: certificate + providerPriority: 0 + publicKey: publicKey + type: type + status: status + algorithm: algorithm + validTo: 6 + properties: + providerId: + type: string + providerPriority: + format: int64 + type: integer + kid: + type: string + status: + type: string + type: + type: string + algorithm: + type: string + publicKey: + type: string + certificate: + type: string + use: + $ref: '#/components/schemas/KeyUse' + validTo: + format: int64 + type: integer + type: object + KeyStoreConfig: + example: + storePassword: storePassword + keyAlias: keyAlias + keyPassword: keyPassword + format: format + realmCertificate: true + realmAlias: realmAlias + properties: + realmCertificate: + type: boolean + storePassword: + type: string + keyPassword: + type: string + keyAlias: + type: string + realmAlias: + type: string + format: + type: string + type: object + KeyUse: + enum: + - SIG + - ENC + type: string + KeysMetadataRepresentation: + example: + keys: + - providerId: providerId + use: SIG + kid: kid + certificate: certificate + providerPriority: 0 + publicKey: publicKey + type: type + status: status + algorithm: algorithm + validTo: 6 + - providerId: providerId + use: SIG + kid: kid + certificate: certificate + providerPriority: 0 + publicKey: publicKey + type: type + status: status + algorithm: algorithm + validTo: 6 + active: + key: active + properties: + active: + additionalProperties: + type: string + type: object + keys: + items: + $ref: '#/components/schemas/KeyMetadataRepresentation' + type: array + type: object + Logic: + enum: + - POSITIVE + - NEGATIVE + type: string + ManagementPermissionReference: + example: + scopePermissions: + key: scopePermissions + resource: resource + enabled: true + properties: + enabled: + type: boolean + resource: + type: string + scopePermissions: + additionalProperties: + type: string + type: object + type: object + MappingsRepresentation: + example: + realmMappings: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + clientMappings: + key: + mappings: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + client: client + id: id + properties: + realmMappings: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + clientMappings: + additionalProperties: + $ref: '#/components/schemas/ClientMappingsRepresentation' + type: object + type: object + MemberRepresentation: + example: + lastName: lastName + totp: true + membershipType: UNMANAGED + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 9 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 7 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + properties: + id: + type: string + username: + type: string + firstName: + type: string + lastName: + type: string + email: + type: string + emailVerified: + type: boolean + attributes: + additionalProperties: + items: + type: string + type: array + type: object + userProfileMetadata: + $ref: '#/components/schemas/UserProfileMetadata' + self: + type: string + origin: + type: string + createdTimestamp: + format: int64 + type: integer + enabled: + type: boolean + totp: + type: boolean + federationLink: + type: string + serviceAccountClientId: + type: string + credentials: + items: + $ref: '#/components/schemas/CredentialRepresentation' + type: array + disableableCredentialTypes: + items: + type: string + type: array + uniqueItems: true + requiredActions: + items: + type: string + type: array + federatedIdentities: + items: + $ref: '#/components/schemas/FederatedIdentityRepresentation' + type: array + realmRoles: + items: + type: string + type: array + clientRoles: + additionalProperties: + items: + type: string + type: array + type: object + clientConsents: + items: + $ref: '#/components/schemas/UserConsentRepresentation' + type: array + notBefore: + format: int32 + type: integer + applicationRoles: + additionalProperties: + items: + type: string + type: array + deprecated: true + type: object + socialLinks: + deprecated: true + items: + $ref: '#/components/schemas/SocialLinkRepresentation' + type: array + groups: + items: + type: string + type: array + access: + additionalProperties: + type: boolean + type: object + membershipType: + $ref: '#/components/schemas/MembershipType' + type: object + MembershipType: + enum: + - UNMANAGED + - MANAGED + type: string + MethodConfig: + properties: + method: + type: string + scopes: + items: + type: string + type: array + scopes-enforcement-mode: + $ref: '#/components/schemas/ScopeEnforcementMode' + type: object + MultivaluedHashMapStringComponentExportRepresentation: + additionalProperties: + items: + $ref: '#/components/schemas/ComponentExportRepresentation' + type: array + type: object + MultivaluedHashMapStringString: + additionalProperties: + items: + type: string + type: array + type: object + OAuthClientRepresentation: + deprecated: true + example: + optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 4 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 7 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 5 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + name: name + claims: "{}" + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + properties: + id: + type: string + clientId: + type: string + description: + type: string + type: + type: string + rootUrl: + type: string + adminUrl: + type: string + baseUrl: + type: string + surrogateAuthRequired: + type: boolean + enabled: + type: boolean + alwaysDisplayInConsole: + type: boolean + clientAuthenticatorType: + type: string + secret: + type: string + registrationAccessToken: + type: string + defaultRoles: + deprecated: true + items: + type: string + type: array + redirectUris: + items: + type: string + type: array + webOrigins: + items: + type: string + type: array + notBefore: + format: int32 + type: integer + bearerOnly: + type: boolean + consentRequired: + type: boolean + standardFlowEnabled: + type: boolean + implicitFlowEnabled: + type: boolean + directAccessGrantsEnabled: + type: boolean + serviceAccountsEnabled: + type: boolean + authorizationServicesEnabled: + type: boolean + directGrantsOnly: + deprecated: true + type: boolean + publicClient: + type: boolean + frontchannelLogout: + type: boolean + protocol: + type: string + attributes: + additionalProperties: + type: string + type: object + authenticationFlowBindingOverrides: + additionalProperties: + type: string + type: object + fullScopeAllowed: + type: boolean + nodeReRegistrationTimeout: + format: int32 + type: integer + registeredNodes: + additionalProperties: + format: int32 + type: integer + type: object + protocolMappers: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + clientTemplate: + deprecated: true + type: string + useTemplateConfig: + deprecated: true + type: boolean + useTemplateScope: + deprecated: true + type: boolean + useTemplateMappers: + deprecated: true + type: boolean + defaultClientScopes: + items: + type: string + type: array + optionalClientScopes: + items: + type: string + type: array + authorizationSettings: + $ref: '#/components/schemas/ResourceServerRepresentation' + access: + additionalProperties: + type: boolean + type: object + origin: + type: string + name: + type: string + claims: + allOf: + - $ref: '#/components/schemas/ClaimRepresentation' + deprecated: true + type: object + type: object + OrganizationDomainRepresentation: + example: + name: name + verified: true + properties: + name: + type: string + verified: + type: boolean + type: object + OrganizationRepresentation: + example: + identityProviders: + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + redirectUrl: redirectUrl + members: + - lastName: lastName + totp: true + membershipType: UNMANAGED + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 9 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 7 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + - lastName: lastName + totp: true + membershipType: UNMANAGED + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 9 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 7 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + name: name + alias: alias + description: description + domains: + - name: name + verified: true + - name: name + verified: true + attributes: + key: + - attributes + - attributes + id: id + enabled: true + properties: + id: + type: string + name: + type: string + alias: + type: string + enabled: + type: boolean + description: + type: string + redirectUrl: + type: string + attributes: + additionalProperties: + items: + type: string + type: array + type: object + domains: + items: + $ref: '#/components/schemas/OrganizationDomainRepresentation' + type: array + uniqueItems: true + members: + items: + $ref: '#/components/schemas/MemberRepresentation' + type: array + identityProviders: + items: + $ref: '#/components/schemas/IdentityProviderRepresentation' + type: array + type: object + PathCacheConfig: + properties: + max-entries: + format: int32 + type: integer + lifespan: + format: int64 + type: integer + type: object + PathConfig: + properties: + name: + type: string + type: + type: string + path: + type: string + methods: + items: + $ref: '#/components/schemas/MethodConfig' + type: array + scopes: + items: + type: string + type: array + id: + type: string + enforcement-mode: + $ref: '#/components/schemas/EnforcementMode' + claim-information-point: + additionalProperties: + additionalProperties: {} + type: object + type: object + invalidated: + type: boolean + staticPath: + type: boolean + static: + type: boolean + type: object + Permission: + example: + claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + properties: + rsid: + type: string + rsname: + type: string + scopes: + items: + type: string + type: array + uniqueItems: true + claims: + additionalProperties: + items: + type: string + type: array + uniqueItems: true + type: object + type: object + PolicyEnforcementMode: + enum: + - ENFORCING + - PERMISSIVE + - DISABLED + type: string + PolicyEnforcerConfig: + properties: + enforcement-mode: + $ref: '#/components/schemas/EnforcementMode' + paths: + items: + $ref: '#/components/schemas/PathConfig' + type: array + path-cache: + $ref: '#/components/schemas/PathCacheConfig' + lazy-load-paths: + type: boolean + on-deny-redirect-to: + type: string + user-managed-access: + type: object + claim-information-point: + additionalProperties: + additionalProperties: {} + type: object + type: object + http-method-as-scope: + type: boolean + realm: + type: string + auth-server-url: + type: string + credentials: + additionalProperties: {} + type: object + resource: + type: string + type: object + PolicyEvaluationRequest: + example: + entitlements: true + clientId: clientId + roleIds: + - roleIds + - roleIds + context: + key: + key: context + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + userId: userId + properties: + context: + additionalProperties: + additionalProperties: + type: string + type: object + type: object + resources: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + clientId: + type: string + userId: + type: string + roleIds: + items: + type: string + type: array + entitlements: + type: boolean + type: object + PolicyEvaluationResponse: + example: + entitlements: true + rpt: + at_hash: at_hash + sub: sub + zoneinfo: zoneinfo + resource_access: + key: + roles: + - roles + - roles + verify_caller: true + birthdate: birthdate + gender: gender + allowed-origins: + - allowed-origins + - allowed-origins + iss: iss + typ: typ + trusted-certs: + - trusted-certs + - trusted-certs + preferred_username: preferred_username + locale: locale + sid: sid + authorization: + permissions: + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + acr: acr + updated_at: 5 + realm_access: + roles: + - roles + - roles + verify_caller: true + azp: azp + auth_time: 5 + scope: scope + nickname: nickname + cnf: + x5t#S256: x5t#S256 + jkt: jkt + exp: 0 + iat: 1 + jti: jti + email: email + website: website + email_verified: true + address: + street_address: street_address + country: country + formatted: formatted + locality: locality + region: region + postal_code: postal_code + profile: profile + otherClaims: + key: "" + phone_number_verified: true + given_name: given_name + middle_name: middle_name + nonce: nonce + picture: picture + c_hash: c_hash + s_hash: s_hash + nbf: 6 + claims_locales: claims_locales + name: name + phone_number: phone_number + family_name: family_name + results: + - resource: + owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + policies: + - scopes: + - scopes + - scopes + associatedPolicies: + - null + - null + policy: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + status: PERMIT + - scopes: + - scopes + - scopes + associatedPolicies: + - null + - null + policy: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + status: PERMIT + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowedScopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + status: null + - resource: + owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + policies: + - scopes: + - scopes + - scopes + associatedPolicies: + - null + - null + policy: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + status: PERMIT + - scopes: + - scopes + - scopes + associatedPolicies: + - null + - null + policy: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + status: PERMIT + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowedScopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + status: null + status: null + properties: + results: + items: + $ref: '#/components/schemas/EvaluationResultRepresentation' + type: array + entitlements: + type: boolean + status: + $ref: '#/components/schemas/DecisionEffect' + rpt: + $ref: '#/components/schemas/AccessToken' + type: object + PolicyProviderRepresentation: + example: + name: name + type: type + group: group + properties: + type: + type: string + name: + type: string + group: + type: string + type: object + PolicyRepresentation: + example: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + properties: + id: + type: string + name: + type: string + description: + type: string + type: + type: string + policies: + items: + type: string + type: array + uniqueItems: true + resources: + items: + type: string + type: array + uniqueItems: true + scopes: + items: + type: string + type: array + uniqueItems: true + logic: + $ref: '#/components/schemas/Logic' + decisionStrategy: + $ref: '#/components/schemas/DecisionStrategy' + owner: + type: string + resourcesData: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + uniqueItems: true + scopesData: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + uniqueItems: true + config: + additionalProperties: + type: string + type: object + type: object + PolicyResultRepresentation: + example: + scopes: + - scopes + - scopes + associatedPolicies: + - null + - null + policy: + owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + status: PERMIT + properties: + policy: + $ref: '#/components/schemas/PolicyRepresentation' + status: + $ref: '#/components/schemas/DecisionEffect' + associatedPolicies: + items: + $ref: '#/components/schemas/PolicyResultRepresentation' + type: array + scopes: + items: + type: string + type: array + uniqueItems: true + type: object + PropertyConfig: + example: + applicable: true + value: "" + properties: + applicable: + type: boolean + value: {} + type: object + ProtocolMapperEvaluationRepresentation: + example: + protocolMapper: protocolMapper + containerName: containerName + containerType: containerType + mapperId: mapperId + mapperName: mapperName + containerId: containerId + properties: + mapperId: + type: string + mapperName: + type: string + containerId: + type: string + containerName: + type: string + containerType: + type: string + protocolMapper: + type: string + type: object + ProtocolMapperRepresentation: + example: + protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + properties: + id: + type: string + name: + type: string + protocol: + type: string + protocolMapper: + type: string + consentRequired: + deprecated: true + type: boolean + consentText: + deprecated: true + type: string + config: + additionalProperties: + type: string + type: object + type: object + PublishedRealmRepresentation: + properties: + realm: + type: string + public_key: + type: string + token-service: + type: string + account-service: + type: string + tokens-not-before: + format: int32 + type: integer + type: object + RealmEventsConfigRepresentation: + example: + adminEventsDetailsEnabled: true + enabledEventTypes: + - enabledEventTypes + - enabledEventTypes + eventsEnabled: true + eventsExpiration: 0 + eventsListeners: + - eventsListeners + - eventsListeners + adminEventsEnabled: true + properties: + eventsEnabled: + type: boolean + eventsExpiration: + format: int64 + type: integer + eventsListeners: + items: + type: string + type: array + enabledEventTypes: + items: + type: string + type: array + adminEventsEnabled: + type: boolean + adminEventsDetailsEnabled: + type: boolean + type: object + RealmRepresentation: + example: + socialProviders: + key: socialProviders + otpPolicyLookAheadWindow: 6 + webAuthnPolicyPasswordlessExtraOrigins: + - webAuthnPolicyPasswordlessExtraOrigins + - webAuthnPolicyPasswordlessExtraOrigins + clientProfiles: + profiles: + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + globalProfiles: + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + - name: name + description: description + executors: + - configuration: + - configuration + - configuration + executor: executor + - configuration: + - configuration + - configuration + executor: executor + defaultGroups: + - defaultGroups + - defaultGroups + webAuthnPolicyPasswordlessAcceptableAaguids: + - webAuthnPolicyPasswordlessAcceptableAaguids + - webAuthnPolicyPasswordlessAcceptableAaguids + directGrantFlow: directGrantFlow + publicKey: publicKey + maxTemporaryLockouts: 9 + otpPolicyDigits: 6 + webAuthnPolicySignatureAlgorithms: + - webAuthnPolicySignatureAlgorithms + - webAuthnPolicySignatureAlgorithms + offlineSessionMaxLifespan: 2 + eventsListeners: + - eventsListeners + - eventsListeners + id: id + clientPolicies: + policies: + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + globalPolicies: + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + - name: name + profiles: + - profiles + - profiles + description: description + conditions: + - condition: condition + configuration: + - configuration + - configuration + - condition: condition + configuration: + - configuration + - configuration + enabled: true + ssoSessionIdleTimeoutRememberMe: 7 + adminEventsDetailsEnabled: true + clientSessionIdleTimeout: 4 + accessCodeLifespanLogin: 7 + quickLoginCheckMilliSeconds: 6 + oAuth2DeviceCodeLifespan: 6 + eventsEnabled: true + registrationFlow: registrationFlow + clientAuthenticationFlow: clientAuthenticationFlow + defaultLocale: defaultLocale + authenticatorConfig: + - alias: alias + id: id + config: + key: config + - alias: alias + id: id + config: + key: config + defaultSignatureAlgorithm: defaultSignatureAlgorithm + duplicateEmailsAllowed: true + accessCodeLifespan: 1 + eventsExpiration: 4 + webAuthnPolicyPasswordlessCreateTimeout: 3 + otpPolicyType: otpPolicyType + components: + key: + - providerId: providerId + name: name + subComponents: + key: + - null + - null + subType: subType + id: id + config: + key: + - config + - config + - providerId: providerId + name: name + subComponents: + key: + - null + - null + subType: subType + id: id + config: + key: + - config + - config + clients: + - optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 5 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 3 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 7 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + name: name + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + - optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 5 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 3 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 7 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + name: name + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + displayName: displayName + otpPolicyAlgorithm: otpPolicyAlgorithm + webAuthnPolicyAuthenticatorAttachment: webAuthnPolicyAuthenticatorAttachment + userCacheEnabled: true + enabled: true + oauthClients: + - optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 4 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 7 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 5 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + name: name + claims: "{}" + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + - optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 4 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 7 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 5 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + name: name + claims: "{}" + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + requiredCredentials: + - requiredCredentials + - requiredCredentials + maxDeltaTimeSeconds: 3 + internationalizationEnabled: true + ssoSessionMaxLifespan: 2 + bruteForceProtected: true + accessTokenLifespanForImplicitFlow: 5 + webAuthnPolicyPasswordlessSignatureAlgorithms: + - webAuthnPolicyPasswordlessSignatureAlgorithms + - webAuthnPolicyPasswordlessSignatureAlgorithms + bruteForceStrategy: LINEAR + userFederationProviders: + - changedSyncPeriod: 0 + fullSyncPeriod: 4 + lastSync: 6 + displayName: displayName + id: id + priority: 3 + config: + key: config + providerName: providerName + - changedSyncPeriod: 0 + fullSyncPeriod: 4 + lastSync: 6 + displayName: displayName + id: id + priority: 3 + config: + key: config + providerName: providerName + identityProviders: + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + supportedLocales: + - supportedLocales + - supportedLocales + webAuthnPolicyAttestationConveyancePreference: webAuthnPolicyAttestationConveyancePreference + webAuthnPolicyPasswordlessUserVerificationRequirement: webAuthnPolicyPasswordlessUserVerificationRequirement + browserSecurityHeaders: + key: browserSecurityHeaders + applicationScopeMappings: + key: + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + oauth2DeviceCodeLifespan: 5 + webAuthnPolicyPasswordlessAuthenticatorAttachment: webAuthnPolicyPasswordlessAuthenticatorAttachment + smtpServer: + key: smtpServer + webAuthnPolicyExtraOrigins: + - webAuthnPolicyExtraOrigins + - webAuthnPolicyExtraOrigins + emailTheme: emailTheme + enabledEventTypes: + - enabledEventTypes + - enabledEventTypes + otpSupportedApplications: + - otpSupportedApplications + - otpSupportedApplications + actionTokenGeneratedByAdminLifespan: 1 + defaultRoles: + - defaultRoles + - defaultRoles + attributes: + key: attributes + registrationEmailAsUsername: true + otpPolicyPeriod: 5 + ssoSessionMaxLifespanRememberMe: 9 + otpPolicyInitialCounter: 2 + userManagedAccessAllowed: true + clientOfflineSessionIdleTimeout: 1 + notBefore: 0 + resetPasswordAllowed: true + firstBrokerLoginFlow: firstBrokerLoginFlow + scopeMappings: + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + actionTokenGeneratedByUserLifespan: 4 + clientScopeMappings: + key: + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + webAuthnPolicyPasswordlessRpEntityName: webAuthnPolicyPasswordlessRpEntityName + defaultOptionalClientScopes: + - defaultOptionalClientScopes + - defaultOptionalClientScopes + organizationsEnabled: true + webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: true + webAuthnPolicyPasswordlessRequireResidentKey: webAuthnPolicyPasswordlessRequireResidentKey + resetCredentialsFlow: resetCredentialsFlow + webAuthnPolicyUserVerificationRequirement: webAuthnPolicyUserVerificationRequirement + passwordPolicy: passwordPolicy + webAuthnPolicyCreateTimeout: 6 + defaultRole: + composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + keycloakVersion: keycloakVersion + authenticationFlows: + - authenticationExecutions: + - authenticatorConfig: authenticatorConfig + authenticatorFlow: true + userSetupAllowed: true + requirement: requirement + priority: 1 + flowAlias: flowAlias + authenticator: authenticator + autheticatorFlow: true + - authenticatorConfig: authenticatorConfig + authenticatorFlow: true + userSetupAllowed: true + requirement: requirement + priority: 1 + flowAlias: flowAlias + authenticator: authenticator + autheticatorFlow: true + providerId: providerId + topLevel: true + builtIn: true + alias: alias + description: description + id: id + - authenticationExecutions: + - authenticatorConfig: authenticatorConfig + authenticatorFlow: true + userSetupAllowed: true + requirement: requirement + priority: 1 + flowAlias: flowAlias + authenticator: authenticator + autheticatorFlow: true + - authenticatorConfig: authenticatorConfig + authenticatorFlow: true + userSetupAllowed: true + requirement: requirement + priority: 1 + flowAlias: flowAlias + authenticator: authenticator + autheticatorFlow: true + providerId: providerId + topLevel: true + builtIn: true + alias: alias + description: description + id: id + realmCacheEnabled: true + revokeRefreshToken: true + minimumQuickLoginWaitSeconds: 8 + adminEventsEnabled: true + users: + - lastName: lastName + totp: true + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 3 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 3 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + - lastName: lastName + totp: true + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 3 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 3 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + loginWithEmailAllowed: true + browserFlow: browserFlow + accessCodeLifespanUserAction: 6 + editUsernameAllowed: true + ssoSessionIdleTimeout: 5 + clientSessionMaxLifespan: 7 + passwordCredentialGrantAllowed: true + localizationTexts: + key: + key: localizationTexts + offlineSessionMaxLifespanEnabled: true + waitIncrementSeconds: 9 + codeSecret: codeSecret + roles: + application: + key: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + client: + key: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + realm: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + registrationAllowed: true + certificate: certificate + displayNameHtml: displayNameHtml + verifyEmail: true + sslRequired: sslRequired + webAuthnPolicyRpEntityName: webAuthnPolicyRpEntityName + failureFactor: 6 + federatedUsers: + - lastName: lastName + totp: true + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 3 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 3 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + - lastName: lastName + totp: true + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 3 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 3 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + loginTheme: loginTheme + identityProviderMappers: + - identityProviderAlias: identityProviderAlias + name: name + id: id + config: + key: config + identityProviderMapper: identityProviderMapper + - identityProviderAlias: identityProviderAlias + name: name + id: id + config: + key: config + identityProviderMapper: identityProviderMapper + adminTheme: adminTheme + accessTokenLifespan: 1 + refreshTokenMaxReuse: 6 + updateProfileOnInitialSocialLogin: true + clientScopes: + - protocol: protocol + name: name + description: description + attributes: + key: attributes + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + id: id + - protocol: protocol + name: name + description: description + attributes: + key: attributes + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + id: id + clientOfflineSessionMaxLifespan: 1 + oauth2DevicePollingInterval: 9 + permanentLockout: true + defaultDefaultClientScopes: + - defaultDefaultClientScopes + - defaultDefaultClientScopes + webAuthnPolicyRequireResidentKey: webAuthnPolicyRequireResidentKey + webAuthnPolicyPasswordlessRpId: webAuthnPolicyPasswordlessRpId + dockerAuthenticationFlow: dockerAuthenticationFlow + social: true + webAuthnPolicyRpId: webAuthnPolicyRpId + groups: + - path: path + realmRoles: + - realmRoles + - realmRoles + access: + key: true + name: name + subGroups: + - null + - null + attributes: + key: + - attributes + - attributes + id: id + parentId: parentId + clientRoles: + key: + - clientRoles + - clientRoles + subGroupCount: 1 + - path: path + realmRoles: + - realmRoles + - realmRoles + access: + key: true + name: name + subGroups: + - null + - null + attributes: + key: + - attributes + - attributes + id: id + parentId: parentId + clientRoles: + key: + - clientRoles + - clientRoles + subGroupCount: 1 + maxFailureWaitSeconds: 6 + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + privateKey: privateKey + accountTheme: accountTheme + requiredActions: + - defaultAction: true + providerId: providerId + name: name + alias: alias + priority: 4 + config: + key: config + enabled: true + - defaultAction: true + providerId: providerId + name: name + alias: alias + priority: 4 + config: + key: config + enabled: true + clientTemplates: + - publicClient: true + description: description + serviceAccountsEnabled: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + consentRequired: true + fullScopeAllowed: true + implicitFlowEnabled: true + directAccessGrantsEnabled: true + frontchannelLogout: true + protocol: protocol + bearerOnly: true + name: name + standardFlowEnabled: true + attributes: + key: attributes + id: id + - publicClient: true + description: description + serviceAccountsEnabled: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + consentRequired: true + fullScopeAllowed: true + implicitFlowEnabled: true + directAccessGrantsEnabled: true + frontchannelLogout: true + protocol: protocol + bearerOnly: true + name: name + standardFlowEnabled: true + attributes: + key: attributes + id: id + webAuthnPolicyAvoidSameAuthenticatorRegister: true + otpPolicyCodeReusable: true + webAuthnPolicyPasswordlessAttestationConveyancePreference: webAuthnPolicyPasswordlessAttestationConveyancePreference + organizations: + - identityProviders: + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + redirectUrl: redirectUrl + members: + - lastName: lastName + totp: true + membershipType: UNMANAGED + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 9 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 7 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + - lastName: lastName + totp: true + membershipType: UNMANAGED + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 9 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 7 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + name: name + alias: alias + description: description + domains: + - name: name + verified: true + - name: name + verified: true + attributes: + key: + - attributes + - attributes + id: id + enabled: true + - identityProviders: + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + redirectUrl: redirectUrl + members: + - lastName: lastName + totp: true + membershipType: UNMANAGED + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 9 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 7 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + - lastName: lastName + totp: true + membershipType: UNMANAGED + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 9 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 7 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + name: name + alias: alias + description: description + domains: + - name: name + verified: true + - name: name + verified: true + attributes: + key: + - attributes + - attributes + id: id + enabled: true + realm: realm + rememberMe: true + offlineSessionIdleTimeout: 3 + webAuthnPolicyAcceptableAaguids: + - webAuthnPolicyAcceptableAaguids + - webAuthnPolicyAcceptableAaguids + oAuth2DevicePollingInterval: 8 + userFederationMappers: + - federationProviderDisplayName: federationProviderDisplayName + name: name + id: id + config: + key: config + federationMapperType: federationMapperType + - federationProviderDisplayName: federationProviderDisplayName + name: name + id: id + config: + key: config + federationMapperType: federationMapperType + applications: + - optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 0 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 0 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 9 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + name: name + claims: "{}" + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + - optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 0 + authorizationSettings: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 0 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 9 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + name: name + claims: "{}" + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + properties: + id: + type: string + realm: + type: string + displayName: + type: string + displayNameHtml: + type: string + notBefore: + format: int32 + type: integer + defaultSignatureAlgorithm: + type: string + revokeRefreshToken: + type: boolean + refreshTokenMaxReuse: + format: int32 + type: integer + accessTokenLifespan: + format: int32 + type: integer + accessTokenLifespanForImplicitFlow: + format: int32 + type: integer + ssoSessionIdleTimeout: + format: int32 + type: integer + ssoSessionMaxLifespan: + format: int32 + type: integer + ssoSessionIdleTimeoutRememberMe: + format: int32 + type: integer + ssoSessionMaxLifespanRememberMe: + format: int32 + type: integer + offlineSessionIdleTimeout: + format: int32 + type: integer + offlineSessionMaxLifespanEnabled: + type: boolean + offlineSessionMaxLifespan: + format: int32 + type: integer + clientSessionIdleTimeout: + format: int32 + type: integer + clientSessionMaxLifespan: + format: int32 + type: integer + clientOfflineSessionIdleTimeout: + format: int32 + type: integer + clientOfflineSessionMaxLifespan: + format: int32 + type: integer + accessCodeLifespan: + format: int32 + type: integer + accessCodeLifespanUserAction: + format: int32 + type: integer + accessCodeLifespanLogin: + format: int32 + type: integer + actionTokenGeneratedByAdminLifespan: + format: int32 + type: integer + actionTokenGeneratedByUserLifespan: + format: int32 + type: integer + oauth2DeviceCodeLifespan: + format: int32 + type: integer + oauth2DevicePollingInterval: + format: int32 + type: integer + enabled: + type: boolean + sslRequired: + type: string + passwordCredentialGrantAllowed: + deprecated: true + type: boolean + registrationAllowed: + type: boolean + registrationEmailAsUsername: + type: boolean + rememberMe: + type: boolean + verifyEmail: + type: boolean + loginWithEmailAllowed: + type: boolean + duplicateEmailsAllowed: + type: boolean + resetPasswordAllowed: + type: boolean + editUsernameAllowed: + type: boolean + userCacheEnabled: + deprecated: true + type: boolean + realmCacheEnabled: + deprecated: true + type: boolean + bruteForceProtected: + type: boolean + permanentLockout: + type: boolean + maxTemporaryLockouts: + format: int32 + type: integer + bruteForceStrategy: + $ref: '#/components/schemas/BruteForceStrategy' + maxFailureWaitSeconds: + format: int32 + type: integer + minimumQuickLoginWaitSeconds: + format: int32 + type: integer + waitIncrementSeconds: + format: int32 + type: integer + quickLoginCheckMilliSeconds: + format: int64 + type: integer + maxDeltaTimeSeconds: + format: int32 + type: integer + failureFactor: + format: int32 + type: integer + privateKey: + deprecated: true + type: string + publicKey: + deprecated: true + type: string + certificate: + deprecated: true + type: string + codeSecret: + deprecated: true + type: string + roles: + $ref: '#/components/schemas/RolesRepresentation' + groups: + items: + $ref: '#/components/schemas/GroupRepresentation' + type: array + defaultRoles: + deprecated: true + items: + type: string + type: array + defaultRole: + $ref: '#/components/schemas/RoleRepresentation' + defaultGroups: + items: + type: string + type: array + requiredCredentials: + deprecated: true + items: + type: string + type: array + uniqueItems: true + passwordPolicy: + type: string + otpPolicyType: + type: string + otpPolicyAlgorithm: + type: string + otpPolicyInitialCounter: + format: int32 + type: integer + otpPolicyDigits: + format: int32 + type: integer + otpPolicyLookAheadWindow: + format: int32 + type: integer + otpPolicyPeriod: + format: int32 + type: integer + otpPolicyCodeReusable: + type: boolean + otpSupportedApplications: + items: + type: string + type: array + localizationTexts: + additionalProperties: + additionalProperties: + type: string + type: object + type: object + webAuthnPolicyRpEntityName: + type: string + webAuthnPolicySignatureAlgorithms: + items: + type: string + type: array + webAuthnPolicyRpId: + type: string + webAuthnPolicyAttestationConveyancePreference: + type: string + webAuthnPolicyAuthenticatorAttachment: + type: string + webAuthnPolicyRequireResidentKey: + type: string + webAuthnPolicyUserVerificationRequirement: + type: string + webAuthnPolicyCreateTimeout: + format: int32 + type: integer + webAuthnPolicyAvoidSameAuthenticatorRegister: + type: boolean + webAuthnPolicyAcceptableAaguids: + items: + type: string + type: array + webAuthnPolicyExtraOrigins: + items: + type: string + type: array + webAuthnPolicyPasswordlessRpEntityName: + type: string + webAuthnPolicyPasswordlessSignatureAlgorithms: + items: + type: string + type: array + webAuthnPolicyPasswordlessRpId: + type: string + webAuthnPolicyPasswordlessAttestationConveyancePreference: + type: string + webAuthnPolicyPasswordlessAuthenticatorAttachment: + type: string + webAuthnPolicyPasswordlessRequireResidentKey: + type: string + webAuthnPolicyPasswordlessUserVerificationRequirement: + type: string + webAuthnPolicyPasswordlessCreateTimeout: + format: int32 + type: integer + webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: + type: boolean + webAuthnPolicyPasswordlessAcceptableAaguids: + items: + type: string + type: array + webAuthnPolicyPasswordlessExtraOrigins: + items: + type: string + type: array + clientProfiles: + $ref: '#/components/schemas/ClientProfilesRepresentation' + clientPolicies: + $ref: '#/components/schemas/ClientPoliciesRepresentation' + users: + items: + $ref: '#/components/schemas/UserRepresentation' + type: array + federatedUsers: + items: + $ref: '#/components/schemas/UserRepresentation' + type: array + scopeMappings: + items: + $ref: '#/components/schemas/ScopeMappingRepresentation' + type: array + clientScopeMappings: + additionalProperties: + items: + $ref: '#/components/schemas/ScopeMappingRepresentation' + type: array + type: object + clients: + items: + $ref: '#/components/schemas/ClientRepresentation' + type: array + clientScopes: + items: + $ref: '#/components/schemas/ClientScopeRepresentation' + type: array + defaultDefaultClientScopes: + items: + type: string + type: array + defaultOptionalClientScopes: + items: + type: string + type: array + browserSecurityHeaders: + additionalProperties: + type: string + type: object + smtpServer: + additionalProperties: + type: string + type: object + userFederationProviders: + items: + $ref: '#/components/schemas/UserFederationProviderRepresentation' + type: array + userFederationMappers: + items: + $ref: '#/components/schemas/UserFederationMapperRepresentation' + type: array + loginTheme: + type: string + accountTheme: + type: string + adminTheme: + type: string + emailTheme: + type: string + eventsEnabled: + type: boolean + eventsExpiration: + format: int64 + type: integer + eventsListeners: + items: + type: string + type: array + enabledEventTypes: + items: + type: string + type: array + adminEventsEnabled: + type: boolean + adminEventsDetailsEnabled: + type: boolean + identityProviders: + items: + $ref: '#/components/schemas/IdentityProviderRepresentation' + type: array + identityProviderMappers: + items: + $ref: '#/components/schemas/IdentityProviderMapperRepresentation' + type: array + protocolMappers: + items: + $ref: '#/components/schemas/ProtocolMapperRepresentation' + type: array + components: + additionalProperties: + items: + $ref: '#/components/schemas/ComponentExportRepresentation' + type: array + type: object + internationalizationEnabled: + type: boolean + supportedLocales: + items: + type: string + type: array + uniqueItems: true + defaultLocale: + type: string + authenticationFlows: + items: + $ref: '#/components/schemas/AuthenticationFlowRepresentation' + type: array + authenticatorConfig: + items: + $ref: '#/components/schemas/AuthenticatorConfigRepresentation' + type: array + requiredActions: + items: + $ref: '#/components/schemas/RequiredActionProviderRepresentation' + type: array + browserFlow: + type: string + registrationFlow: + type: string + directGrantFlow: + type: string + resetCredentialsFlow: + type: string + clientAuthenticationFlow: + type: string + dockerAuthenticationFlow: + type: string + firstBrokerLoginFlow: + type: string + attributes: + additionalProperties: + type: string + type: object + keycloakVersion: + type: string + userManagedAccessAllowed: + type: boolean + organizationsEnabled: + type: boolean + organizations: + items: + $ref: '#/components/schemas/OrganizationRepresentation' + type: array + social: + deprecated: true + type: boolean + updateProfileOnInitialSocialLogin: + deprecated: true + type: boolean + socialProviders: + additionalProperties: + type: string + deprecated: true + type: object + applicationScopeMappings: + additionalProperties: + items: + $ref: '#/components/schemas/ScopeMappingRepresentation' + type: array + deprecated: true + type: object + applications: + deprecated: true + items: + $ref: '#/components/schemas/ApplicationRepresentation' + type: array + oauthClients: + deprecated: true + items: + $ref: '#/components/schemas/OAuthClientRepresentation' + type: array + clientTemplates: + deprecated: true + items: + $ref: '#/components/schemas/ClientTemplateRepresentation' + type: array + oAuth2DeviceCodeLifespan: + format: int32 + type: integer + oAuth2DevicePollingInterval: + format: int32 + type: integer + type: object + RequiredActionConfigInfoRepresentation: + example: + properties: + - helpText: helpText + defaultValue: "" + name: name + options: + - options + - options + readOnly: true + label: label + secret: true + type: type + required: true + - helpText: helpText + defaultValue: "" + name: name + options: + - options + - options + readOnly: true + label: label + secret: true + type: type + required: true + properties: + properties: + items: + $ref: '#/components/schemas/ConfigPropertyRepresentation' + type: array + type: object + RequiredActionConfigRepresentation: + example: + config: + key: config + properties: + config: + additionalProperties: + type: string + type: object + type: object + RequiredActionProviderRepresentation: + example: + defaultAction: true + providerId: providerId + name: name + alias: alias + priority: 4 + config: + key: config + enabled: true + properties: + alias: + type: string + name: + type: string + providerId: + type: string + enabled: + type: boolean + defaultAction: + type: boolean + priority: + format: int32 + type: integer + config: + additionalProperties: + type: string + type: object + type: object + ResourceOwnerRepresentation: + properties: + id: + type: string + name: + type: string + type: object + ResourceRepresentation: + example: + owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + properties: + _id: + type: string + name: + type: string + uris: + items: + type: string + type: array + uniqueItems: true + type: + type: string + scopes: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + uniqueItems: true + icon_uri: + type: string + owner: + allOf: + - $ref: '#/components/schemas/ResourceOwnerRepresentation' + readOnly: true + type: object + ownerManagedAccess: + type: boolean + displayName: + type: string + attributes: + additionalProperties: + items: + type: string + type: array + type: object + uri: + deprecated: true + type: string + writeOnly: true + scopesUma: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + uniqueItems: true + type: object + ResourceServerRepresentation: + example: + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + properties: + id: + type: string + clientId: + type: string + name: + type: string + allowRemoteResourceManagement: + type: boolean + policyEnforcementMode: + $ref: '#/components/schemas/PolicyEnforcementMode' + resources: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + policies: + items: + $ref: '#/components/schemas/PolicyRepresentation' + type: array + scopes: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + decisionStrategy: + $ref: '#/components/schemas/DecisionStrategy' + type: object + RoleRepresentation: + example: + composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + properties: + id: + type: string + name: + type: string + description: + type: string + scopeParamRequired: + deprecated: true + type: boolean + composite: + type: boolean + composites: + $ref: '#/components/schemas/Composites' + clientRole: + type: boolean + containerId: + type: string + attributes: + additionalProperties: + items: + type: string + type: array + type: object + type: object + RolesRepresentation: + example: + application: + key: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + client: + key: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + realm: + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + - composites: + application: + key: + - application + - application + client: + key: + - client + - client + realm: + - realm + - realm + clientRole: true + composite: true + name: name + description: description + attributes: + key: + - attributes + - attributes + id: id + scopeParamRequired: true + containerId: containerId + properties: + realm: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + client: + additionalProperties: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + type: object + application: + additionalProperties: + items: + $ref: '#/components/schemas/RoleRepresentation' + type: array + deprecated: true + type: object + type: object + ScopeEnforcementMode: + enum: + - ALL + - ANY + - DISABLED + type: string + ScopeMappingRepresentation: + example: + roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + properties: + self: + type: string + client: + type: string + clientTemplate: + deprecated: true + type: string + clientScope: + type: string + roles: + items: + type: string + type: array + uniqueItems: true + type: object + ScopeRepresentation: + example: + displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resources: + - null + - null + id: id + iconUri: iconUri + properties: + id: + type: string + name: + type: string + iconUri: + type: string + policies: + items: + $ref: '#/components/schemas/PolicyRepresentation' + type: array + resources: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + displayName: + type: string + type: object + SocialLinkRepresentation: + example: + socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + properties: + socialProvider: + type: string + socialUserId: + type: string + socialUsername: + type: string + type: object + UPAttribute: + example: + displayName: displayName + permissions: + view: + - view + - view + edit: + - edit + - edit + multivalued: true + name: name + annotations: + key: "" + selector: + scopes: + - scopes + - scopes + validations: + key: + key: "" + required: + roles: + - roles + - roles + scopes: + - scopes + - scopes + group: group + properties: + name: + type: string + displayName: + type: string + validations: + additionalProperties: + additionalProperties: {} + type: object + type: object + annotations: + additionalProperties: {} + type: object + required: + $ref: '#/components/schemas/UPAttributeRequired' + permissions: + $ref: '#/components/schemas/UPAttributePermissions' + selector: + $ref: '#/components/schemas/UPAttributeSelector' + group: + type: string + multivalued: + type: boolean + type: object + UPAttributePermissions: + example: + view: + - view + - view + edit: + - edit + - edit + properties: + view: + items: + type: string + type: array + uniqueItems: true + edit: + items: + type: string + type: array + uniqueItems: true + type: object + UPAttributeRequired: + example: + roles: + - roles + - roles + scopes: + - scopes + - scopes + properties: + roles: + items: + type: string + type: array + uniqueItems: true + scopes: + items: + type: string + type: array + uniqueItems: true + type: object + UPAttributeSelector: + example: + scopes: + - scopes + - scopes + properties: + scopes: + items: + type: string + type: array + uniqueItems: true + type: object + UPConfig: + example: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + permissions: + view: + - view + - view + edit: + - edit + - edit + multivalued: true + name: name + annotations: + key: "" + selector: + scopes: + - scopes + - scopes + validations: + key: + key: "" + required: + roles: + - roles + - roles + scopes: + - scopes + - scopes + group: group + - displayName: displayName + permissions: + view: + - view + - view + edit: + - edit + - edit + multivalued: true + name: name + annotations: + key: "" + selector: + scopes: + - scopes + - scopes + validations: + key: + key: "" + required: + roles: + - roles + - roles + scopes: + - scopes + - scopes + group: group + unmanagedAttributePolicy: ENABLED + properties: + attributes: + items: + $ref: '#/components/schemas/UPAttribute' + type: array + groups: + items: + $ref: '#/components/schemas/UPGroup' + type: array + unmanagedAttributePolicy: + $ref: '#/components/schemas/UnmanagedAttributePolicy' + type: object + UPGroup: + example: + displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + properties: + name: + type: string + displayHeader: + type: string + displayDescription: + type: string + annotations: + additionalProperties: {} + type: object + type: object + UnmanagedAttributePolicy: + enum: + - ENABLED + - ADMIN_VIEW + - ADMIN_EDIT + type: string + UserConsentRepresentation: + example: + grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + properties: + clientId: + type: string + grantedClientScopes: + items: + type: string + type: array + createdDate: + format: int64 + type: integer + lastUpdatedDate: + format: int64 + type: integer + grantedRealmRoles: + deprecated: true + items: + type: string + type: array + type: object + UserFederationMapperRepresentation: + example: + federationProviderDisplayName: federationProviderDisplayName + name: name + id: id + config: + key: config + federationMapperType: federationMapperType + properties: + id: + type: string + name: + type: string + federationProviderDisplayName: + type: string + federationMapperType: + type: string + config: + additionalProperties: + type: string + type: object + type: object + UserFederationProviderRepresentation: + example: + changedSyncPeriod: 0 + fullSyncPeriod: 4 + lastSync: 6 + displayName: displayName + id: id + priority: 3 + config: + key: config + providerName: providerName + properties: + id: + type: string + displayName: + type: string + providerName: + type: string + config: + additionalProperties: + type: string + type: object + priority: + format: int32 + type: integer + fullSyncPeriod: + format: int32 + type: integer + changedSyncPeriod: + format: int32 + type: integer + lastSync: + format: int32 + type: integer + type: object + UserManagedAccessConfig: + type: object + UserProfileAttributeGroupMetadata: + example: + displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + properties: + name: + type: string + displayHeader: + type: string + displayDescription: + type: string + annotations: + additionalProperties: {} + type: object + type: object + UserProfileAttributeMetadata: + example: + displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + properties: + name: + type: string + displayName: + type: string + required: + type: boolean + readOnly: + type: boolean + annotations: + additionalProperties: {} + type: object + validators: + additionalProperties: + additionalProperties: {} + type: object + type: object + group: + type: string + multivalued: + type: boolean + type: object + UserProfileMetadata: + example: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + properties: + attributes: + items: + $ref: '#/components/schemas/UserProfileAttributeMetadata' + type: array + groups: + items: + $ref: '#/components/schemas/UserProfileAttributeGroupMetadata' + type: array + type: object + UserRepresentation: + example: + lastName: lastName + totp: true + serviceAccountClientId: serviceAccountClientId + socialLinks: + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + - socialUserId: socialUserId + socialUsername: socialUsername + socialProvider: socialProvider + federatedIdentities: + - userName: userName + userId: userId + identityProvider: identityProvider + - userName: userName + userId: userId + identityProvider: identityProvider + access: + key: true + credentials: + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + - userLabel: userLabel + temporary: true + period: 4 + hashedSaltedValue: hashedSaltedValue + salt: salt + hashIterations: 7 + counter: 6 + type: type + priority: 0 + secretData: secretData + createdDate: 7 + digits: 0 + id: id + credentialData: credentialData + value: value + device: device + config: "{}" + algorithm: algorithm + origin: origin + enabled: true + notBefore: 3 + id: id + email: email + clientRoles: + key: + - clientRoles + - clientRoles + applicationRoles: + key: + - applicationRoles + - applicationRoles + createdTimestamp: 3 + groups: + - groups + - groups + clientConsents: + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + - grantedRealmRoles: + - grantedRealmRoles + - grantedRealmRoles + lastUpdatedDate: 7 + clientId: clientId + createdDate: 8 + grantedClientScopes: + - grantedClientScopes + - grantedClientScopes + disableableCredentialTypes: + - disableableCredentialTypes + - disableableCredentialTypes + firstName: firstName + emailVerified: true + realmRoles: + - realmRoles + - realmRoles + requiredActions: + - requiredActions + - requiredActions + userProfileMetadata: + groups: + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + - displayDescription: displayDescription + name: name + annotations: + key: "" + displayHeader: displayHeader + attributes: + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + - displayName: displayName + validators: + key: + key: "" + multivalued: true + name: name + annotations: + key: "" + readOnly: true + required: true + group: group + self: self + federationLink: federationLink + attributes: + key: + - attributes + - attributes + username: username + properties: + id: + type: string + username: + type: string + firstName: + type: string + lastName: + type: string + email: + type: string + emailVerified: + type: boolean + attributes: + additionalProperties: + items: + type: string + type: array + type: object + userProfileMetadata: + $ref: '#/components/schemas/UserProfileMetadata' + self: + type: string + origin: + type: string + createdTimestamp: + format: int64 + type: integer + enabled: + type: boolean + totp: + type: boolean + federationLink: + type: string + serviceAccountClientId: + type: string + credentials: + items: + $ref: '#/components/schemas/CredentialRepresentation' + type: array + disableableCredentialTypes: + items: + type: string + type: array + uniqueItems: true + requiredActions: + items: + type: string + type: array + federatedIdentities: + items: + $ref: '#/components/schemas/FederatedIdentityRepresentation' + type: array + realmRoles: + items: + type: string + type: array + clientRoles: + additionalProperties: + items: + type: string + type: array + type: object + clientConsents: + items: + $ref: '#/components/schemas/UserConsentRepresentation' + type: array + notBefore: + format: int32 + type: integer + applicationRoles: + additionalProperties: + items: + type: string + type: array + deprecated: true + type: object + socialLinks: + deprecated: true + items: + $ref: '#/components/schemas/SocialLinkRepresentation' + type: array + groups: + items: + type: string + type: array + access: + additionalProperties: + type: boolean + type: object + type: object + UserSessionRepresentation: + example: + clients: + key: clients + ipAddress: ipAddress + start: 0 + lastAccess: 6 + transientUser: true + id: id + rememberMe: true + userId: userId + username: username + properties: + id: + type: string + username: + type: string + userId: + type: string + ipAddress: + type: string + start: + format: int64 + type: integer + lastAccess: + format: int64 + type: integer + rememberMe: + type: boolean + clients: + additionalProperties: + type: string + type: object + transientUser: + type: boolean + type: object + _admin_realms__realm__organizations__id__members_invite_existing_user_post_request: + properties: + id: + type: string + type: object + _admin_realms__realm__organizations__id__members_invite_user_post_request: + properties: + email: + type: string + firstName: + type: string + lastName: + type: string + type: object + _admin_realms__realm__testSMTPConnection_post_request: + properties: + config: + type: string + type: object diff --git a/api_attack_detection.go b/api_attack_detection.go new file mode 100644 index 0000000..c825c60 --- /dev/null +++ b/api_attack_detection.go @@ -0,0 +1,313 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// AttackDetectionAPIService AttackDetectionAPI service +type AttackDetectionAPIService service + +type ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest struct { + ctx context.Context + ApiService *AttackDetectionAPIService + realm string +} + +func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAttackDetectionBruteForceUsersDeleteExecute(r) +} + +/* +AdminRealmsRealmAttackDetectionBruteForceUsersDelete Clear any user login failures for all users This can release temporary disabled users + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest +*/ +func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersDelete(ctx context.Context, realm string) ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest { + return ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersDeleteExecute(r ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttackDetectionAPIService.AdminRealmsRealmAttackDetectionBruteForceUsersDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/attack-detection/brute-force/users" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest struct { + ctx context.Context + ApiService *AttackDetectionAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteExecute(r) +} + +/* +AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete Clear any user login failures for the user This can release temporary disabled user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest +*/ +func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest { + return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteExecute(r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttackDetectionAPIService.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/attack-detection/brute-force/users/{userId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest struct { + ctx context.Context + ApiService *AttackDetectionAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetExecute(r) +} + +/* +AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet Get status of a username in brute force detection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest +*/ +func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest { + return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return map[string]interface{} +func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetExecute(r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttackDetectionAPIService.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/attack-detection/brute-force/users/{userId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_authentication_management.go b/api_authentication_management.go new file mode 100644 index 0000000..5634204 --- /dev/null +++ b/api_authentication_management.go @@ -0,0 +1,3960 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// AuthenticationManagementAPIService AuthenticationManagementAPI service +type AuthenticationManagementAPIService service + +type ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationAuthenticatorProvidersGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationAuthenticatorProvidersGet Get authenticator providers Returns a stream of authenticator providers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationAuthenticatorProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest { + return ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []map[string]interface{} +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationAuthenticatorProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationAuthenticatorProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/authenticator-providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet Get client authenticator providers Returns a stream of client authenticator providers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest { + return ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []map[string]interface{} +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/client-authenticator-providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + providerId string +} + +func (r ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest) Execute() (*AuthenticatorConfigInfoRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet Get authenticator provider's configuration description + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param providerId + @return ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet(ctx context.Context, realm string, providerId string) ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest { + return ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + providerId: providerId, + } +} + +// Execute executes the request +// +// @return AuthenticatorConfigInfoRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetExecute(r ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest) (*AuthenticatorConfigInfoRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorConfigInfoRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/config-description/{providerId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", url.PathEscape(parameterValueToString(r.providerId, "providerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationConfigIdDeleteExecute(r) +} + +/* +AdminRealmsRealmAuthenticationConfigIdDelete Delete authenticator configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest { + return ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdDeleteExecute(r ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/config/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationConfigIdGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmAuthenticationConfigIdGetRequest) Execute() (*AuthenticatorConfigRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationConfigIdGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationConfigIdGet Get authenticator configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationConfigIdGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationConfigIdGetRequest { + return ApiAdminRealmsRealmAuthenticationConfigIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return AuthenticatorConfigRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdGetExecute(r ApiAdminRealmsRealmAuthenticationConfigIdGetRequest) (*AuthenticatorConfigRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorConfigRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/config/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationConfigIdPutRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string + authenticatorConfigRepresentation *AuthenticatorConfigRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationConfigIdPutRequest) AuthenticatorConfigRepresentation(authenticatorConfigRepresentation AuthenticatorConfigRepresentation) ApiAdminRealmsRealmAuthenticationConfigIdPutRequest { + r.authenticatorConfigRepresentation = &authenticatorConfigRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationConfigIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationConfigIdPutExecute(r) +} + +/* +AdminRealmsRealmAuthenticationConfigIdPut Update authenticator configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationConfigIdPutRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationConfigIdPutRequest { + return ApiAdminRealmsRealmAuthenticationConfigIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdPutExecute(r ApiAdminRealmsRealmAuthenticationConfigIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/config/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticatorConfigRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationConfigPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + authenticatorConfigRepresentation *AuthenticatorConfigRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationConfigPostRequest) AuthenticatorConfigRepresentation(authenticatorConfigRepresentation AuthenticatorConfigRepresentation) ApiAdminRealmsRealmAuthenticationConfigPostRequest { + r.authenticatorConfigRepresentation = &authenticatorConfigRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationConfigPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationConfigPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationConfigPost Create new authenticator configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationConfigPostRequest + +Deprecated +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationConfigPostRequest { + return ApiAdminRealmsRealmAuthenticationConfigPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// Deprecated +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigPostExecute(r ApiAdminRealmsRealmAuthenticationConfigPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticatorConfigRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + executionId string + id string +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest) Execute() (*AuthenticatorConfigRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet Get execution's configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest + +Deprecated +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet(ctx context.Context, realm string, executionId string, id string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest { + return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + executionId: executionId, + id: id, + } +} + +// Execute executes the request +// +// @return AuthenticatorConfigRepresentation +// +// Deprecated +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest) (*AuthenticatorConfigRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorConfigRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"executionId"+"}", url.PathEscape(parameterValueToString(r.executionId, "executionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + executionId string + authenticatorConfigRepresentation *AuthenticatorConfigRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest) AuthenticatorConfigRepresentation(authenticatorConfigRepresentation AuthenticatorConfigRepresentation) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest { + r.authenticatorConfigRepresentation = &authenticatorConfigRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost Update execution with new configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest { + return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + executionId: executionId, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/executions/{executionId}/config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"executionId"+"}", url.PathEscape(parameterValueToString(r.executionId, "executionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticatorConfigRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + executionId string +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteExecute(r) +} + +/* +AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete Delete execution + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest { + return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + executionId: executionId, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/executions/{executionId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"executionId"+"}", url.PathEscape(parameterValueToString(r.executionId, "executionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + executionId string +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest) Execute() (*AuthenticationExecutionRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationExecutionsExecutionIdGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationExecutionsExecutionIdGet Get Single Execution + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdGet(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest { + return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + executionId: executionId, + } +} + +// Execute executes the request +// +// @return AuthenticationExecutionRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdGetExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest) (*AuthenticationExecutionRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticationExecutionRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/executions/{executionId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"executionId"+"}", url.PathEscape(parameterValueToString(r.executionId, "executionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + executionId string +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost Lower execution's priority + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest { + return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + executionId: executionId, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"executionId"+"}", url.PathEscape(parameterValueToString(r.executionId, "executionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + executionId string +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost Raise execution's priority + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest { + return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + executionId: executionId, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"executionId"+"}", url.PathEscape(parameterValueToString(r.executionId, "executionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationExecutionsPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + authenticationExecutionRepresentation *AuthenticationExecutionRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsPostRequest) AuthenticationExecutionRepresentation(authenticationExecutionRepresentation AuthenticationExecutionRepresentation) ApiAdminRealmsRealmAuthenticationExecutionsPostRequest { + r.authenticationExecutionRepresentation = &authenticationExecutionRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationExecutionsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationExecutionsPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationExecutionsPost Add new authentication execution + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationExecutionsPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationExecutionsPostRequest { + return ApiAdminRealmsRealmAuthenticationExecutionsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/executions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticationExecutionRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string + requestBody *map[string]string +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest) RequestBody(requestBody map[string]string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias name of the existing authentication flow + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest { + return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{flowAlias}/copy" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"flowAlias"+"}", url.PathEscape(parameterValueToString(r.flowAlias, "flowAlias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string + requestBody *map[string]interface{} +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest) RequestBody(requestBody map[string]interface{}) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost Add new authentication execution to a flow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Alias of parent flow + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest { + return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"flowAlias"+"}", url.PathEscape(parameterValueToString(r.flowAlias, "flowAlias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string + requestBody *map[string]interface{} +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest) RequestBody(requestBody map[string]interface{}) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost Add new flow with new execution to existing flow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Alias of parent authentication flow + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest { + return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"flowAlias"+"}", url.PathEscape(parameterValueToString(r.flowAlias, "flowAlias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest) Execute() ([]AuthenticationExecutionInfoRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet Get authentication executions for a flow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Flow alias + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest { + return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, + } +} + +// Execute executes the request +// +// @return []AuthenticationExecutionInfoRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest) ([]AuthenticationExecutionInfoRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AuthenticationExecutionInfoRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{flowAlias}/executions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"flowAlias"+"}", url.PathEscape(parameterValueToString(r.flowAlias, "flowAlias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string + authenticationExecutionInfoRepresentation *AuthenticationExecutionInfoRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest) AuthenticationExecutionInfoRepresentation(authenticationExecutionInfoRepresentation AuthenticationExecutionInfoRepresentation) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest { + r.authenticationExecutionInfoRepresentation = &authenticationExecutionInfoRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut Update authentication executions of a Flow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Flow alias + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest { + return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{flowAlias}/executions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"flowAlias"+"}", url.PathEscape(parameterValueToString(r.flowAlias, "flowAlias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticationExecutionInfoRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsGetRequest) Execute() ([]AuthenticationFlowRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsGet Get authentication flows Returns a stream of authentication flows. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFlowsGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFlowsGetRequest { + return ApiAdminRealmsRealmAuthenticationFlowsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []AuthenticationFlowRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsGetExecute(r ApiAdminRealmsRealmAuthenticationFlowsGetRequest) ([]AuthenticationFlowRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AuthenticationFlowRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsIdDeleteExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsIdDelete Delete an authentication flow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Flow id + @return ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest { + return ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdDeleteExecute(r ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest) Execute() (*AuthenticationFlowRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsIdGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsIdGet Get authentication flow for id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Flow id + @return ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest { + return ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return AuthenticationFlowRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdGetExecute(r ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest) (*AuthenticationFlowRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticationFlowRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string + authenticationFlowRepresentation *AuthenticationFlowRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest) AuthenticationFlowRepresentation(authenticationFlowRepresentation AuthenticationFlowRepresentation) ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest { + r.authenticationFlowRepresentation = &authenticationFlowRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsIdPutExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsIdPut Update an authentication flow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest { + return ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdPutExecute(r ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticationFlowRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFlowsPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + authenticationFlowRepresentation *AuthenticationFlowRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsPostRequest) AuthenticationFlowRepresentation(authenticationFlowRepresentation AuthenticationFlowRepresentation) ApiAdminRealmsRealmAuthenticationFlowsPostRequest { + r.authenticationFlowRepresentation = &authenticationFlowRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationFlowsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFlowsPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFlowsPost Create a new authentication flow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFlowsPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFlowsPostRequest { + return ApiAdminRealmsRealmAuthenticationFlowsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/flows" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticationFlowRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFormActionProvidersGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFormActionProvidersGet Get form action providers Returns a stream of form action providers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormActionProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest { + return ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []map[string]interface{} +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormActionProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFormActionProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/form-action-providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationFormProvidersGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationFormProvidersGet Get form providers Returns a stream of form providers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest { + return ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []map[string]interface{} +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFormProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/form-providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest) Execute() (*map[string][]ConfigPropertyRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationPerClientConfigDescriptionGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet Get configuration descriptions for all clients + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest { + return ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return map[string][]ConfigPropertyRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationPerClientConfigDescriptionGetExecute(r ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest) (*map[string][]ConfigPropertyRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *map[string][]ConfigPropertyRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/per-client-config-description" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + requestBody *map[string]string +} + +func (r ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest) RequestBody(requestBody map[string]string) ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRegisterRequiredActionPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRegisterRequiredActionPost Register a new required actions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRegisterRequiredActionPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest { + return ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRegisterRequiredActionPostExecute(r ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRegisterRequiredActionPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/register-required-action" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete Delete RequiredAction configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}/config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest) Execute() (*RequiredActionConfigInfoRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet Get RequiredAction provider configuration description + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return RequiredActionConfigInfoRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest) (*RequiredActionConfigInfoRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RequiredActionConfigInfoRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}/config-description" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest) Execute() (*RequiredActionConfigRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet Get RequiredAction configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return RequiredActionConfigRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest) (*RequiredActionConfigRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RequiredActionConfigRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}/config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string + requiredActionConfigRepresentation *RequiredActionConfigRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest) RequiredActionConfigRepresentation(requiredActionConfigRepresentation RequiredActionConfigRepresentation) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest { + r.requiredActionConfigRepresentation = &requiredActionConfigRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut Update RequiredAction configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}/config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requiredActionConfigRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasDeleteExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasDelete Delete required action + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasDelete(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasDeleteExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest) Execute() (*RequiredActionProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasGet Get required action for alias + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return RequiredActionProviderRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest) (*RequiredActionProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RequiredActionProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost Lower required action's priority + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string + requiredActionProviderRepresentation *RequiredActionProviderRepresentation +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest) RequiredActionProviderRepresentation(requiredActionProviderRepresentation RequiredActionProviderRepresentation) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest { + r.requiredActionProviderRepresentation = &requiredActionProviderRepresentation + return r +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasPutExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasPut Update required action + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasPutExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requiredActionProviderRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost Raise required action's priority + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest) Execute() ([]RequiredActionProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationRequiredActionsGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationRequiredActionsGet Get required actions Returns a stream of required actions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest { + return ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []RequiredActionProviderRepresentation +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest) ([]RequiredActionProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RequiredActionProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/required-actions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest struct { + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string +} + +func (r ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest) Execute() ([]map[string]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetExecute(r) +} + +/* +AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet Get unregistered required actions Returns a stream of unregistered required actions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest +*/ +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest { + return ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []map[string]string +func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetExecute(r ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest) ([]map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/authentication/unregistered-required-actions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_client_attribute_certificate.go b/api_client_attribute_certificate.go new file mode 100644 index 0000000..32ced72 --- /dev/null +++ b/api_client_attribute_certificate.go @@ -0,0 +1,700 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" + "strings" +) + +// ClientAttributeCertificateAPIService ClientAttributeCertificateAPI service +type ClientAttributeCertificateAPIService service + +type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest struct { + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string + keyStoreConfig *KeyStoreConfig +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest) KeyStoreConfig(keyStoreConfig KeyStoreConfig) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest { + r.keyStoreConfig = &keyStoreConfig + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest) Execute() (*os.File, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost Get a keystore file for the client, containing private key and public certificate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest +*/ +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest { + return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + attr: attr, + } +} + +// Execute executes the request +// +// @return *os.File +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest) (*os.File, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attr"+"}", url.PathEscape(parameterValueToString(r.attr, "attr")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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/octet-stream"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.keyStoreConfig + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest struct { + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string + keyStoreConfig *KeyStoreConfig +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest) KeyStoreConfig(keyStoreConfig KeyStoreConfig) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest { + r.keyStoreConfig = &keyStoreConfig + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest) Execute() (*os.File, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format. Only generated public certificate is saved in Keycloak DB - the private key is not. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest +*/ +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest { + return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + attr: attr, + } +} + +// Execute executes the request +// +// @return *os.File +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest) (*os.File, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attr"+"}", url.PathEscape(parameterValueToString(r.attr, "attr")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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/octet-stream"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.keyStoreConfig + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest struct { + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest) Execute() (*CertificateRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost Generate a new certificate with new key pair + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest +*/ +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest { + return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + attr: attr, + } +} + +// Execute executes the request +// +// @return CertificateRepresentation +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest) (*CertificateRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attr"+"}", url.PathEscape(parameterValueToString(r.attr, "attr")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest struct { + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest) Execute() (*CertificateRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidCertificatesAttrGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidCertificatesAttrGet Get key info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest +*/ +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGet(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest { + return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + attr: attr, + } +} + +// Execute executes the request +// +// @return CertificateRepresentation +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGetExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest) (*CertificateRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attr"+"}", url.PathEscape(parameterValueToString(r.attr, "attr")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest struct { + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest) Execute() (*CertificateRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost Upload only certificate, not private key + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest +*/ +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest { + return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + attr: attr, + } +} + +// Execute executes the request +// +// @return CertificateRepresentation +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest) (*CertificateRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attr"+"}", url.PathEscape(parameterValueToString(r.attr, "attr")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest struct { + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string +} + +func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest) Execute() (*CertificateRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost Upload certificate and eventually private key + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest +*/ +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest { + return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + attr: attr, + } +} + +// Execute executes the request +// +// @return CertificateRepresentation +func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest) (*CertificateRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attr"+"}", url.PathEscape(parameterValueToString(r.attr, "attr")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_client_initial_access.go b/api_client_initial_access.go new file mode 100644 index 0000000..d4fb2af --- /dev/null +++ b/api_client_initial_access.go @@ -0,0 +1,329 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ClientInitialAccessAPIService ClientInitialAccessAPI service +type ClientInitialAccessAPIService service + +type ApiAdminRealmsRealmClientsInitialAccessGetRequest struct { + ctx context.Context + ApiService *ClientInitialAccessAPIService + realm string +} + +func (r ApiAdminRealmsRealmClientsInitialAccessGetRequest) Execute() ([]ClientInitialAccessPresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsInitialAccessGetExecute(r) +} + +/* +AdminRealmsRealmClientsInitialAccessGet Method for AdminRealmsRealmClientsInitialAccessGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsInitialAccessGetRequest +*/ +func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientsInitialAccessGetRequest { + return ApiAdminRealmsRealmClientsInitialAccessGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ClientInitialAccessPresentation +func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessGetExecute(r ApiAdminRealmsRealmClientsInitialAccessGetRequest) ([]ClientInitialAccessPresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientInitialAccessPresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientInitialAccessAPIService.AdminRealmsRealmClientsInitialAccessGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients-initial-access" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest struct { + ctx context.Context + ApiService *ClientInitialAccessAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsInitialAccessIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsInitialAccessIdDelete Method for AdminRealmsRealmClientsInitialAccessIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest +*/ +func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest { + return ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessIdDeleteExecute(r ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientInitialAccessAPIService.AdminRealmsRealmClientsInitialAccessIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients-initial-access/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsInitialAccessPostRequest struct { + ctx context.Context + ApiService *ClientInitialAccessAPIService + realm string + clientInitialAccessCreatePresentation *ClientInitialAccessCreatePresentation +} + +func (r ApiAdminRealmsRealmClientsInitialAccessPostRequest) ClientInitialAccessCreatePresentation(clientInitialAccessCreatePresentation ClientInitialAccessCreatePresentation) ApiAdminRealmsRealmClientsInitialAccessPostRequest { + r.clientInitialAccessCreatePresentation = &clientInitialAccessCreatePresentation + return r +} + +func (r ApiAdminRealmsRealmClientsInitialAccessPostRequest) Execute() (*ClientInitialAccessCreatePresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsInitialAccessPostExecute(r) +} + +/* +AdminRealmsRealmClientsInitialAccessPost Create a new initial access token. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsInitialAccessPostRequest +*/ +func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientsInitialAccessPostRequest { + return ApiAdminRealmsRealmClientsInitialAccessPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return ClientInitialAccessCreatePresentation +func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessPostExecute(r ApiAdminRealmsRealmClientsInitialAccessPostRequest) (*ClientInitialAccessCreatePresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientInitialAccessCreatePresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientInitialAccessAPIService.AdminRealmsRealmClientsInitialAccessPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients-initial-access" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.clientInitialAccessCreatePresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_client_registration_policy.go b/api_client_registration_policy.go new file mode 100644 index 0000000..b18d88d --- /dev/null +++ b/api_client_registration_policy.go @@ -0,0 +1,125 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ClientRegistrationPolicyAPIService ClientRegistrationPolicyAPI service +type ClientRegistrationPolicyAPIService service + +type ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest struct { + ctx context.Context + ApiService *ClientRegistrationPolicyAPIService + realm string +} + +func (r ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest) Execute() ([]ComponentTypeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientRegistrationPolicyProvidersGetExecute(r) +} + +/* +AdminRealmsRealmClientRegistrationPolicyProvidersGet Base path for retrieve providers with the configProperties properly filled + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest +*/ +func (a *ClientRegistrationPolicyAPIService) AdminRealmsRealmClientRegistrationPolicyProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest { + return ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ComponentTypeRepresentation +func (a *ClientRegistrationPolicyAPIService) AdminRealmsRealmClientRegistrationPolicyProvidersGetExecute(r ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest) ([]ComponentTypeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ComponentTypeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRegistrationPolicyAPIService.AdminRealmsRealmClientRegistrationPolicyProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-registration-policy/providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_client_role_mappings.go b/api_client_role_mappings.go new file mode 100644 index 0000000..c9c3fb1 --- /dev/null +++ b/api_client_role_mappings.go @@ -0,0 +1,1133 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ClientRoleMappingsAPIService ClientRoleMappingsAPI service +type ClientRoleMappingsAPIService service + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet Get available client-level roles that can be mapped to the user or group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet Get effective client-level role mappings This recurses any composite roles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete Delete client-level roles from user or group role mapping + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, + } +} + +// Execute executes the request +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet Get client-level role mappings for the user or group, and the app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost Add client-level roles to the user or group role mapping + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, + } +} + +// Execute executes the request +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet Get available client-level roles that can be mapped to the user or group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet Get effective client-level role mappings This recurses any composite roles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete Delete client-level roles from user or group role mapping + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, + } +} + +// Execute executes the request +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet Get client-level role mappings for the user or group, and the app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest struct { + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost Add client-level roles to the user or group role mapping + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest +*/ +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, + } +} + +// Execute executes the request +func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-id"+"}", url.PathEscape(parameterValueToString(r.clientId, "clientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_client_scopes.go b/api_client_scopes.go new file mode 100644 index 0000000..a31750d --- /dev/null +++ b/api_client_scopes.go @@ -0,0 +1,1027 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ClientScopesAPIService ClientScopesAPI service +type ClientScopesAPIService service + +type ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdDelete Delete the client scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesClientScopeIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest) Execute() (*ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdGet Get representation of the client scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return ClientScopeRepresentation +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest) (*ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesClientScopeIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string + clientScopeRepresentation *ClientScopeRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest) ClientScopeRepresentation(clientScopeRepresentation ClientScopeRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest { + r.clientScopeRepresentation = &clientScopeRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdPutExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdPut Update the client scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesClientScopeIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientScopeRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesGetRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string +} + +func (r ApiAdminRealmsRealmClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesGet Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientScopesGetRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientScopesGetRequest { + return ApiAdminRealmsRealmClientScopesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ClientScopeRepresentation +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesGetExecute(r ApiAdminRealmsRealmClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesPostRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeRepresentation *ClientScopeRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesPostRequest) ClientScopeRepresentation(clientScopeRepresentation ClientScopeRepresentation) ApiAdminRealmsRealmClientScopesPostRequest { + r.clientScopeRepresentation = &clientScopeRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesPostExecute(r) +} + +/* +AdminRealmsRealmClientScopesPost Create a new client scope Client Scope’s name must be unique! + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientScopesPostRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientScopesPostRequest { + return ApiAdminRealmsRealmClientScopesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesPostExecute(r ApiAdminRealmsRealmClientScopesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientScopeRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdDelete Delete the client scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesClientScopeIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest) Execute() (*ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdGet Get representation of the client scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return ClientScopeRepresentation +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest) (*ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesClientScopeIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string + clientScopeRepresentation *ClientScopeRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest) ClientScopeRepresentation(clientScopeRepresentation ClientScopeRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest { + r.clientScopeRepresentation = &clientScopeRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdPutExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdPut Update the client scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesClientScopeIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientScopeRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesGetRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string +} + +func (r ApiAdminRealmsRealmClientTemplatesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesGet Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTemplatesGetRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientTemplatesGetRequest { + return ApiAdminRealmsRealmClientTemplatesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ClientScopeRepresentation +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesGetExecute(r ApiAdminRealmsRealmClientTemplatesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesPostRequest struct { + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeRepresentation *ClientScopeRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesPostRequest) ClientScopeRepresentation(clientScopeRepresentation ClientScopeRepresentation) ApiAdminRealmsRealmClientTemplatesPostRequest { + r.clientScopeRepresentation = &clientScopeRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesPostExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesPost Create a new client scope Client Scope’s name must be unique! + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTemplatesPostRequest +*/ +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientTemplatesPostRequest { + return ApiAdminRealmsRealmClientTemplatesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesPostExecute(r ApiAdminRealmsRealmClientTemplatesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientScopeRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_clients.go b/api_clients.go new file mode 100644 index 0000000..e5f8ec0 --- /dev/null +++ b/api_clients.go @@ -0,0 +1,3745 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ClientsAPIService ClientsAPI service +type ClientsAPIService service + +type ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest) Execute() (*CredentialRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidClientSecretGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidClientSecretGet Get the client secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest { + return ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return CredentialRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretGetExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest) (*CredentialRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/client-secret" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest) Execute() (*CredentialRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidClientSecretPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidClientSecretPost Generate a new secret for the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest { + return ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return CredentialRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretPostExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest) (*CredentialRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/client-secret" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete Invalidate the rotated secret for the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest) Execute() (*CredentialRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidClientSecretRotatedGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidClientSecretRotatedGet Get the rotated client secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest { + return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return CredentialRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedGetExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest) (*CredentialRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete Method for AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut Method for AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest { + return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidDefaultClientScopesGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidDefaultClientScopesGet Get default client scopes. Only name and ids are returned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest { + return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []ClientScopeRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesGetExecute(r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/default-client-scopes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidDeleteRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidDelete Delete the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidDeleteRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDelete(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + scope *string + userId *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest) UserId(userId string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest { + r.userId = &userId + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest) Execute() (*AccessToken, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet Create JSON with payload of example access token + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest { + return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return AccessToken +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest) (*AccessToken, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccessToken + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-access-token" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + scope *string + userId *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest) UserId(userId string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest { + r.userId = &userId + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest) Execute() (*IDToken, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet Create JSON with payload of example id token + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest { + return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return IDToken +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest) (*IDToken, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IDToken + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-id-token" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + scope *string + userId *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest) UserId(userId string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest { + r.userId = &userId + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet Create JSON with payload of example user info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest { + return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return map[string]interface{} +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-userinfo" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + scope *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest) Execute() ([]ProtocolMapperEvaluationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet Return list of all protocol mappers, which will be used when generating tokens issued for particular client. + +This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest { + return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []ProtocolMapperEvaluationRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest) ([]ProtocolMapperEvaluationRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperEvaluationRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/protocol-mappers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + roleContainerId string + scope *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. + +This contains scope mappings, which this client has directly, as well as scope mappings, which are granted to all client scopes, which are linked with this client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleContainerId either realm name OR client UUID + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(ctx context.Context, realm string, clientUuid string, roleContainerId string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest { + return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleContainerId: roleContainerId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"roleContainerId"+"}", url.PathEscape(parameterValueToString(r.roleContainerId, "roleContainerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + roleContainerId string + scope *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him. + +Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleContainerId either realm name OR client UUID + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(ctx context.Context, realm string, clientUuid string, roleContainerId string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest { + return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleContainerId: roleContainerId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"roleContainerId"+"}", url.PathEscape(parameterValueToString(r.roleContainerId, "roleContainerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidGetRequest) Execute() (*ClientRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidGet Get representation of the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidGetRequest { + return ApiAdminRealmsRealmClientsClientUuidGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ClientRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidGetExecute(r ApiAdminRealmsRealmClientsClientUuidGetRequest) (*ClientRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + providerId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet Method for AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param providerId + @return ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet(ctx context.Context, realm string, clientUuid string, providerId string) ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest { + return ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + providerId: providerId, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/installation/providers/{providerId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", url.PathEscape(parameterValueToString(r.providerId, "providerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidManagementPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidManagementPermissionsGet Return object stating whether client Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidManagementPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + managementPermissionReference *ManagementPermissionReference +} + +func (r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest) ManagementPermissionReference(managementPermissionReference ManagementPermissionReference) ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest { + r.managementPermissionReference = &managementPermissionReference + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidManagementPermissionsPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidManagementPermissionsPut Return object stating whether client Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsPut(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest { + return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsPutExecute(r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidManagementPermissionsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.managementPermissionReference + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + node string +} + +func (r ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidNodesNodeDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidNodesNodeDelete Unregister a cluster node from the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param node + @return ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesNodeDelete(ctx context.Context, realm string, clientUuid string, node string) ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + node: node, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesNodeDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidNodesNodeDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/nodes/{node}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"node"+"}", url.PathEscape(parameterValueToString(r.node, "node")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidNodesPostRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + requestBody *map[string]string +} + +func (r ApiAdminRealmsRealmClientsClientUuidNodesPostRequest) RequestBody(requestBody map[string]string) ApiAdminRealmsRealmClientsClientUuidNodesPostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidNodesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidNodesPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidNodesPost Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidNodesPostRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidNodesPostRequest { + return ApiAdminRealmsRealmClientsClientUuidNodesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesPostExecute(r ApiAdminRealmsRealmClientsClientUuidNodesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidNodesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/nodes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest) Execute() (map[string]int64, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidOfflineSessionCountGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidOfflineSessionCountGet Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionCountGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest { + return ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return map[string]int64 +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionCountGetExecute(r ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest) (map[string]int64, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]int64 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/offline-session-count" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + first *int32 + max *int32 +} + +// Paging offset +func (r ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest { + r.first = &first + return r +} + +// Maximum results size (defaults to 100) +func (r ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest) Execute() ([]UserSessionRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidOfflineSessionsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidOfflineSessionsGet Get offline sessions for client Returns a list of offline user sessions associated with this client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []UserSessionRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest) ([]UserSessionRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserSessionRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOfflineSessionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/offline-sessions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete Method for AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut Method for AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest { + return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidOptionalClientScopesGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidOptionalClientScopesGet Get optional client scopes. Only name and ids are returned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest { + return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []ClientScopeRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesGetExecute(r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest) Execute() (*GlobalRequestResult, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidPushRevocationPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidPushRevocationPost Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPushRevocationPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest { + return ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return GlobalRequestResult +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPushRevocationPostExecute(r ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest) (*GlobalRequestResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidPushRevocationPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/push-revocation" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidPutRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + clientRepresentation *ClientRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidPutRequest) ClientRepresentation(clientRepresentation ClientRepresentation) ApiAdminRealmsRealmClientsClientUuidPutRequest { + r.clientRepresentation = &clientRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidPut Update the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidPutRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPut(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidPutRequest { + return ApiAdminRealmsRealmClientsClientUuidPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPutExecute(r ApiAdminRealmsRealmClientsClientUuidPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest) Execute() (*ClientRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost Generate a new registration access token for the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest { + return ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ClientRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostExecute(r ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest) (*ClientRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/registration-access-token" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest) Execute() (*UserRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidServiceAccountUserGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidServiceAccountUserGet Get a user dedicated to the service account + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidServiceAccountUserGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest { + return ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return UserRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidServiceAccountUserGetExecute(r ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest) (*UserRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidServiceAccountUserGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/service-account-user" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest) Execute() (map[string]int64, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidSessionCountGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidSessionCountGet Get application session count Returns a number of user sessions associated with this client { \"count\": number } + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidSessionCountGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest { + return ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return map[string]int64 +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidSessionCountGetExecute(r ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest) (map[string]int64, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]int64 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidSessionCountGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/session-count" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest) Execute() (*GlobalRequestResult, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidTestNodesAvailableGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidTestNodesAvailableGet Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidTestNodesAvailableGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest { + return ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return GlobalRequestResult +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidTestNodesAvailableGetExecute(r ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest) (*GlobalRequestResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/test-nodes-available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string + first *int32 + max *int32 +} + +// Paging offset +func (r ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest { + r.first = &first + return r +} + +// Maximum results size (defaults to 100) +func (r ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest) Execute() ([]UserSessionRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidUserSessionsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidUserSessionsGet Get user sessions for client Returns a list of user sessions associated with this client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidUserSessionsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []UserSessionRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidUserSessionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest) ([]UserSessionRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserSessionRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidUserSessionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/user-sessions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsGetRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientId *string + first *int32 + max *int32 + q *string + search *bool + viewableOnly *bool +} + +// filter by clientId +func (r ApiAdminRealmsRealmClientsGetRequest) ClientId(clientId string) ApiAdminRealmsRealmClientsGetRequest { + r.clientId = &clientId + return r +} + +// the first result +func (r ApiAdminRealmsRealmClientsGetRequest) First(first int32) ApiAdminRealmsRealmClientsGetRequest { + r.first = &first + return r +} + +// the max results to return +func (r ApiAdminRealmsRealmClientsGetRequest) Max(max int32) ApiAdminRealmsRealmClientsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsGetRequest) Q(q string) ApiAdminRealmsRealmClientsGetRequest { + r.q = &q + return r +} + +// whether this is a search query or a getClientById query +func (r ApiAdminRealmsRealmClientsGetRequest) Search(search bool) ApiAdminRealmsRealmClientsGetRequest { + r.search = &search + return r +} + +// filter clients that cannot be viewed in full by admin +func (r ApiAdminRealmsRealmClientsGetRequest) ViewableOnly(viewableOnly bool) ApiAdminRealmsRealmClientsGetRequest { + r.viewableOnly = &viewableOnly + return r +} + +func (r ApiAdminRealmsRealmClientsGetRequest) Execute() ([]ClientRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsGetExecute(r) +} + +/* +AdminRealmsRealmClientsGet Get clients belonging to the realm. + +If a client can’t be retrieved from the storage due to a problem with the underlying storage, it is silently removed from the returned list. This ensures that concurrent modifications to the list don’t prevent callers from retrieving this list. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsGetRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientsGetRequest { + return ApiAdminRealmsRealmClientsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ClientRepresentation +func (a *ClientsAPIService) AdminRealmsRealmClientsGetExecute(r ApiAdminRealmsRealmClientsGetRequest) ([]ClientRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.clientId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "clientId", r.clientId, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } else { + var defaultValue bool = false + r.search = &defaultValue + } + if r.viewableOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "viewableOnly", r.viewableOnly, "form", "") + } else { + var defaultValue bool = false + r.viewableOnly = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsPostRequest struct { + ctx context.Context + ApiService *ClientsAPIService + realm string + clientRepresentation *ClientRepresentation +} + +func (r ApiAdminRealmsRealmClientsPostRequest) ClientRepresentation(clientRepresentation ClientRepresentation) ApiAdminRealmsRealmClientsPostRequest { + r.clientRepresentation = &clientRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsPostExecute(r) +} + +/* +AdminRealmsRealmClientsPost Create a new client Client’s client_id must be unique! + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsPostRequest +*/ +func (a *ClientsAPIService) AdminRealmsRealmClientsPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientsPostRequest { + return ApiAdminRealmsRealmClientsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *ClientsAPIService) AdminRealmsRealmClientsPostExecute(r ApiAdminRealmsRealmClientsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_component.go b/api_component.go new file mode 100644 index 0000000..466610e --- /dev/null +++ b/api_component.go @@ -0,0 +1,667 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ComponentAPIService ComponentAPI service +type ComponentAPIService service + +type ApiAdminRealmsRealmComponentsGetRequest struct { + ctx context.Context + ApiService *ComponentAPIService + realm string + name *string + parent *string + type_ *string +} + +func (r ApiAdminRealmsRealmComponentsGetRequest) Name(name string) ApiAdminRealmsRealmComponentsGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmComponentsGetRequest) Parent(parent string) ApiAdminRealmsRealmComponentsGetRequest { + r.parent = &parent + return r +} + +func (r ApiAdminRealmsRealmComponentsGetRequest) Type_(type_ string) ApiAdminRealmsRealmComponentsGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmComponentsGetRequest) Execute() ([]ComponentRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmComponentsGetExecute(r) +} + +/* +AdminRealmsRealmComponentsGet Method for AdminRealmsRealmComponentsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmComponentsGetRequest +*/ +func (a *ComponentAPIService) AdminRealmsRealmComponentsGet(ctx context.Context, realm string) ApiAdminRealmsRealmComponentsGetRequest { + return ApiAdminRealmsRealmComponentsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ComponentRepresentation +func (a *ComponentAPIService) AdminRealmsRealmComponentsGetExecute(r ApiAdminRealmsRealmComponentsGetRequest) ([]ComponentRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ComponentRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/components" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.parent != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", r.parent, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmComponentsIdDeleteRequest struct { + ctx context.Context + ApiService *ComponentAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmComponentsIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmComponentsIdDeleteExecute(r) +} + +/* +AdminRealmsRealmComponentsIdDelete Method for AdminRealmsRealmComponentsIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdDeleteRequest +*/ +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdDeleteRequest { + return ApiAdminRealmsRealmComponentsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdDeleteExecute(r ApiAdminRealmsRealmComponentsIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/components/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmComponentsIdGetRequest struct { + ctx context.Context + ApiService *ComponentAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmComponentsIdGetRequest) Execute() (*ComponentRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmComponentsIdGetExecute(r) +} + +/* +AdminRealmsRealmComponentsIdGet Method for AdminRealmsRealmComponentsIdGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdGetRequest +*/ +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdGetRequest { + return ApiAdminRealmsRealmComponentsIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return ComponentRepresentation +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdGetExecute(r ApiAdminRealmsRealmComponentsIdGetRequest) (*ComponentRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComponentRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/components/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmComponentsIdPutRequest struct { + ctx context.Context + ApiService *ComponentAPIService + realm string + id string + componentRepresentation *ComponentRepresentation +} + +func (r ApiAdminRealmsRealmComponentsIdPutRequest) ComponentRepresentation(componentRepresentation ComponentRepresentation) ApiAdminRealmsRealmComponentsIdPutRequest { + r.componentRepresentation = &componentRepresentation + return r +} + +func (r ApiAdminRealmsRealmComponentsIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmComponentsIdPutExecute(r) +} + +/* +AdminRealmsRealmComponentsIdPut Method for AdminRealmsRealmComponentsIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdPutRequest +*/ +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdPutRequest { + return ApiAdminRealmsRealmComponentsIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdPutExecute(r ApiAdminRealmsRealmComponentsIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/components/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.componentRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest struct { + ctx context.Context + ApiService *ComponentAPIService + realm string + id string + type_ *string +} + +func (r ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest) Type_(type_ string) ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest) Execute() ([]ComponentTypeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmComponentsIdSubComponentTypesGetExecute(r) +} + +/* +AdminRealmsRealmComponentsIdSubComponentTypesGet List of subcomponent types that are available to configure for a particular parent component. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest +*/ +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdSubComponentTypesGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest { + return ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return []ComponentTypeRepresentation +func (a *ComponentAPIService) AdminRealmsRealmComponentsIdSubComponentTypesGetExecute(r ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest) ([]ComponentTypeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ComponentTypeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdSubComponentTypesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/components/{id}/sub-component-types" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + 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.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmComponentsPostRequest struct { + ctx context.Context + ApiService *ComponentAPIService + realm string + componentRepresentation *ComponentRepresentation +} + +func (r ApiAdminRealmsRealmComponentsPostRequest) ComponentRepresentation(componentRepresentation ComponentRepresentation) ApiAdminRealmsRealmComponentsPostRequest { + r.componentRepresentation = &componentRepresentation + return r +} + +func (r ApiAdminRealmsRealmComponentsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmComponentsPostExecute(r) +} + +/* +AdminRealmsRealmComponentsPost Method for AdminRealmsRealmComponentsPost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmComponentsPostRequest +*/ +func (a *ComponentAPIService) AdminRealmsRealmComponentsPost(ctx context.Context, realm string) ApiAdminRealmsRealmComponentsPostRequest { + return ApiAdminRealmsRealmComponentsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *ComponentAPIService) AdminRealmsRealmComponentsPostExecute(r ApiAdminRealmsRealmComponentsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/components" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.componentRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_default.go b/api_default.go new file mode 100644 index 0000000..ecc1ec7 --- /dev/null +++ b/api_default.go @@ -0,0 +1,4465 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest) Execute() (*ResourceServerRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ResourceServerRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest) (*ResourceServerRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceServerRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceServerRepresentation *ResourceServerRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest) ResourceServerRepresentation(resourceServerRepresentation ResourceServerRepresentation) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest { + r.resourceServerRepresentation = &resourceServerRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/import" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceServerRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + policyEvaluationRequest *PolicyEvaluationRequest +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest) PolicyEvaluationRequest(policyEvaluationRequest PolicyEvaluationRequest) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest { + r.policyEvaluationRequest = &policyEvaluationRequest + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest) Execute() (*PolicyEvaluationResponse, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return PolicyEvaluationResponse +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest) (*PolicyEvaluationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PolicyEvaluationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.policyEvaluationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + fields *string + first *int32 + max *int32 + name *string + owner *string + permission *bool + policyId *string + resource *string + scope *string + type_ *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.fields = &fields + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Permission(permission bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.permission = &permission + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) PolicyId(policyId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.policyId = &policyId + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Resource(resource string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.resource = &resource + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Execute() ([]AbstractPolicyRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []AbstractPolicyRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) ([]AbstractPolicyRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AbstractPolicyRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.permission != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "permission", r.permission, "form", "") + } + if r.policyId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "policyId", r.policyId, "form", "") + } + if r.resource != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "resource", r.resource, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + body *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest) Body(body string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest { + r.body = &body + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest) Execute() ([]PolicyProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []PolicyProviderRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest) ([]PolicyProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + fields *string + name *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest { + r.fields = &fields + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest) Execute() (*AbstractPolicyRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return AbstractPolicyRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest) (*AbstractPolicyRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AbstractPolicyRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/search" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + policyEvaluationRequest *PolicyEvaluationRequest +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest) PolicyEvaluationRequest(policyEvaluationRequest PolicyEvaluationRequest) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest { + r.policyEvaluationRequest = &policyEvaluationRequest + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest) Execute() (*PolicyEvaluationResponse, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return PolicyEvaluationResponse +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest) (*PolicyEvaluationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PolicyEvaluationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.policyEvaluationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + fields *string + first *int32 + max *int32 + name *string + owner *string + permission *bool + policyId *string + resource *string + scope *string + type_ *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.fields = &fields + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Permission(permission bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.permission = &permission + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) PolicyId(policyId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.policyId = &policyId + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Resource(resource string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.resource = &resource + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Execute() ([]AbstractPolicyRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []AbstractPolicyRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) ([]AbstractPolicyRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AbstractPolicyRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.permission != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "permission", r.permission, "form", "") + } + if r.policyId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "policyId", r.policyId, "form", "") + } + if r.resource != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "resource", r.resource, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + body *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest) Body(body string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest { + r.body = &body + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest) Execute() ([]PolicyProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []PolicyProviderRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest) ([]PolicyProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + fields *string + name *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest { + r.fields = &fields + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest) Execute() (*AbstractPolicyRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return AbstractPolicyRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest) (*AbstractPolicyRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AbstractPolicyRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/search" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceServerRepresentation *ResourceServerRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest) ResourceServerRepresentation(resourceServerRepresentation ResourceServerRepresentation) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest { + r.resourceServerRepresentation = &resourceServerRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerPut Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPut(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPutExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceServerRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Execute() ([]ResourceRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []ResourceRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) ([]ResourceRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ResourceRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string + resourceRepresentation *ResourceRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) ResourceRepresentation(resourceRepresentation ResourceRepresentation) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + r.resourceRepresentation = &resourceRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) Execute() (*ResourceRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ResourceRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) (*ResourceRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // 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 + } + // body params + localVarPostBody = r.resourceRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + resourceId: resourceId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/attributes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"resource-id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + resourceId: resourceId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"resource-id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Execute() (*ResourceRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + resourceId: resourceId, + } +} + +// Execute executes the request +// +// @return ResourceRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) (*ResourceRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"resource-id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Execute() ([]PolicyRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + resourceId: resourceId, + } +} + +// Execute executes the request +// +// @return []PolicyRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) ([]PolicyRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"resource-id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string + resourceRepresentation *ResourceRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) ResourceRepresentation(resourceRepresentation ResourceRepresentation) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + r.resourceRepresentation = &resourceRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + resourceId: resourceId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"resource-id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Execute() ([]ScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + resourceId: resourceId, + } +} + +// Execute executes the request +// +// @return []ScopeRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) ([]ScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/scopes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"resource-id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + owner *string + scope *string + type_ *string + uri *string + name *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.id = &id + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Deep(deep bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.deep = &deep + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) ExactName(exactName bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.exactName = &exactName + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) MatchingUri(matchingUri bool) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.matchingUri = &matchingUri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Owner(owner string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.owner = &owner + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.scope = &scope + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Type_(type_ string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.type_ = &type_ + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Uri(uri string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.uri = &uri + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Execute() (*ResourceRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ResourceRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) (*ResourceRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/search" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "_id", r.id, "form", "") + } + if r.deep != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deep", r.deep, "form", "") + } + if r.exactName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exactName", r.exactName, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.matchingUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "matchingUri", r.matchingUri, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.owner != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "form", "") + } + if r.scope != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.uri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uri", r.uri, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + first *int32 + max *int32 + name *string + scopeId *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) ScopeId(scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest { + r.scopeId = &scopeId + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) Execute() ([]ScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []ScopeRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) ([]ScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.scopeId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scopeId", r.scopeId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + scopeRepresentation *ScopeRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest) ScopeRepresentation(scopeRepresentation ScopeRepresentation) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest { + r.scopeRepresentation = &scopeRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.scopeRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + scopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + scopeId: scopeId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"scope-id"+"}", url.PathEscape(parameterValueToString(r.scopeId, "scopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + scopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest) Execute() (*ScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + scopeId: scopeId, + } +} + +// Execute executes the request +// +// @return ScopeRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest) (*ScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"scope-id"+"}", url.PathEscape(parameterValueToString(r.scopeId, "scopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + scopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest) Execute() ([]PolicyRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + scopeId: scopeId, + } +} + +// Execute executes the request +// +// @return []PolicyRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest) ([]PolicyRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"scope-id"+"}", url.PathEscape(parameterValueToString(r.scopeId, "scopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + scopeId string + scopeRepresentation *ScopeRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest) ScopeRepresentation(scopeRepresentation ScopeRepresentation) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest { + r.scopeRepresentation = &scopeRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + scopeId: scopeId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"scope-id"+"}", url.PathEscape(parameterValueToString(r.scopeId, "scopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.scopeRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + scopeId string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest) Execute() ([]ResourceRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + scopeId: scopeId, + } +} + +// Execute executes the request +// +// @return []ResourceRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest) ([]ResourceRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ResourceRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/resources" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"scope-id"+"}", url.PathEscape(parameterValueToString(r.scopeId, "scopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + name *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest { + r.name = &name + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest) Execute() ([]ScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []ScopeRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest) ([]ScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest struct { + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest) Execute() (*ResourceServerRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest +*/ +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return ResourceServerRepresentation +func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest) (*ResourceServerRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceServerRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_groups.go b/api_groups.go new file mode 100644 index 0000000..f06eac1 --- /dev/null +++ b/api_groups.go @@ -0,0 +1,1341 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// GroupsAPIService GroupsAPI service +type GroupsAPIService service + +type ApiAdminRealmsRealmGroupsCountGetRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + search *string + top *bool +} + +func (r ApiAdminRealmsRealmGroupsCountGetRequest) Search(search string) ApiAdminRealmsRealmGroupsCountGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmGroupsCountGetRequest) Top(top bool) ApiAdminRealmsRealmGroupsCountGetRequest { + r.top = &top + return r +} + +func (r ApiAdminRealmsRealmGroupsCountGetRequest) Execute() (map[string]int64, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsCountGetExecute(r) +} + +/* +AdminRealmsRealmGroupsCountGet Returns the groups counts. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGroupsCountGetRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsCountGet(ctx context.Context, realm string) ApiAdminRealmsRealmGroupsCountGetRequest { + return ApiAdminRealmsRealmGroupsCountGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return map[string]int64 +func (a *GroupsAPIService) AdminRealmsRealmGroupsCountGetExecute(r ApiAdminRealmsRealmGroupsCountGetRequest) (map[string]int64, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]int64 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsCountGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/count" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.top != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "top", r.top, "form", "") + } else { + var defaultValue bool = false + r.top = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGetRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + briefRepresentation *bool + exact *bool + first *int32 + max *int32 + populateHierarchy *bool + q *string + search *string +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmGroupsGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) Exact(exact bool) ApiAdminRealmsRealmGroupsGetRequest { + r.exact = &exact + return r +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) First(first int32) ApiAdminRealmsRealmGroupsGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) Max(max int32) ApiAdminRealmsRealmGroupsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) PopulateHierarchy(populateHierarchy bool) ApiAdminRealmsRealmGroupsGetRequest { + r.populateHierarchy = &populateHierarchy + return r +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) Q(q string) ApiAdminRealmsRealmGroupsGetRequest { + r.q = &q + return r +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) Search(search string) ApiAdminRealmsRealmGroupsGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmGroupsGetRequest) Execute() ([]GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGet Get group hierarchy. Only name and ids are returned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGroupsGetRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGet(ctx context.Context, realm string) ApiAdminRealmsRealmGroupsGetRequest { + return ApiAdminRealmsRealmGroupsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []GroupRepresentation +func (a *GroupsAPIService) AdminRealmsRealmGroupsGetExecute(r ApiAdminRealmsRealmGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + if r.exact != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exact", r.exact, "form", "") + } else { + var defaultValue bool = false + r.exact = &defaultValue + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.populateHierarchy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "populateHierarchy", r.populateHierarchy, "form", "") + } else { + var defaultValue bool = true + r.populateHierarchy = &defaultValue + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string + briefRepresentation *bool + exact *bool + first *int32 + max *int32 + search *string +} + +// Boolean which defines whether brief groups representations are returned or not (default: false) +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// Boolean which defines whether the params \"search\" must match exactly or not +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) Exact(exact bool) ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest { + r.exact = &exact + return r +} + +// The position of the first result to be returned (pagination offset). +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) First(first int32) ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest { + r.first = &first + return r +} + +// The maximum number of results that are to be returned. Defaults to 10 +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) Max(max int32) ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest { + r.max = &max + return r +} + +// A String representing either an exact group name or a partial name +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) Search(search string) ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) Execute() ([]GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdChildrenGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdChildrenGet Return a paginated list of subgroups that have a parent group corresponding to the group on the URL + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return []GroupRepresentation +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenGetExecute(r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) ([]GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdChildrenGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/children" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = false + r.briefRepresentation = &defaultValue + } + if r.exact != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exact", r.exact, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string + groupRepresentation *GroupRepresentation +} + +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest) GroupRepresentation(groupRepresentation GroupRepresentation) ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest { + r.groupRepresentation = &groupRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdChildrenPostExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdChildrenPost Set or create child. + +This will just set the parent if it exists. Create it and set the parent if the group doesn’t exist. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenPost(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest { + return ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenPostExecute(r ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdChildrenPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/children" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.groupRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdDeleteRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdDeleteExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdDelete Method for AdminRealmsRealmGroupsGroupIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdDeleteRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdDelete(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdDeleteRequest { + return ApiAdminRealmsRealmGroupsGroupIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdDeleteExecute(r ApiAdminRealmsRealmGroupsGroupIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdGetRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdGetRequest) Execute() (*GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdGet Method for AdminRealmsRealmGroupsGroupIdGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdGetRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return GroupRepresentation +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdGetExecute(r ApiAdminRealmsRealmGroupsGroupIdGetRequest) (*GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdManagementPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdManagementPermissionsGet Return object stating whether client Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsGetExecute(r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdManagementPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string + managementPermissionReference *ManagementPermissionReference +} + +func (r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest) ManagementPermissionReference(managementPermissionReference ManagementPermissionReference) ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest { + r.managementPermissionReference = &managementPermissionReference + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdManagementPermissionsPutExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdManagementPermissionsPut Return object stating whether client Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsPut(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest { + return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsPutExecute(r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdManagementPermissionsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.managementPermissionReference + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string + briefRepresentation *bool + first *int32 + max *int32 +} + +// Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) +func (r ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// Pagination offset +func (r ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest) First(first int32) ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest { + r.first = &first + return r +} + +// Maximum results size (defaults to 100) +func (r ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest) Max(max int32) ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest) Execute() ([]UserRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdMembersGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdMembersGet Get users Returns a stream of users, filtered according to query parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdMembersGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return []UserRepresentation +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdMembersGetExecute(r ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest) ([]UserRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdMembersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/members" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdPutRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string + groupRepresentation *GroupRepresentation +} + +func (r ApiAdminRealmsRealmGroupsGroupIdPutRequest) GroupRepresentation(groupRepresentation GroupRepresentation) ApiAdminRealmsRealmGroupsGroupIdPutRequest { + r.groupRepresentation = &groupRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdPutExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdPut Update group, ignores subgroups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdPutRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdPut(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdPutRequest { + return ApiAdminRealmsRealmGroupsGroupIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdPutExecute(r ApiAdminRealmsRealmGroupsGroupIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.groupRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsPostRequest struct { + ctx context.Context + ApiService *GroupsAPIService + realm string + groupRepresentation *GroupRepresentation +} + +func (r ApiAdminRealmsRealmGroupsPostRequest) GroupRepresentation(groupRepresentation GroupRepresentation) ApiAdminRealmsRealmGroupsPostRequest { + r.groupRepresentation = &groupRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsPostExecute(r) +} + +/* +AdminRealmsRealmGroupsPost create or add a top level realm groupSet or create child. + +This will update the group and set the parent if it exists. Create it and set the parent if the group doesn’t exist. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGroupsPostRequest +*/ +func (a *GroupsAPIService) AdminRealmsRealmGroupsPost(ctx context.Context, realm string) ApiAdminRealmsRealmGroupsPostRequest { + return ApiAdminRealmsRealmGroupsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *GroupsAPIService) AdminRealmsRealmGroupsPostExecute(r ApiAdminRealmsRealmGroupsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.groupRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_identity_providers.go b/api_identity_providers.go new file mode 100644 index 0000000..0cbb9ac --- /dev/null +++ b/api_identity_providers.go @@ -0,0 +1,1851 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// IdentityProvidersAPIService IdentityProvidersAPI service +type IdentityProvidersAPIService service + +type ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + requestBody *map[string]interface{} +} + +func (r ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest) RequestBody(requestBody map[string]interface{}) ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest) Execute() (map[string]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderImportConfigPostExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderImportConfigPost Import identity provider from JSON body + +Import identity provider from uploaded JSON file + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderImportConfigPost(ctx context.Context, realm string) ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest { + return ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return map[string]string +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderImportConfigPostExecute(r ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest) (map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderImportConfigPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/import-config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasDeleteExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasDelete Delete the identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasDelete(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasDeleteExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + format *string +} + +// Format to use +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest) Format(format string) ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest { + r.format = &format + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasExportGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasExportGet Export public broker configuration for identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasExportGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasExportGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasExportGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/export" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.format != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest) Execute() (*IdentityProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasGet Get the identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return IdentityProviderRepresentation +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest) (*IdentityProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet Return object stating whether client Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + managementPermissionReference *ManagementPermissionReference +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest) ManagementPermissionReference(managementPermissionReference ManagementPermissionReference) ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest { + r.managementPermissionReference = &managementPermissionReference + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut Return object stating whether client Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.managementPermissionReference + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest) Execute() (*map[string]IdentityProviderMapperTypeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet Get mapper types for identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return map[string]IdentityProviderMapperTypeRepresentation +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest) (*map[string]IdentityProviderMapperTypeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *map[string]IdentityProviderMapperTypeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest) Execute() ([]IdentityProviderMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasMappersGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasMappersGet Get mappers for identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return []IdentityProviderMapperRepresentation +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest) ([]IdentityProviderMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/mappers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + id string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete Delete a mapper for the identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @param id Mapper id + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete(ctx context.Context, realm string, alias string, id string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + id: id, + } +} + +// Execute executes the request +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + id string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest) Execute() (*IdentityProviderMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet Get mapper by id for the identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @param id + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet(ctx context.Context, realm string, alias string, id string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + id: id, + } +} + +// Execute executes the request +// +// @return IdentityProviderMapperRepresentation +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest) (*IdentityProviderMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + id string + identityProviderMapperRepresentation *IdentityProviderMapperRepresentation +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest) IdentityProviderMapperRepresentation(identityProviderMapperRepresentation IdentityProviderMapperRepresentation) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest { + r.identityProviderMapperRepresentation = &identityProviderMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut Update a mapper for the identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @param id Mapper id + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut(ctx context.Context, realm string, alias string, id string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + id: id, + } +} + +// Execute executes the request +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.identityProviderMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + identityProviderMapperRepresentation *IdentityProviderMapperRepresentation +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest) IdentityProviderMapperRepresentation(identityProviderMapperRepresentation IdentityProviderMapperRepresentation) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest { + r.identityProviderMapperRepresentation = &identityProviderMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasMappersPostExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasMappersPost Add a mapper to identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersPost(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersPostExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/mappers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.identityProviderMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + identityProviderRepresentation *IdentityProviderRepresentation +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest) IdentityProviderRepresentation(identityProviderRepresentation IdentityProviderRepresentation) ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest { + r.identityProviderRepresentation = &identityProviderRepresentation + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasPutExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasPut Update the identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasPutExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.identityProviderRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest) Execute() (bool, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet Reaload keys for the identity provider if the provider supports it, \"true\" is returned if reload was performed, \"false\" if not. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + alias: alias, + } +} + +// Execute executes the request +// +// @return bool +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest) (bool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue bool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + briefRepresentation *bool + first *int32 + max *int32 + realmOnly *bool + search *string +} + +// Boolean which defines whether brief representations are returned (default: false) +func (r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmIdentityProviderInstancesGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// Pagination offset +func (r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) First(first int32) ApiAdminRealmsRealmIdentityProviderInstancesGetRequest { + r.first = &first + return r +} + +// Maximum results size (defaults to 100) +func (r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) Max(max int32) ApiAdminRealmsRealmIdentityProviderInstancesGetRequest { + r.max = &max + return r +} + +// Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false) +func (r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) RealmOnly(realmOnly bool) ApiAdminRealmsRealmIdentityProviderInstancesGetRequest { + r.realmOnly = &realmOnly + return r +} + +// Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact (\"name\"). Default prefixed. +func (r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) Search(search string) ApiAdminRealmsRealmIdentityProviderInstancesGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) Execute() ([]IdentityProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesGet List identity providers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmIdentityProviderInstancesGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesGet(ctx context.Context, realm string) ApiAdminRealmsRealmIdentityProviderInstancesGetRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []IdentityProviderRepresentation +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) ([]IdentityProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.realmOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "realmOnly", r.realmOnly, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderInstancesPostRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + identityProviderRepresentation *IdentityProviderRepresentation +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesPostRequest) IdentityProviderRepresentation(identityProviderRepresentation IdentityProviderRepresentation) ApiAdminRealmsRealmIdentityProviderInstancesPostRequest { + r.identityProviderRepresentation = &identityProviderRepresentation + return r +} + +func (r ApiAdminRealmsRealmIdentityProviderInstancesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderInstancesPostExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderInstancesPost Create a new identity provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmIdentityProviderInstancesPostRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesPost(ctx context.Context, realm string) ApiAdminRealmsRealmIdentityProviderInstancesPostRequest { + return ApiAdminRealmsRealmIdentityProviderInstancesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesPostExecute(r ApiAdminRealmsRealmIdentityProviderInstancesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/instances" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.identityProviderRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest struct { + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + providerId string +} + +func (r ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmIdentityProviderProvidersProviderIdGetExecute(r) +} + +/* +AdminRealmsRealmIdentityProviderProvidersProviderIdGet Get the identity provider factory for that provider id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param providerId The provider id to get the factory + @return ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest +*/ +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderProvidersProviderIdGet(ctx context.Context, realm string, providerId string) ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest { + return ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + providerId: providerId, + } +} + +// Execute executes the request +// +// @return map[string]interface{} +func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderProvidersProviderIdGetExecute(r ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderProvidersProviderIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/identity-provider/providers/{provider_id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"provider_id"+"}", url.PathEscape(parameterValueToString(r.providerId, "providerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_key.go b/api_key.go new file mode 100644 index 0000000..b6eed19 --- /dev/null +++ b/api_key.go @@ -0,0 +1,125 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// KeyAPIService KeyAPI service +type KeyAPIService service + +type ApiAdminRealmsRealmKeysGetRequest struct { + ctx context.Context + ApiService *KeyAPIService + realm string +} + +func (r ApiAdminRealmsRealmKeysGetRequest) Execute() (*KeysMetadataRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmKeysGetExecute(r) +} + +/* +AdminRealmsRealmKeysGet Method for AdminRealmsRealmKeysGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmKeysGetRequest +*/ +func (a *KeyAPIService) AdminRealmsRealmKeysGet(ctx context.Context, realm string) ApiAdminRealmsRealmKeysGetRequest { + return ApiAdminRealmsRealmKeysGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return KeysMetadataRepresentation +func (a *KeyAPIService) AdminRealmsRealmKeysGetExecute(r ApiAdminRealmsRealmKeysGetRequest) (*KeysMetadataRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *KeysMetadataRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KeyAPIService.AdminRealmsRealmKeysGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/keys" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_organizations.go b/api_organizations.go new file mode 100644 index 0000000..041cf58 --- /dev/null +++ b/api_organizations.go @@ -0,0 +1,2007 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// OrganizationsAPIService OrganizationsAPI service +type OrganizationsAPIService service + +type ApiAdminRealmsRealmOrganizationsGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + exact *bool + first *int32 + max *int32 + q *string + search *string +} + +// Boolean which defines whether the param 'search' must match exactly or not +func (r ApiAdminRealmsRealmOrganizationsGetRequest) Exact(exact bool) ApiAdminRealmsRealmOrganizationsGetRequest { + r.exact = &exact + return r +} + +// The position of the first result to be processed (pagination offset) +func (r ApiAdminRealmsRealmOrganizationsGetRequest) First(first int32) ApiAdminRealmsRealmOrganizationsGetRequest { + r.first = &first + return r +} + +// The maximum number of results to be returned - defaults to 10 +func (r ApiAdminRealmsRealmOrganizationsGetRequest) Max(max int32) ApiAdminRealmsRealmOrganizationsGetRequest { + r.max = &max + return r +} + +// A query to search for custom attributes, in the format 'key1:value2 key2:value2' +func (r ApiAdminRealmsRealmOrganizationsGetRequest) Q(q string) ApiAdminRealmsRealmOrganizationsGetRequest { + r.q = &q + return r +} + +// A String representing either an organization name or domain +func (r ApiAdminRealmsRealmOrganizationsGetRequest) Search(search string) ApiAdminRealmsRealmOrganizationsGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmOrganizationsGetRequest) Execute() ([]OrganizationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsGet Returns a paginated list of organizations filtered according to the specified parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmOrganizationsGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsGet(ctx context.Context, realm string) ApiAdminRealmsRealmOrganizationsGetRequest { + return ApiAdminRealmsRealmOrganizationsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []OrganizationRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganizationRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.exact != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exact", r.exact, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdDeleteRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmOrganizationsIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdDeleteExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdDelete Deletes the organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdDeleteRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdDeleteRequest { + return ApiAdminRealmsRealmOrganizationsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdDeleteExecute(r ApiAdminRealmsRealmOrganizationsIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmOrganizationsIdGetRequest) Execute() (*OrganizationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdGet Returns the organization representation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdGetRequest { + return ApiAdminRealmsRealmOrganizationsIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return OrganizationRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdGetExecute(r ApiAdminRealmsRealmOrganizationsIdGetRequest) (*OrganizationRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + alias string +} + +func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete Removes the identity provider with the specified alias from the organization + +Breaks the association between the identity provider and the organization. The provider itself is not deleted. If no provider is found, or if it is not currently associated with the org, an error response is returned + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @param alias + @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete(ctx context.Context, realm string, id string, alias string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest { + return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + alias: alias, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + alias string +} + +func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest) Execute() (*IdentityProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet Returns the identity provider associated with the organization that has the specified alias + +Searches for an identity provider with the given alias. If one is found and is associated with the organization, it is returned. Otherwise, an error response with status NOT_FOUND is returned + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @param alias + @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet(ctx context.Context, realm string, id string, alias string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest { + return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + alias: alias, + } +} + +// Execute executes the request +// +// @return IdentityProviderRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest) (*IdentityProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers/{alias}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest) Execute() ([]IdentityProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdIdentityProvidersGet Returns all identity providers associated with the organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest { + return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return []IdentityProviderRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersGetExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest) ([]IdentityProviderRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + body *string +} + +func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest) Body(body string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest { + r.body = &body + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersPostExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdIdentityProvidersPost Adds the identity provider with the specified id to the organization + +Adds, or associates, an existing identity provider with the organization. If no identity provider is found, or if it is already associated with the organization, an error response is returned + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest { + return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersPostExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest) Execute() (int64, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersCountGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersCountGet Returns number of members in the organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersCountGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return int64 +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersCountGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest) (int64, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue int64 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersCountGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/count" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + exact *bool + first *int32 + max *int32 + search *string +} + +// Boolean which defines whether the param 'search' must match exactly or not +func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Exact(exact bool) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { + r.exact = &exact + return r +} + +// The position of the first result to be processed (pagination offset) +func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) First(first int32) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { + r.first = &first + return r +} + +// The maximum number of results to be returned. Defaults to 10 +func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Max(max int32) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { + r.max = &max + return r +} + +// A String representing either a member's username, e-mail, first name, or last name. +func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Search(search string) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Execute() ([]MemberRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersGet Returns a paginated list of organization members filtered according to the specified parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdMembersGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return []MemberRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) ([]MemberRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []MemberRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + 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.exact != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exact", r.exact, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + id2 *string +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest) Id2(id2 string) ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest { + r.id2 = &id2 + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost Invites an existing user to the organization, using the specified user id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostExecute(r ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/invite-existing-user" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.id2 != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "id", r.id2, "", "") + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + email *string + firstName *string + lastName *string +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) Email(email string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { + r.email = &email + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) FirstName(firstName string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { + r.firstName = &firstName + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) LastName(lastName string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { + r.lastName = &lastName + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersInviteUserPostExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersInviteUserPost Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. + +If the user with the given e-mail address exists, it sends an invitation link, otherwise it sends a registration link. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteUserPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteUserPostExecute(r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersInviteUserPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/invite-user" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.email != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "email", r.email, "", "") + } + if r.firstName != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "firstName", r.firstName, "", "") + } + if r.lastName != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "lastName", r.lastName, "", "") + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersPostRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + body *string +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersPostRequest) Body(body string) ApiAdminRealmsRealmOrganizationsIdMembersPostRequest { + r.body = &body + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersPostExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersPost Adds the user with the specified id as a member of the organization + +Adds, or associates, an existing user with the organization. If no user is found, or if it is already associated with the organization, an error response is returned + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdMembersPostRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersPostRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersPostExecute(r ApiAdminRealmsRealmOrganizationsIdMembersPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + userId string +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersUserIdDeleteExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersUserIdDelete Removes the user with the specified id from the organization + +Breaks the association between the user and organization. The user itself is deleted in case the membership is managed, otherwise the user is not deleted. If no user is found, or if they are not a member of the organization, an error response is returned + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @param userId + @return ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdDelete(ctx context.Context, realm string, id string, userId string) ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + userId: userId, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdDeleteExecute(r ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersUserIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/{userId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + userId string +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest) Execute() (*MemberRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersUserIdGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersUserIdGet Returns the member of the organization with the specified id + +Searches for auser with the given id. If one is found, and is currently a member of the organization, returns it. Otherwise,an error response with status NOT_FOUND is returned + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @param userId + @return ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdGet(ctx context.Context, realm string, id string, userId string) ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + userId: userId, + } +} + +// Execute executes the request +// +// @return MemberRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest) (*MemberRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MemberRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersUserIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/{userId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + userId string +} + +func (r ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest) Execute() ([]OrganizationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet Returns the organizations associated with the user that has the specified id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @param userId + @return ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet(ctx context.Context, realm string, id string, userId string) ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest { + return ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + userId: userId, + } +} + +// Execute executes the request +// +// @return []OrganizationRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganizationRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/{userId}/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsIdPutRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string + organizationRepresentation *OrganizationRepresentation +} + +func (r ApiAdminRealmsRealmOrganizationsIdPutRequest) OrganizationRepresentation(organizationRepresentation OrganizationRepresentation) ApiAdminRealmsRealmOrganizationsIdPutRequest { + r.organizationRepresentation = &organizationRepresentation + return r +} + +func (r ApiAdminRealmsRealmOrganizationsIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsIdPutExecute(r) +} + +/* +AdminRealmsRealmOrganizationsIdPut Updates the organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsIdPutRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdPutRequest { + return ApiAdminRealmsRealmOrganizationsIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdPutExecute(r ApiAdminRealmsRealmOrganizationsIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.organizationRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + id string +} + +func (r ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest) Execute() ([]OrganizationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsMembersIdOrganizationsGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsMembersIdOrganizationsGet Returns the organizations associated with the user that has the specified id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersIdOrganizationsGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest { + return ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + id: id, + } +} + +// Execute executes the request +// +// @return []OrganizationRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersIdOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganizationRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsMembersIdOrganizationsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/members/{id}/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsPostRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + organizationRepresentation *OrganizationRepresentation +} + +func (r ApiAdminRealmsRealmOrganizationsPostRequest) OrganizationRepresentation(organizationRepresentation OrganizationRepresentation) ApiAdminRealmsRealmOrganizationsPostRequest { + r.organizationRepresentation = &organizationRepresentation + return r +} + +func (r ApiAdminRealmsRealmOrganizationsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsPostExecute(r) +} + +/* +AdminRealmsRealmOrganizationsPost Creates a new organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmOrganizationsPostRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsPost(ctx context.Context, realm string) ApiAdminRealmsRealmOrganizationsPostRequest { + return ApiAdminRealmsRealmOrganizationsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsPostExecute(r ApiAdminRealmsRealmOrganizationsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.organizationRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_protocol_mappers.go b/api_protocol_mappers.go new file mode 100644 index 0000000..71345c9 --- /dev/null +++ b/api_protocol_mappers.go @@ -0,0 +1,2225 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ProtocolMappersAPIService ProtocolMappersAPI service +type ProtocolMappersAPIService service + +type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + protocolMapperRepresentation *[]ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest) ProtocolMapperRepresentation(protocolMapperRepresentation []ProtocolMapperRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost Create multiple mappers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet Get mappers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete Delete the mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + id: id, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest) Execute() (*ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet Get mapper by id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + id: id, + } +} + +// Execute executes the request +// +// @return ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest) (*ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string + protocolMapperRepresentation *ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest) ProtocolMapperRepresentation(protocolMapperRepresentation ProtocolMapperRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut Update the mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + id: id, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + protocolMapperRepresentation *ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest) ProtocolMapperRepresentation(protocolMapperRepresentation ProtocolMapperRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost Create a mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + protocol string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet Get mappers by name for a specific protocol + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param protocol + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet(ctx context.Context, realm string, clientScopeId string, protocol string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + protocol: protocol, + } +} + +// Execute executes the request +// +// @return []ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/protocol/{protocol}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"protocol"+"}", url.PathEscape(parameterValueToString(r.protocol, "protocol")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + protocolMapperRepresentation *[]ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest) ProtocolMapperRepresentation(protocolMapperRepresentation []ProtocolMapperRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost Create multiple mappers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/add-models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet Get mappers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete Delete the mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + id: id, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest) Execute() (*ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet Get mapper by id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + id: id, + } +} + +// Execute executes the request +// +// @return ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest) (*ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string + protocolMapperRepresentation *ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest) ProtocolMapperRepresentation(protocolMapperRepresentation ProtocolMapperRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut Update the mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + id: id, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + protocolMapperRepresentation *ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest) ProtocolMapperRepresentation(protocolMapperRepresentation ProtocolMapperRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost Create a mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + protocol string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet Get mappers by name for a specific protocol + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param protocol + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet(ctx context.Context, realm string, clientScopeId string, protocol string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + protocol: protocol, + } +} + +// Execute executes the request +// +// @return []ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/protocol/{protocol}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"protocol"+"}", url.PathEscape(parameterValueToString(r.protocol, "protocol")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string + protocolMapperRepresentation *[]ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest) ProtocolMapperRepresentation(protocolMapperRepresentation []ProtocolMapperRepresentation) ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost Create multiple mappers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest { + return ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/add-models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet Get mappers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsGetExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string + id string +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete Delete the mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param id Mapper id + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete(ctx context.Context, realm string, clientUuid string, id string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + id: id, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string + id string +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest) Execute() (*ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet Get mapper by id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param id Mapper id + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet(ctx context.Context, realm string, clientUuid string, id string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest { + return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + id: id, + } +} + +// Execute executes the request +// +// @return ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest) (*ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string + id string + protocolMapperRepresentation *ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest) ProtocolMapperRepresentation(protocolMapperRepresentation ProtocolMapperRepresentation) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut Update the mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param id Mapper id + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut(ctx context.Context, realm string, clientUuid string, id string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest { + return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + id: id, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string + protocolMapperRepresentation *ProtocolMapperRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest) ProtocolMapperRepresentation(protocolMapperRepresentation ProtocolMapperRepresentation) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest { + r.protocolMapperRepresentation = &protocolMapperRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost Create a mapper + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest { + return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsPostExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.protocolMapperRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest struct { + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string + protocol string +} + +func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet Get mappers by name for a specific protocol + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param protocol + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest +*/ +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet(ctx context.Context, realm string, clientUuid string, protocol string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest { + return ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + protocol: protocol, + } +} + +// Execute executes the request +// +// @return []ProtocolMapperRepresentation +func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/protocol/{protocol}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"protocol"+"}", url.PathEscape(parameterValueToString(r.protocol, "protocol")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_realms_admin.go b/api_realms_admin.go new file mode 100644 index 0000000..886a9d8 --- /dev/null +++ b/api_realms_admin.go @@ -0,0 +1,4789 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" + "reflect" + "strings" +) + +// RealmsAdminAPIService RealmsAdminAPI service +type RealmsAdminAPIService service + +type ApiAdminRealmsGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + briefRepresentation *bool +} + +func (r ApiAdminRealmsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsGetRequest) Execute() ([]RealmRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsGetExecute(r) +} + +/* +AdminRealmsGet Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminRealmsGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsGet(ctx context.Context) ApiAdminRealmsGetRequest { + return ApiAdminRealmsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []RealmRepresentation +func (a *RealmsAdminAPIService) AdminRealmsGetExecute(r ApiAdminRealmsGetRequest) ([]RealmRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RealmRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = false + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsPostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + body *os.File +} + +func (r ApiAdminRealmsPostRequest) Body(body *os.File) ApiAdminRealmsPostRequest { + r.body = body + return r +} + +func (r ApiAdminRealmsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsPostExecute(r) +} + +/* +AdminRealmsPost Import a realm. Imports a realm from a full representation of that realm. + +Realm name must be unique. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminRealmsPostRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsPost(ctx context.Context) ApiAdminRealmsPostRequest { + return ApiAdminRealmsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsPostExecute(r ApiAdminRealmsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAdminEventsDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmAdminEventsDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmAdminEventsDeleteExecute(r) +} + +/* +AdminRealmsRealmAdminEventsDelete Delete all admin events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAdminEventsDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsDelete(ctx context.Context, realm string) ApiAdminRealmsRealmAdminEventsDeleteRequest { + return ApiAdminRealmsRealmAdminEventsDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsDeleteExecute(r ApiAdminRealmsRealmAdminEventsDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmAdminEventsDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/admin-events" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmAdminEventsGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + authClient *string + authIpAddress *string + authRealm *string + authUser *string + dateFrom *string + dateTo *string + first *int32 + max *int32 + operationTypes *[]string + resourcePath *string + resourceTypes *[]string +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) AuthClient(authClient string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.authClient = &authClient + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) AuthIpAddress(authIpAddress string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.authIpAddress = &authIpAddress + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) AuthRealm(authRealm string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.authRealm = &authRealm + return r +} + +// user id +func (r ApiAdminRealmsRealmAdminEventsGetRequest) AuthUser(authUser string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.authUser = &authUser + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) DateFrom(dateFrom string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.dateFrom = &dateFrom + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) DateTo(dateTo string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.dateTo = &dateTo + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) First(first int32) ApiAdminRealmsRealmAdminEventsGetRequest { + r.first = &first + return r +} + +// Maximum results size (defaults to 100) +func (r ApiAdminRealmsRealmAdminEventsGetRequest) Max(max int32) ApiAdminRealmsRealmAdminEventsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) OperationTypes(operationTypes []string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.operationTypes = &operationTypes + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) ResourcePath(resourcePath string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.resourcePath = &resourcePath + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) ResourceTypes(resourceTypes []string) ApiAdminRealmsRealmAdminEventsGetRequest { + r.resourceTypes = &resourceTypes + return r +} + +func (r ApiAdminRealmsRealmAdminEventsGetRequest) Execute() ([]AdminEventRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmAdminEventsGetExecute(r) +} + +/* +AdminRealmsRealmAdminEventsGet Get admin events Returns all admin events, or filters events based on URL query parameters listed here + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAdminEventsGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAdminEventsGetRequest { + return ApiAdminRealmsRealmAdminEventsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []AdminEventRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsGetExecute(r ApiAdminRealmsRealmAdminEventsGetRequest) ([]AdminEventRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AdminEventRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmAdminEventsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/admin-events" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.authClient != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authClient", r.authClient, "form", "") + } + if r.authIpAddress != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authIpAddress", r.authIpAddress, "form", "") + } + if r.authRealm != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authRealm", r.authRealm, "form", "") + } + if r.authUser != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authUser", r.authUser, "form", "") + } + if r.dateFrom != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dateFrom", r.dateFrom, "form", "") + } + if r.dateTo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dateTo", r.dateTo, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.operationTypes != nil { + t := *r.operationTypes + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "operationTypes", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "operationTypes", t, "form", "multi") + } + } + if r.resourcePath != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "resourcePath", r.resourcePath, "form", "") + } + if r.resourceTypes != nil { + t := *r.resourceTypes + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "resourceTypes", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "resourceTypes", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientDescriptionConverterPostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + body *string +} + +func (r ApiAdminRealmsRealmClientDescriptionConverterPostRequest) Body(body string) ApiAdminRealmsRealmClientDescriptionConverterPostRequest { + r.body = &body + return r +} + +func (r ApiAdminRealmsRealmClientDescriptionConverterPostRequest) Execute() (*ClientRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientDescriptionConverterPostExecute(r) +} + +/* +AdminRealmsRealmClientDescriptionConverterPost Base path for importing clients under this realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientDescriptionConverterPostRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientDescriptionConverterPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientDescriptionConverterPostRequest { + return ApiAdminRealmsRealmClientDescriptionConverterPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return ClientRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmClientDescriptionConverterPostExecute(r ApiAdminRealmsRealmClientDescriptionConverterPostRequest) (*ClientRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientDescriptionConverterPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-description-converter" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/xml", "text/plain"} + + // 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 + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + includeGlobalPolicies *bool +} + +func (r ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest) IncludeGlobalPolicies(includeGlobalPolicies bool) ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest { + r.includeGlobalPolicies = &includeGlobalPolicies + return r +} + +func (r ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest) Execute() (*ClientPoliciesRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientPoliciesPoliciesGetExecute(r) +} + +/* +AdminRealmsRealmClientPoliciesPoliciesGet Method for AdminRealmsRealmClientPoliciesPoliciesGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest { + return ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return ClientPoliciesRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesGetExecute(r ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest) (*ClientPoliciesRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientPoliciesRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesPoliciesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-policies/policies" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeGlobalPolicies != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include-global-policies", r.includeGlobalPolicies, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + clientPoliciesRepresentation *ClientPoliciesRepresentation +} + +func (r ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest) ClientPoliciesRepresentation(clientPoliciesRepresentation ClientPoliciesRepresentation) ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest { + r.clientPoliciesRepresentation = &clientPoliciesRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientPoliciesPoliciesPutExecute(r) +} + +/* +AdminRealmsRealmClientPoliciesPoliciesPut Method for AdminRealmsRealmClientPoliciesPoliciesPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesPut(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest { + return ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesPutExecute(r ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesPoliciesPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-policies/policies" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientPoliciesRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientPoliciesProfilesGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + includeGlobalProfiles *bool +} + +func (r ApiAdminRealmsRealmClientPoliciesProfilesGetRequest) IncludeGlobalProfiles(includeGlobalProfiles bool) ApiAdminRealmsRealmClientPoliciesProfilesGetRequest { + r.includeGlobalProfiles = &includeGlobalProfiles + return r +} + +func (r ApiAdminRealmsRealmClientPoliciesProfilesGetRequest) Execute() (*ClientProfilesRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientPoliciesProfilesGetExecute(r) +} + +/* +AdminRealmsRealmClientPoliciesProfilesGet Method for AdminRealmsRealmClientPoliciesProfilesGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesProfilesGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesProfilesGetRequest { + return ApiAdminRealmsRealmClientPoliciesProfilesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return ClientProfilesRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesGetExecute(r ApiAdminRealmsRealmClientPoliciesProfilesGetRequest) (*ClientProfilesRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientProfilesRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesProfilesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-policies/profiles" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeGlobalProfiles != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include-global-profiles", r.includeGlobalProfiles, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientPoliciesProfilesPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + clientProfilesRepresentation *ClientProfilesRepresentation +} + +func (r ApiAdminRealmsRealmClientPoliciesProfilesPutRequest) ClientProfilesRepresentation(clientProfilesRepresentation ClientProfilesRepresentation) ApiAdminRealmsRealmClientPoliciesProfilesPutRequest { + r.clientProfilesRepresentation = &clientProfilesRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientPoliciesProfilesPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientPoliciesProfilesPutExecute(r) +} + +/* +AdminRealmsRealmClientPoliciesProfilesPut Method for AdminRealmsRealmClientPoliciesProfilesPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesProfilesPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesPut(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesProfilesPutRequest { + return ApiAdminRealmsRealmClientPoliciesProfilesPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesPutExecute(r ApiAdminRealmsRealmClientPoliciesProfilesPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesProfilesPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-policies/profiles" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientProfilesRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientSessionStatsGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmClientSessionStatsGetRequest) Execute() ([]map[string]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientSessionStatsGetExecute(r) +} + +/* +AdminRealmsRealmClientSessionStatsGet Get client session stats Returns a JSON map. + +The key is the client id, the value is the number of sessions that currently are active with that client. Only clients that actually have a session associated with them will be in this map. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientSessionStatsGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientSessionStatsGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientSessionStatsGetRequest { + return ApiAdminRealmsRealmClientSessionStatsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []map[string]string +func (a *RealmsAdminAPIService) AdminRealmsRealmClientSessionStatsGetExecute(r ApiAdminRealmsRealmClientSessionStatsGetRequest) ([]map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientSessionStatsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-session-stats" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTypesGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmClientTypesGetRequest) Execute() (*ClientTypesRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTypesGetExecute(r) +} + +/* +AdminRealmsRealmClientTypesGet List all client types available in the current realm + +This endpoint returns a list of both global and realm level client types and the attributes they set + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTypesGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientTypesGetRequest { + return ApiAdminRealmsRealmClientTypesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return ClientTypesRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesGetExecute(r ApiAdminRealmsRealmClientTypesGetRequest) (*ClientTypesRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientTypesRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientTypesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-types" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTypesPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + clientTypesRepresentation *ClientTypesRepresentation +} + +func (r ApiAdminRealmsRealmClientTypesPutRequest) ClientTypesRepresentation(clientTypesRepresentation ClientTypesRepresentation) ApiAdminRealmsRealmClientTypesPutRequest { + r.clientTypesRepresentation = &clientTypesRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTypesPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTypesPutExecute(r) +} + +/* +AdminRealmsRealmClientTypesPut Update a client type + +This endpoint allows you to update a realm level client type + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTypesPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesPut(ctx context.Context, realm string) ApiAdminRealmsRealmClientTypesPutRequest { + return ApiAdminRealmsRealmClientTypesPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesPutExecute(r ApiAdminRealmsRealmClientTypesPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientTypesPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-types" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientTypesRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmCredentialRegistratorsGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmCredentialRegistratorsGetRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmCredentialRegistratorsGetExecute(r) +} + +/* +AdminRealmsRealmCredentialRegistratorsGet Method for AdminRealmsRealmCredentialRegistratorsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmCredentialRegistratorsGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmCredentialRegistratorsGet(ctx context.Context, realm string) ApiAdminRealmsRealmCredentialRegistratorsGetRequest { + return ApiAdminRealmsRealmCredentialRegistratorsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []string +func (a *RealmsAdminAPIService) AdminRealmsRealmCredentialRegistratorsGetExecute(r ApiAdminRealmsRealmCredentialRegistratorsGetRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmCredentialRegistratorsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/credential-registrators" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteExecute(r) +} + +/* +AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete Method for AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest { + return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutExecute(r) +} + +/* +AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut Method for AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest { + return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultDefaultClientScopesGetExecute(r) +} + +/* +AdminRealmsRealmDefaultDefaultClientScopesGet Get realm default client scopes. Only name and ids are returned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesGet(ctx context.Context, realm string) ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest { + return ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ClientScopeRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesGetExecute(r ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultDefaultClientScopesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-default-client-scopes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultGroupsGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmDefaultGroupsGetRequest) Execute() ([]GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultGroupsGetExecute(r) +} + +/* +AdminRealmsRealmDefaultGroupsGet Get group hierarchy. Only name and ids are returned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDefaultGroupsGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGet(ctx context.Context, realm string) ApiAdminRealmsRealmDefaultGroupsGetRequest { + return ApiAdminRealmsRealmDefaultGroupsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []GroupRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGetExecute(r ApiAdminRealmsRealmDefaultGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultGroupsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-groups" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultGroupsGroupIdDeleteExecute(r) +} + +/* +AdminRealmsRealmDefaultGroupsGroupIdDelete Method for AdminRealmsRealmDefaultGroupsGroupIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdDelete(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest { + return ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdDeleteExecute(r ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultGroupsGroupIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-groups/{groupId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultGroupsGroupIdPutExecute(r) +} + +/* +AdminRealmsRealmDefaultGroupsGroupIdPut Method for AdminRealmsRealmDefaultGroupsGroupIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdPut(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest { + return ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdPutExecute(r ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultGroupsGroupIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-groups/{groupId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteExecute(r) +} + +/* +AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete Method for AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest { + return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutExecute(r) +} + +/* +AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut Method for AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest { + return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientScopeId"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmDefaultOptionalClientScopesGetExecute(r) +} + +/* +AdminRealmsRealmDefaultOptionalClientScopesGet Get realm optional client scopes. Only name and ids are returned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesGet(ctx context.Context, realm string) ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest { + return ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []ClientScopeRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesGetExecute(r ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultOptionalClientScopesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/default-optional-client-scopes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmDeleteExecute(r) +} + +/* +AdminRealmsRealmDelete Delete the realm + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmDelete(ctx context.Context, realm string) ApiAdminRealmsRealmDeleteRequest { + return ApiAdminRealmsRealmDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmDeleteExecute(r ApiAdminRealmsRealmDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmEventsConfigGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmEventsConfigGetRequest) Execute() (*RealmEventsConfigRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmEventsConfigGetExecute(r) +} + +/* +AdminRealmsRealmEventsConfigGet Get the events provider configuration Returns JSON object with events provider configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsConfigGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigGet(ctx context.Context, realm string) ApiAdminRealmsRealmEventsConfigGetRequest { + return ApiAdminRealmsRealmEventsConfigGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return RealmEventsConfigRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigGetExecute(r ApiAdminRealmsRealmEventsConfigGetRequest) (*RealmEventsConfigRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RealmEventsConfigRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsConfigGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/events/config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmEventsConfigPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + realmEventsConfigRepresentation *RealmEventsConfigRepresentation +} + +func (r ApiAdminRealmsRealmEventsConfigPutRequest) RealmEventsConfigRepresentation(realmEventsConfigRepresentation RealmEventsConfigRepresentation) ApiAdminRealmsRealmEventsConfigPutRequest { + r.realmEventsConfigRepresentation = &realmEventsConfigRepresentation + return r +} + +func (r ApiAdminRealmsRealmEventsConfigPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmEventsConfigPutExecute(r) +} + +/* +AdminRealmsRealmEventsConfigPut Method for AdminRealmsRealmEventsConfigPut + +Update the events provider Change the events provider and/or its configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsConfigPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigPut(ctx context.Context, realm string) ApiAdminRealmsRealmEventsConfigPutRequest { + return ApiAdminRealmsRealmEventsConfigPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigPutExecute(r ApiAdminRealmsRealmEventsConfigPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsConfigPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/events/config" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.realmEventsConfigRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmEventsDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmEventsDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmEventsDeleteExecute(r) +} + +/* +AdminRealmsRealmEventsDelete Delete all events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsDelete(ctx context.Context, realm string) ApiAdminRealmsRealmEventsDeleteRequest { + return ApiAdminRealmsRealmEventsDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsDeleteExecute(r ApiAdminRealmsRealmEventsDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/events" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmEventsGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + client *string + dateFrom *string + dateTo *string + first *int32 + ipAddress *string + max *int32 + type_ *[]string + user *string +} + +// App or oauth client name +func (r ApiAdminRealmsRealmEventsGetRequest) Client(client string) ApiAdminRealmsRealmEventsGetRequest { + r.client = &client + return r +} + +// From date +func (r ApiAdminRealmsRealmEventsGetRequest) DateFrom(dateFrom string) ApiAdminRealmsRealmEventsGetRequest { + r.dateFrom = &dateFrom + return r +} + +// To date +func (r ApiAdminRealmsRealmEventsGetRequest) DateTo(dateTo string) ApiAdminRealmsRealmEventsGetRequest { + r.dateTo = &dateTo + return r +} + +// Paging offset +func (r ApiAdminRealmsRealmEventsGetRequest) First(first int32) ApiAdminRealmsRealmEventsGetRequest { + r.first = &first + return r +} + +// IP Address +func (r ApiAdminRealmsRealmEventsGetRequest) IpAddress(ipAddress string) ApiAdminRealmsRealmEventsGetRequest { + r.ipAddress = &ipAddress + return r +} + +// Maximum results size (defaults to 100) +func (r ApiAdminRealmsRealmEventsGetRequest) Max(max int32) ApiAdminRealmsRealmEventsGetRequest { + r.max = &max + return r +} + +// The types of events to return +func (r ApiAdminRealmsRealmEventsGetRequest) Type_(type_ []string) ApiAdminRealmsRealmEventsGetRequest { + r.type_ = &type_ + return r +} + +// User id +func (r ApiAdminRealmsRealmEventsGetRequest) User(user string) ApiAdminRealmsRealmEventsGetRequest { + r.user = &user + return r +} + +func (r ApiAdminRealmsRealmEventsGetRequest) Execute() ([]EventRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmEventsGetExecute(r) +} + +/* +AdminRealmsRealmEventsGet Get events Returns all events, or filters them based on URL query parameters listed here + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsGet(ctx context.Context, realm string) ApiAdminRealmsRealmEventsGetRequest { + return ApiAdminRealmsRealmEventsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []EventRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmEventsGetExecute(r ApiAdminRealmsRealmEventsGetRequest) ([]EventRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []EventRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/events" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.client != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "client", r.client, "form", "") + } + if r.dateFrom != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dateFrom", r.dateFrom, "form", "") + } + if r.dateTo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dateTo", r.dateTo, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.ipAddress != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipAddress", r.ipAddress, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.type_ != nil { + t := *r.type_ + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.user != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", r.user, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmGetRequest) Execute() (*RealmRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGetExecute(r) +} + +/* +AdminRealmsRealmGet Get the top-level representation of the realm It will not include nested information like User and Client representations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmGet(ctx context.Context, realm string) ApiAdminRealmsRealmGetRequest { + return ApiAdminRealmsRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return RealmRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmGetExecute(r ApiAdminRealmsRealmGetRequest) (*RealmRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RealmRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupByPathPathGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + path string +} + +func (r ApiAdminRealmsRealmGroupByPathPathGetRequest) Execute() (*GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupByPathPathGetExecute(r) +} + +/* +AdminRealmsRealmGroupByPathPathGet Method for AdminRealmsRealmGroupByPathPathGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param path + @return ApiAdminRealmsRealmGroupByPathPathGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmGroupByPathPathGet(ctx context.Context, realm string, path string) ApiAdminRealmsRealmGroupByPathPathGetRequest { + return ApiAdminRealmsRealmGroupByPathPathGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + path: path, + } +} + +// Execute executes the request +// +// @return GroupRepresentation +func (a *RealmsAdminAPIService) AdminRealmsRealmGroupByPathPathGetExecute(r ApiAdminRealmsRealmGroupByPathPathGetRequest) (*GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmGroupByPathPathGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/group-by-path/{path}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLocalizationGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmLocalizationGetRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmLocalizationGetExecute(r) +} + +/* +AdminRealmsRealmLocalizationGet Method for AdminRealmsRealmLocalizationGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmLocalizationGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationGet(ctx context.Context, realm string) ApiAdminRealmsRealmLocalizationGetRequest { + return ApiAdminRealmsRealmLocalizationGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []string +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationGetExecute(r ApiAdminRealmsRealmLocalizationGetRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/localization" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLocalizationLocaleDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + locale string +} + +func (r ApiAdminRealmsRealmLocalizationLocaleDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmLocalizationLocaleDeleteExecute(r) +} + +/* +AdminRealmsRealmLocalizationLocaleDelete Method for AdminRealmsRealmLocalizationLocaleDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleDelete(ctx context.Context, realm string, locale string) ApiAdminRealmsRealmLocalizationLocaleDeleteRequest { + return ApiAdminRealmsRealmLocalizationLocaleDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + locale: locale, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleDeleteExecute(r ApiAdminRealmsRealmLocalizationLocaleDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/localization/{locale}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"locale"+"}", url.PathEscape(parameterValueToString(r.locale, "locale")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLocalizationLocaleGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + locale string + useRealmDefaultLocaleFallback *bool +} + +// Deprecated +func (r ApiAdminRealmsRealmLocalizationLocaleGetRequest) UseRealmDefaultLocaleFallback(useRealmDefaultLocaleFallback bool) ApiAdminRealmsRealmLocalizationLocaleGetRequest { + r.useRealmDefaultLocaleFallback = &useRealmDefaultLocaleFallback + return r +} + +func (r ApiAdminRealmsRealmLocalizationLocaleGetRequest) Execute() (map[string]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmLocalizationLocaleGetExecute(r) +} + +/* +AdminRealmsRealmLocalizationLocaleGet Method for AdminRealmsRealmLocalizationLocaleGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleGet(ctx context.Context, realm string, locale string) ApiAdminRealmsRealmLocalizationLocaleGetRequest { + return ApiAdminRealmsRealmLocalizationLocaleGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + locale: locale, + } +} + +// Execute executes the request +// +// @return map[string]string +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleGetExecute(r ApiAdminRealmsRealmLocalizationLocaleGetRequest) (map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/localization/{locale}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"locale"+"}", url.PathEscape(parameterValueToString(r.locale, "locale")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.useRealmDefaultLocaleFallback != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "useRealmDefaultLocaleFallback", r.useRealmDefaultLocaleFallback, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + key string + locale string +} + +func (r ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmLocalizationLocaleKeyDeleteExecute(r) +} + +/* +AdminRealmsRealmLocalizationLocaleKeyDelete Method for AdminRealmsRealmLocalizationLocaleKeyDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param key + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyDelete(ctx context.Context, realm string, key string, locale string) ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest { + return ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + key: key, + locale: locale, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyDeleteExecute(r ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleKeyDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/localization/{locale}/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", url.PathEscape(parameterValueToString(r.key, "key")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"locale"+"}", url.PathEscape(parameterValueToString(r.locale, "locale")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + key string + locale string +} + +func (r ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmLocalizationLocaleKeyGetExecute(r) +} + +/* +AdminRealmsRealmLocalizationLocaleKeyGet Method for AdminRealmsRealmLocalizationLocaleKeyGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param key + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyGet(ctx context.Context, realm string, key string, locale string) ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest { + return ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + key: key, + locale: locale, + } +} + +// Execute executes the request +// +// @return string +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyGetExecute(r ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleKeyGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/localization/{locale}/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", url.PathEscape(parameterValueToString(r.key, "key")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"locale"+"}", url.PathEscape(parameterValueToString(r.locale, "locale")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + key string + locale string + body *string +} + +func (r ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest) Body(body string) ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest { + r.body = &body + return r +} + +func (r ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmLocalizationLocaleKeyPutExecute(r) +} + +/* +AdminRealmsRealmLocalizationLocaleKeyPut Method for AdminRealmsRealmLocalizationLocaleKeyPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param key + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyPut(ctx context.Context, realm string, key string, locale string) ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest { + return ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + key: key, + locale: locale, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyPutExecute(r ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleKeyPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/localization/{locale}/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", url.PathEscape(parameterValueToString(r.key, "key")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"locale"+"}", url.PathEscape(parameterValueToString(r.locale, "locale")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"text/plain"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLocalizationLocalePostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + locale string + requestBody *map[string]string +} + +func (r ApiAdminRealmsRealmLocalizationLocalePostRequest) RequestBody(requestBody map[string]string) ApiAdminRealmsRealmLocalizationLocalePostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmLocalizationLocalePostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmLocalizationLocalePostExecute(r) +} + +/* +AdminRealmsRealmLocalizationLocalePost Import localization from uploaded JSON file + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param locale + @return ApiAdminRealmsRealmLocalizationLocalePostRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocalePost(ctx context.Context, realm string, locale string) ApiAdminRealmsRealmLocalizationLocalePostRequest { + return ApiAdminRealmsRealmLocalizationLocalePostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + locale: locale, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocalePostExecute(r ApiAdminRealmsRealmLocalizationLocalePostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocalePost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/localization/{locale}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"locale"+"}", url.PathEscape(parameterValueToString(r.locale, "locale")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmLogoutAllPostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmLogoutAllPostRequest) Execute() (*GlobalRequestResult, *http.Response, error) { + return r.ApiService.AdminRealmsRealmLogoutAllPostExecute(r) +} + +/* +AdminRealmsRealmLogoutAllPost Removes all user sessions. + +Any client that has an admin url will also be told to invalidate any sessions they have. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmLogoutAllPostRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmLogoutAllPost(ctx context.Context, realm string) ApiAdminRealmsRealmLogoutAllPostRequest { + return ApiAdminRealmsRealmLogoutAllPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return GlobalRequestResult +func (a *RealmsAdminAPIService) AdminRealmsRealmLogoutAllPostExecute(r ApiAdminRealmsRealmLogoutAllPostRequest) (*GlobalRequestResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLogoutAllPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/logout-all" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmPartialExportPostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + exportClients *bool + exportGroupsAndRoles *bool +} + +func (r ApiAdminRealmsRealmPartialExportPostRequest) ExportClients(exportClients bool) ApiAdminRealmsRealmPartialExportPostRequest { + r.exportClients = &exportClients + return r +} + +func (r ApiAdminRealmsRealmPartialExportPostRequest) ExportGroupsAndRoles(exportGroupsAndRoles bool) ApiAdminRealmsRealmPartialExportPostRequest { + r.exportGroupsAndRoles = &exportGroupsAndRoles + return r +} + +func (r ApiAdminRealmsRealmPartialExportPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmPartialExportPostExecute(r) +} + +/* +AdminRealmsRealmPartialExportPost Partial export of existing realm into a JSON file. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPartialExportPostRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmPartialExportPost(ctx context.Context, realm string) ApiAdminRealmsRealmPartialExportPostRequest { + return ApiAdminRealmsRealmPartialExportPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmPartialExportPostExecute(r ApiAdminRealmsRealmPartialExportPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPartialExportPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/partial-export" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.exportClients != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exportClients", r.exportClients, "form", "") + } + if r.exportGroupsAndRoles != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exportGroupsAndRoles", r.exportGroupsAndRoles, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmPartialImportPostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + body *os.File +} + +func (r ApiAdminRealmsRealmPartialImportPostRequest) Body(body *os.File) ApiAdminRealmsRealmPartialImportPostRequest { + r.body = body + return r +} + +func (r ApiAdminRealmsRealmPartialImportPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmPartialImportPostExecute(r) +} + +/* +AdminRealmsRealmPartialImportPost Partial import from a JSON file to an existing realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPartialImportPostRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmPartialImportPost(ctx context.Context, realm string) ApiAdminRealmsRealmPartialImportPostRequest { + return ApiAdminRealmsRealmPartialImportPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmPartialImportPostExecute(r ApiAdminRealmsRealmPartialImportPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPartialImportPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/partialImport" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmPushRevocationPostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmPushRevocationPostRequest) Execute() (*GlobalRequestResult, *http.Response, error) { + return r.ApiService.AdminRealmsRealmPushRevocationPostExecute(r) +} + +/* +AdminRealmsRealmPushRevocationPost Push the realm's revocation policy to any client that has an admin url associated with it. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPushRevocationPostRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmPushRevocationPost(ctx context.Context, realm string) ApiAdminRealmsRealmPushRevocationPostRequest { + return ApiAdminRealmsRealmPushRevocationPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return GlobalRequestResult +func (a *RealmsAdminAPIService) AdminRealmsRealmPushRevocationPostExecute(r ApiAdminRealmsRealmPushRevocationPostRequest) (*GlobalRequestResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPushRevocationPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/push-revocation" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + realmRepresentation *RealmRepresentation +} + +func (r ApiAdminRealmsRealmPutRequest) RealmRepresentation(realmRepresentation RealmRepresentation) ApiAdminRealmsRealmPutRequest { + r.realmRepresentation = &realmRepresentation + return r +} + +func (r ApiAdminRealmsRealmPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmPutExecute(r) +} + +/* +AdminRealmsRealmPut Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. + +This will only update top-level attributes of the realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmPut(ctx context.Context, realm string) ApiAdminRealmsRealmPutRequest { + return ApiAdminRealmsRealmPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmPutExecute(r ApiAdminRealmsRealmPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.realmRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmSessionsSessionDeleteRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + session string + isOffline *bool +} + +func (r ApiAdminRealmsRealmSessionsSessionDeleteRequest) IsOffline(isOffline bool) ApiAdminRealmsRealmSessionsSessionDeleteRequest { + r.isOffline = &isOffline + return r +} + +func (r ApiAdminRealmsRealmSessionsSessionDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmSessionsSessionDeleteExecute(r) +} + +/* +AdminRealmsRealmSessionsSessionDelete Remove a specific user session. + +Any client that has an admin url will also be told to invalidate this particular session. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param session + @return ApiAdminRealmsRealmSessionsSessionDeleteRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmSessionsSessionDelete(ctx context.Context, realm string, session string) ApiAdminRealmsRealmSessionsSessionDeleteRequest { + return ApiAdminRealmsRealmSessionsSessionDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + session: session, + } +} + +// Execute executes the request +func (a *RealmsAdminAPIService) AdminRealmsRealmSessionsSessionDeleteExecute(r ApiAdminRealmsRealmSessionsSessionDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmSessionsSessionDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/sessions/{session}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"session"+"}", url.PathEscape(parameterValueToString(r.session, "session")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.isOffline != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "isOffline", r.isOffline, "form", "") + } else { + var defaultValue bool = false + r.isOffline = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmTestSMTPConnectionPostRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + requestBody *map[string]string +} + +func (r ApiAdminRealmsRealmTestSMTPConnectionPostRequest) RequestBody(requestBody map[string]string) ApiAdminRealmsRealmTestSMTPConnectionPostRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmTestSMTPConnectionPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmTestSMTPConnectionPostExecute(r) +} + +/* +AdminRealmsRealmTestSMTPConnectionPost Test SMTP connection with current logged in user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmTestSMTPConnectionPostRequest + +Deprecated +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmTestSMTPConnectionPost(ctx context.Context, realm string) ApiAdminRealmsRealmTestSMTPConnectionPostRequest { + return ApiAdminRealmsRealmTestSMTPConnectionPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// Deprecated +func (a *RealmsAdminAPIService) AdminRealmsRealmTestSMTPConnectionPostExecute(r ApiAdminRealmsRealmTestSMTPConnectionPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmTestSMTPConnectionPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/testSMTPConnection" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersManagementPermissionsGetRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string +} + +func (r ApiAdminRealmsRealmUsersManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersManagementPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmUsersManagementPermissionsGet Method for AdminRealmsRealmUsersManagementPermissionsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersManagementPermissionsGetRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersManagementPermissionsGetRequest { + return ApiAdminRealmsRealmUsersManagementPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsGetExecute(r ApiAdminRealmsRealmUsersManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmUsersManagementPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users-management-permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersManagementPermissionsPutRequest struct { + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + managementPermissionReference *ManagementPermissionReference +} + +func (r ApiAdminRealmsRealmUsersManagementPermissionsPutRequest) ManagementPermissionReference(managementPermissionReference ManagementPermissionReference) ApiAdminRealmsRealmUsersManagementPermissionsPutRequest { + r.managementPermissionReference = &managementPermissionReference + return r +} + +func (r ApiAdminRealmsRealmUsersManagementPermissionsPutRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersManagementPermissionsPutExecute(r) +} + +/* +AdminRealmsRealmUsersManagementPermissionsPut Method for AdminRealmsRealmUsersManagementPermissionsPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersManagementPermissionsPutRequest +*/ +func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsPut(ctx context.Context, realm string) ApiAdminRealmsRealmUsersManagementPermissionsPutRequest { + return ApiAdminRealmsRealmUsersManagementPermissionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsPutExecute(r ApiAdminRealmsRealmUsersManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmUsersManagementPermissionsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users-management-permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.managementPermissionReference + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_role_mapper.go b/api_role_mapper.go new file mode 100644 index 0000000..fb7191e --- /dev/null +++ b/api_role_mapper.go @@ -0,0 +1,1305 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// RoleMapperAPIService RoleMapperAPI service +type RoleMapperAPIService service + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest) Execute() (*MappingsRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsGet Get role mappings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return MappingsRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet Get realm-level roles that can be mapped + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet Get effective realm-level role mappings This will recurse all composite roles to get the result. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete Delete realm-level role mappings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet Get realm-level role mappings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostExecute(r) +} + +/* +AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost Add realm-level role mappings to the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest { + return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + groupId: groupId, + } +} + +// Execute executes the request +func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group-id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest) Execute() (*MappingsRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsGet Get role mappings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return MappingsRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet Get realm-level roles that can be mapped + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet Get effective realm-level role mappings This will recurse all composite roles to get the result. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete Delete realm-level role mappings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsRealmGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsRealmGet Get realm-level role mappings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest struct { + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdRoleMappingsRealmPostExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdRoleMappingsRealmPost Add realm-level role mappings to the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest +*/ +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmPost(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest { + return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmPostExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_roles.go b/api_roles.go new file mode 100644 index 0000000..6d20399 --- /dev/null +++ b/api_roles.go @@ -0,0 +1,3209 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// RolesAPIService RolesAPI service +type RolesAPIService service + +type ApiAdminRealmsRealmClientsClientUuidRolesGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + briefRepresentation *bool + first *int32 + max *int32 + search *string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientsClientUuidRolesGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidRolesGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidRolesGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) Search(search string) ApiAdminRealmsRealmClientsClientUuidRolesGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesGet Get all roles for the realm or client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidRolesGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } else { + var defaultValue string = "" + r.search = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesPostRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleRepresentation *RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesPostRequest) RoleRepresentation(roleRepresentation RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidRolesPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesPost Create a new role for the realm or client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesPostRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidRolesPostRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesPostExecute(r ApiAdminRealmsRealmClientsClientUuidRolesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string + clientInCompositeUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet Get client-level roles for the client that are in the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid + @param roleName role's name (not id!) + @param clientInCompositeUuid + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet(ctx context.Context, realm string, clientUuid string, roleName string, clientInCompositeUuid string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + clientInCompositeUuid: clientInCompositeUuid, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-in-composite-uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-in-composite-uuid"+"}", url.PathEscape(parameterValueToString(r.clientInCompositeUuid, "clientInCompositeUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete Remove roles from the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet Get composites of the role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost Add a composite to the role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet Get realm-level roles of the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameDelete Delete a role by name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameDelete(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest) Execute() (*RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameGet Get a role by name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest) (*RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string + briefRepresentation *bool + first *int32 + max *int32 +} + +// if false, return a full representation of the {@code GroupRepresentation} objects. +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// first result to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest { + r.first = &first + return r +} + +// maximum number of results to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest) Execute() ([]GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet Returns a stream of groups that have the specified role name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName the role name. + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []GroupRepresentation +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet Return object stating whether role Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string + managementPermissionReference *ManagementPermissionReference +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest) ManagementPermissionReference(managementPermissionReference ManagementPermissionReference) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest { + r.managementPermissionReference = &managementPermissionReference + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut Return object stating whether role Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.managementPermissionReference + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string + roleRepresentation *RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest) RoleRepresentation(roleRepresentation RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNamePutExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNamePut Update a role by name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNamePut(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNamePutExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNamePut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string + briefRepresentation *bool + first *int32 + max *int32 +} + +// Boolean which defines whether brief representations are returned (default: false) +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// first result to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest { + r.first = &first + return r +} + +// maximum number of results to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest) Max(max int32) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest) Execute() ([]UserRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet Returns a stream of users that have the specified role name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName the role name. + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest { + return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []UserRepresentation +func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest) ([]UserRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + briefRepresentation *bool + first *int32 + max *int32 + search *string +} + +func (r ApiAdminRealmsRealmRolesGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmRolesGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesGetRequest) First(first int32) ApiAdminRealmsRealmRolesGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmRolesGetRequest) Max(max int32) ApiAdminRealmsRealmRolesGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmRolesGetRequest) Search(search string) ApiAdminRealmsRealmRolesGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmRolesGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesGetExecute(r) +} + +/* +AdminRealmsRealmRolesGet Get all roles for the realm or client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmRolesGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesGet(ctx context.Context, realm string) ApiAdminRealmsRealmRolesGetRequest { + return ApiAdminRealmsRealmRolesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmRolesGetExecute(r ApiAdminRealmsRealmRolesGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } else { + var defaultValue string = "" + r.search = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesPostRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleRepresentation *RoleRepresentation +} + +func (r ApiAdminRealmsRealmRolesPostRequest) RoleRepresentation(roleRepresentation RoleRepresentation) ApiAdminRealmsRealmRolesPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesPostExecute(r) +} + +/* +AdminRealmsRealmRolesPost Create a new role for the realm or client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmRolesPostRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesPost(ctx context.Context, realm string) ApiAdminRealmsRealmRolesPostRequest { + return ApiAdminRealmsRealmRolesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmRolesPostExecute(r ApiAdminRealmsRealmRolesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string +} + +func (r ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet Get client-level roles for the client that are in the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest { + return ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/composites/clients/{client-uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameCompositesDeleteExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameCompositesDelete Remove roles from the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesDelete(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest { + return ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesDeleteExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string +} + +func (r ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameCompositesGetExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameCompositesGet Get composites of the role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest { + return ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesGetExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameCompositesPostExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameCompositesPost Add a composite to the role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesPost(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest { + return ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesPostExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string +} + +func (r ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameCompositesRealmGetExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameCompositesRealmGet Get realm-level roles of the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesRealmGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest { + return ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesRealmGetExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/composites/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameDeleteRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string +} + +func (r ApiAdminRealmsRealmRolesRoleNameDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameDeleteExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameDelete Delete a role by name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameDeleteRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameDelete(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameDeleteRequest { + return ApiAdminRealmsRealmRolesRoleNameDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameDeleteExecute(r ApiAdminRealmsRealmRolesRoleNameDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string +} + +func (r ApiAdminRealmsRealmRolesRoleNameGetRequest) Execute() (*RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameGetExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameGet Get a role by name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameGetRequest { + return ApiAdminRealmsRealmRolesRoleNameGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return RoleRepresentation +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGetExecute(r ApiAdminRealmsRealmRolesRoleNameGetRequest) (*RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string + briefRepresentation *bool + first *int32 + max *int32 +} + +// if false, return a full representation of the {@code GroupRepresentation} objects. +func (r ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// first result to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest) First(first int32) ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest { + r.first = &first + return r +} + +// maximum number of results to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest) Max(max int32) ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest) Execute() ([]GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameGroupsGetExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameGroupsGet Returns a stream of groups that have the specified role name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName the role name. + @return ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGroupsGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest { + return ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []GroupRepresentation +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGroupsGetExecute(r ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameGroupsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/groups" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string +} + +func (r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameManagementPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameManagementPermissionsGet Return object stating whether role Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName + @return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest { + return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsGetExecute(r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameManagementPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string + managementPermissionReference *ManagementPermissionReference +} + +func (r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest) ManagementPermissionReference(managementPermissionReference ManagementPermissionReference) ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest { + r.managementPermissionReference = &managementPermissionReference + return r +} + +func (r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameManagementPermissionsPutExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameManagementPermissionsPut Return object stating whether role Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName + @return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsPut(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest { + return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsPutExecute(r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameManagementPermissionsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.managementPermissionReference + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNamePutRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string + roleRepresentation *RoleRepresentation +} + +func (r ApiAdminRealmsRealmRolesRoleNamePutRequest) RoleRepresentation(roleRepresentation RoleRepresentation) ApiAdminRealmsRealmRolesRoleNamePutRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesRoleNamePutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNamePutExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNamePut Update a role by name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNamePutRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNamePut(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNamePutRequest { + return ApiAdminRealmsRealmRolesRoleNamePutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNamePutExecute(r ApiAdminRealmsRealmRolesRoleNamePutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNamePut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesRoleNameUsersGetRequest struct { + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string + briefRepresentation *bool + first *int32 + max *int32 +} + +// Boolean which defines whether brief representations are returned (default: false) +func (r ApiAdminRealmsRealmRolesRoleNameUsersGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmRolesRoleNameUsersGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// first result to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmRolesRoleNameUsersGetRequest) First(first int32) ApiAdminRealmsRealmRolesRoleNameUsersGetRequest { + r.first = &first + return r +} + +// maximum number of results to return. Ignored if negative or {@code null}. +func (r ApiAdminRealmsRealmRolesRoleNameUsersGetRequest) Max(max int32) ApiAdminRealmsRealmRolesRoleNameUsersGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmRolesRoleNameUsersGetRequest) Execute() ([]UserRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesRoleNameUsersGetExecute(r) +} + +/* +AdminRealmsRealmRolesRoleNameUsersGet Returns a stream of users that have the specified role name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName the role name. + @return ApiAdminRealmsRealmRolesRoleNameUsersGetRequest +*/ +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameUsersGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameUsersGetRequest { + return ApiAdminRealmsRealmRolesRoleNameUsersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleName: roleName, + } +} + +// Execute executes the request +// +// @return []UserRepresentation +func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameUsersGetExecute(r ApiAdminRealmsRealmRolesRoleNameUsersGetRequest) ([]UserRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameUsersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles/{role-name}/users" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_roles_by_id.go b/api_roles_by_id.go new file mode 100644 index 0000000..3c8f498 --- /dev/null +++ b/api_roles_by_id.go @@ -0,0 +1,1098 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// RolesByIDAPIService RolesByIDAPI service +type RolesByIDAPIService service + +type ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + clientUuid string + roleId string +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet Get client-level roles for the client that are in the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet(ctx context.Context, realm string, clientUuid string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientUuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdCompositesDeleteExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdCompositesDelete Remove a set of roles from the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId Role id + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesDelete(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesDeleteExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string + first *int32 + max *int32 + search *string +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) First(first int32) ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) Max(max int32) ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) Search(search string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdCompositesGetExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdCompositesGet Get role's children Returns a set of role's children provided the role is a composite. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdCompositesPostExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdCompositesPost Make the role a composite role by associating some child roles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesPost(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesPostExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}/composites" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdCompositesRealmGetExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet Get realm-level roles that are in the role's composite + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesRealmGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}/composites/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdDeleteExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdDelete Delete the role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId id of role + @return ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdDelete(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdDeleteExecute(r ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdGetRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdGetRequest) Execute() (*RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdGetExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdGet Get a specific role's representation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId id of role + @return ApiAdminRealmsRealmRolesByIdRoleIdGetRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdGetRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return RoleRepresentation +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdGetRequest) (*RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet Return object stating whether role Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string + managementPermissionReference *ManagementPermissionReference +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest) ManagementPermissionReference(managementPermissionReference ManagementPermissionReference) ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest { + r.managementPermissionReference = &managementPermissionReference + return r +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut Return object stating whether role Authorization permissions have been initialized or not and a reference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return ManagementPermissionReference +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutExecute(r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.managementPermissionReference + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmRolesByIdRoleIdPutRequest struct { + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string + roleRepresentation *RoleRepresentation +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdPutRequest) RoleRepresentation(roleRepresentation RoleRepresentation) ApiAdminRealmsRealmRolesByIdRoleIdPutRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmRolesByIdRoleIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmRolesByIdRoleIdPutExecute(r) +} + +/* +AdminRealmsRealmRolesByIdRoleIdPut Update the role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId id of role + @return ApiAdminRealmsRealmRolesByIdRoleIdPutRequest +*/ +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdPut(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdPutRequest { + return ApiAdminRealmsRealmRolesByIdRoleIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + roleId: roleId, + } +} + +// Execute executes the request +func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdPutExecute(r ApiAdminRealmsRealmRolesByIdRoleIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/roles-by-id/{role-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_scope_mappings.go b/api_scope_mappings.go new file mode 100644 index 0000000..0e8756f --- /dev/null +++ b/api_scope_mappings.go @@ -0,0 +1,3629 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ScopeMappingsAPIService ScopeMappingsAPI service +type ScopeMappingsAPIService service + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet The available client-level roles Returns the roles for the client that can be associated with the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet Get effective client roles Returns the roles for the client that are associated with the client's scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete Remove client-level roles from the client's scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet Get the roles associated with a client's scope Returns roles for the client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost Add client-level roles to the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest) Execute() (*MappingsRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet Get all scope mappings for the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest + +Deprecated +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return MappingsRepresentation +// +// Deprecated +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet Get realm-level roles that are available to attach to this client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. + +The method is really to show a comprehensive total view of realm-level roles associated with the client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete Remove a set of realm-level roles from the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet Get realm-level roles associated with the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostExecute(r) +} + +/* +AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost Add a set of realm-level roles to the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest { + return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet The available client-level roles Returns the roles for the client that can be associated with the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet Get effective client roles Returns the roles for the client that are associated with the client's scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete Remove client-level roles from the client's scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet Get the roles associated with a client's scope Returns roles for the client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost Add client-level roles to the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + client: client, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest) Execute() (*MappingsRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet Get all scope mappings for the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest + +Deprecated +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return MappingsRepresentation +// +// Deprecated +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet Get realm-level roles that are available to attach to this client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. + +The method is really to show a comprehensive total view of realm-level roles associated with the client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete Remove a set of realm-level roles from the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet Get realm-level roles associated with the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostExecute(r) +} + +/* +AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost Add a set of realm-level roles to the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest { + return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientScopeId: clientScopeId, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-scope-id"+"}", url.PathEscape(parameterValueToString(r.clientScopeId, "clientScopeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet The available client-level roles Returns the roles for the client that can be associated with the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet Get effective client roles Returns the roles for the client that are associated with the client's scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete Remove client-level roles from the client's scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + client: client, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet Get the roles associated with a client's scope Returns roles for the client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + client: client, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost Add client-level roles to the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + client: client, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest) Execute() (*MappingsRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsGet Get all scope mappings for the client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest + +Deprecated +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return MappingsRepresentation +// +// Deprecated +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet Get realm-level roles that are available to attach to this client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/available" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + briefRepresentation *bool +} + +// if false, return roles with their attributes +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. + +The method is really to show a comprehensive total view of realm-level roles associated with the client. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/composite" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete Remove a set of realm-level roles from the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmGetExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet Get realm-level roles associated with the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []RoleRepresentation +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest struct { + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + roleRepresentation *[]RoleRepresentation +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest) RoleRepresentation(roleRepresentation []RoleRepresentation) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest { + r.roleRepresentation = &roleRepresentation + return r +} + +func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmPostExecute(r) +} + +/* +AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost Add a set of realm-level roles to the client's scope + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest +*/ +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest { + return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + } +} + +// Execute executes the request +func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmPostExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client-uuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_users.go b/api_users.go new file mode 100644 index 0000000..ddcfce9 --- /dev/null +++ b/api_users.go @@ -0,0 +1,3862 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// UsersAPIService UsersAPI service +type UsersAPIService service + +type ApiAdminRealmsRealmUsersCountGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + email *string + emailVerified *bool + enabled *bool + firstName *string + lastName *string + q *string + search *string + username *string +} + +// email filter +func (r ApiAdminRealmsRealmUsersCountGetRequest) Email(email string) ApiAdminRealmsRealmUsersCountGetRequest { + r.email = &email + return r +} + +func (r ApiAdminRealmsRealmUsersCountGetRequest) EmailVerified(emailVerified bool) ApiAdminRealmsRealmUsersCountGetRequest { + r.emailVerified = &emailVerified + return r +} + +// Boolean representing if user is enabled or not +func (r ApiAdminRealmsRealmUsersCountGetRequest) Enabled(enabled bool) ApiAdminRealmsRealmUsersCountGetRequest { + r.enabled = &enabled + return r +} + +// first name filter +func (r ApiAdminRealmsRealmUsersCountGetRequest) FirstName(firstName string) ApiAdminRealmsRealmUsersCountGetRequest { + r.firstName = &firstName + return r +} + +// last name filter +func (r ApiAdminRealmsRealmUsersCountGetRequest) LastName(lastName string) ApiAdminRealmsRealmUsersCountGetRequest { + r.lastName = &lastName + return r +} + +func (r ApiAdminRealmsRealmUsersCountGetRequest) Q(q string) ApiAdminRealmsRealmUsersCountGetRequest { + r.q = &q + return r +} + +// arbitrary search string for all the fields below. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search. +func (r ApiAdminRealmsRealmUsersCountGetRequest) Search(search string) ApiAdminRealmsRealmUsersCountGetRequest { + r.search = &search + return r +} + +// username filter +func (r ApiAdminRealmsRealmUsersCountGetRequest) Username(username string) ApiAdminRealmsRealmUsersCountGetRequest { + r.username = &username + return r +} + +func (r ApiAdminRealmsRealmUsersCountGetRequest) Execute() (int32, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersCountGetExecute(r) +} + +/* +AdminRealmsRealmUsersCountGet Returns the number of users that match the given criteria. + +It can be called in three different ways. 1. Don’t specify any criteria and pass {@code null}. The number of all users within that realm will be returned.

2. If {@code search} is specified other criteria such as {@code last} will be ignored even though you set them. The {@code search} string will be matched against the first and last name, the username and the email of a user.

3. If {@code search} is unspecified but any of {@code last}, {@code first}, {@code email} or {@code username} those criteria are matched against their respective fields on a user entity. Combined with a logical and. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersCountGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersCountGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersCountGetRequest { + return ApiAdminRealmsRealmUsersCountGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return int32 +func (a *UsersAPIService) AdminRealmsRealmUsersCountGetExecute(r ApiAdminRealmsRealmUsersCountGetRequest) (int32, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue int32 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersCountGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/count" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.email != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "email", r.email, "form", "") + } + if r.emailVerified != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "emailVerified", r.emailVerified, "form", "") + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + if r.firstName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "firstName", r.firstName, "form", "") + } + if r.lastName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "lastName", r.lastName, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.username != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + briefRepresentation *bool + email *string + emailVerified *bool + enabled *bool + exact *bool + first *int32 + firstName *string + idpAlias *string + idpUserId *string + lastName *string + max *int32 + q *string + search *string + username *string +} + +// Boolean which defines whether brief representations are returned (default: false) +func (r ApiAdminRealmsRealmUsersGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmUsersGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +// A String contained in email, or the complete email, if param \"exact\" is true +func (r ApiAdminRealmsRealmUsersGetRequest) Email(email string) ApiAdminRealmsRealmUsersGetRequest { + r.email = &email + return r +} + +// whether the email has been verified +func (r ApiAdminRealmsRealmUsersGetRequest) EmailVerified(emailVerified bool) ApiAdminRealmsRealmUsersGetRequest { + r.emailVerified = &emailVerified + return r +} + +// Boolean representing if user is enabled or not +func (r ApiAdminRealmsRealmUsersGetRequest) Enabled(enabled bool) ApiAdminRealmsRealmUsersGetRequest { + r.enabled = &enabled + return r +} + +// Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly +func (r ApiAdminRealmsRealmUsersGetRequest) Exact(exact bool) ApiAdminRealmsRealmUsersGetRequest { + r.exact = &exact + return r +} + +// Pagination offset +func (r ApiAdminRealmsRealmUsersGetRequest) First(first int32) ApiAdminRealmsRealmUsersGetRequest { + r.first = &first + return r +} + +// A String contained in firstName, or the complete firstName, if param \"exact\" is true +func (r ApiAdminRealmsRealmUsersGetRequest) FirstName(firstName string) ApiAdminRealmsRealmUsersGetRequest { + r.firstName = &firstName + return r +} + +// The alias of an Identity Provider linked to the user +func (r ApiAdminRealmsRealmUsersGetRequest) IdpAlias(idpAlias string) ApiAdminRealmsRealmUsersGetRequest { + r.idpAlias = &idpAlias + return r +} + +// The userId at an Identity Provider linked to the user +func (r ApiAdminRealmsRealmUsersGetRequest) IdpUserId(idpUserId string) ApiAdminRealmsRealmUsersGetRequest { + r.idpUserId = &idpUserId + return r +} + +// A String contained in lastName, or the complete lastName, if param \"exact\" is true +func (r ApiAdminRealmsRealmUsersGetRequest) LastName(lastName string) ApiAdminRealmsRealmUsersGetRequest { + r.lastName = &lastName + return r +} + +// Maximum results size (defaults to 100) +func (r ApiAdminRealmsRealmUsersGetRequest) Max(max int32) ApiAdminRealmsRealmUsersGetRequest { + r.max = &max + return r +} + +// A query to search for custom attributes, in the format 'key1:value2 key2:value2' +func (r ApiAdminRealmsRealmUsersGetRequest) Q(q string) ApiAdminRealmsRealmUsersGetRequest { + r.q = &q + return r +} + +// A String contained in username, first or last name, or email. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search. +func (r ApiAdminRealmsRealmUsersGetRequest) Search(search string) ApiAdminRealmsRealmUsersGetRequest { + r.search = &search + return r +} + +// A String contained in username, or the complete username, if param \"exact\" is true +func (r ApiAdminRealmsRealmUsersGetRequest) Username(username string) ApiAdminRealmsRealmUsersGetRequest { + r.username = &username + return r +} + +func (r ApiAdminRealmsRealmUsersGetRequest) Execute() ([]UserRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersGetExecute(r) +} + +/* +AdminRealmsRealmUsersGet Get users Returns a stream of users, filtered according to query parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersGetRequest { + return ApiAdminRealmsRealmUsersGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return []UserRepresentation +func (a *UsersAPIService) AdminRealmsRealmUsersGetExecute(r ApiAdminRealmsRealmUsersGetRequest) ([]UserRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } + if r.email != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "email", r.email, "form", "") + } + if r.emailVerified != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "emailVerified", r.emailVerified, "form", "") + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + if r.exact != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exact", r.exact, "form", "") + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.firstName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "firstName", r.firstName, "form", "") + } + if r.idpAlias != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "idpAlias", r.idpAlias, "form", "") + } + if r.idpUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "idpUserId", r.idpUserId, "form", "") + } + if r.lastName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "lastName", r.lastName, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.username != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersPostRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userRepresentation *UserRepresentation +} + +func (r ApiAdminRealmsRealmUsersPostRequest) UserRepresentation(userRepresentation UserRepresentation) ApiAdminRealmsRealmUsersPostRequest { + r.userRepresentation = &userRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersPostExecute(r) +} + +/* +AdminRealmsRealmUsersPost Create a new user Username must be unique. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersPostRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersPost(ctx context.Context, realm string) ApiAdminRealmsRealmUsersPostRequest { + return ApiAdminRealmsRealmUsersPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersPostExecute(r ApiAdminRealmsRealmUsersPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.userRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersProfileGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string +} + +func (r ApiAdminRealmsRealmUsersProfileGetRequest) Execute() (*UPConfig, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersProfileGetExecute(r) +} + +/* +AdminRealmsRealmUsersProfileGet Method for AdminRealmsRealmUsersProfileGet + +Get the configuration for the user profile + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersProfileGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersProfileGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersProfileGetRequest { + return ApiAdminRealmsRealmUsersProfileGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return UPConfig +func (a *UsersAPIService) AdminRealmsRealmUsersProfileGetExecute(r ApiAdminRealmsRealmUsersProfileGetRequest) (*UPConfig, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UPConfig + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersProfileGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/profile" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersProfileMetadataGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string +} + +func (r ApiAdminRealmsRealmUsersProfileMetadataGetRequest) Execute() (*UserProfileMetadata, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersProfileMetadataGetExecute(r) +} + +/* +AdminRealmsRealmUsersProfileMetadataGet Method for AdminRealmsRealmUsersProfileMetadataGet + +Get the UserProfileMetadata from the configuration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersProfileMetadataGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersProfileMetadataGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersProfileMetadataGetRequest { + return ApiAdminRealmsRealmUsersProfileMetadataGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return UserProfileMetadata +func (a *UsersAPIService) AdminRealmsRealmUsersProfileMetadataGetExecute(r ApiAdminRealmsRealmUsersProfileMetadataGetRequest) (*UserProfileMetadata, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserProfileMetadata + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersProfileMetadataGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/profile/metadata" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersProfilePutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + uPConfig *UPConfig +} + +func (r ApiAdminRealmsRealmUsersProfilePutRequest) UPConfig(uPConfig UPConfig) ApiAdminRealmsRealmUsersProfilePutRequest { + r.uPConfig = &uPConfig + return r +} + +func (r ApiAdminRealmsRealmUsersProfilePutRequest) Execute() (*UPConfig, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersProfilePutExecute(r) +} + +/* +AdminRealmsRealmUsersProfilePut Method for AdminRealmsRealmUsersProfilePut + +Set the configuration for the user profile + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersProfilePutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersProfilePut(ctx context.Context, realm string) ApiAdminRealmsRealmUsersProfilePutRequest { + return ApiAdminRealmsRealmUsersProfilePutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + } +} + +// Execute executes the request +// +// @return UPConfig +func (a *UsersAPIService) AdminRealmsRealmUsersProfilePutExecute(r ApiAdminRealmsRealmUsersProfilePutRequest) (*UPConfig, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UPConfig + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersProfilePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/profile" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 + } + // body params + localVarPostBody = r.uPConfig + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet Return credential types, which are provided by the user storage where user is stored. + +Returned values can contain for example "password", "otp" etc. This will always return empty list for "local" users, which are not backed by any user storage + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest { + return ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []string +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetExecute(r ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/configured-user-storage-credential-types" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + client string +} + +func (r ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdConsentsClientDeleteExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdConsentsClientDelete Revoke consent and offline tokens for particular client from user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param client Client id + @return ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsClientDelete(ctx context.Context, realm string, userId string, client string) ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest { + return ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + client: client, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsClientDeleteExecute(r ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdConsentsClientDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/consents/{client}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"client"+"}", url.PathEscape(parameterValueToString(r.client, "client")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdConsentsGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdConsentsGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdConsentsGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdConsentsGet Get consents granted by the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdConsentsGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdConsentsGetRequest { + return ApiAdminRealmsRealmUsersUserIdConsentsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []map[string]interface{} +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsGetExecute(r ApiAdminRealmsRealmUsersUserIdConsentsGetRequest) ([]map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdConsentsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/consents" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + credentialId string +} + +func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete Remove a credential for a user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param credentialId + @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete(ctx context.Context, realm string, userId string, credentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest { + return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + credentialId: credentialId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"credentialId"+"}", url.PathEscape(parameterValueToString(r.credentialId, "credentialId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + credentialId string + newPreviousCredentialId string +} + +func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost Move a credential to a position behind another credential + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param credentialId The credential to move + @param newPreviousCredentialId The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. + @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(ctx context.Context, realm string, userId string, credentialId string, newPreviousCredentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest { + return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + credentialId: credentialId, + newPreviousCredentialId: newPreviousCredentialId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"credentialId"+"}", url.PathEscape(parameterValueToString(r.credentialId, "credentialId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"newPreviousCredentialId"+"}", url.PathEscape(parameterValueToString(r.newPreviousCredentialId, "newPreviousCredentialId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + credentialId string +} + +func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost Move a credential to a first position in the credentials list of the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param credentialId The credential to move + @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost(ctx context.Context, realm string, userId string, credentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest { + return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + credentialId: credentialId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveToFirst" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"credentialId"+"}", url.PathEscape(parameterValueToString(r.credentialId, "credentialId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + credentialId string + body *string +} + +func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest) Body(body string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest { + r.body = &body + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut Update a credential label for a user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param credentialId + @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut(ctx context.Context, realm string, userId string, credentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest { + return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + credentialId: credentialId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/userLabel" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"credentialId"+"}", url.PathEscape(parameterValueToString(r.credentialId, "credentialId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"text/plain"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest) Execute() ([]CredentialRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdCredentialsGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdCredentialsGet Method for AdminRealmsRealmUsersUserIdCredentialsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest { + return ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []CredentialRepresentation +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsGetExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest) ([]CredentialRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CredentialRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/credentials" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdDeleteRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdDeleteExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdDelete Delete the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdDeleteRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDelete(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdDeleteRequest { + return ApiAdminRealmsRealmUsersUserIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + requestBody *[]string +} + +func (r ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest) RequestBody(requestBody []string) ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdDisableCredentialTypesPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdDisableCredentialTypesPut Disable all credentials for a user of a specific type + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDisableCredentialTypesPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest { + return ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDisableCredentialTypesPutExecute(r ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdDisableCredentialTypesPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/disable-credential-types" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + clientId *string + lifespan *int32 + redirectUri *string + requestBody *[]string +} + +// Client id +func (r ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest) ClientId(clientId string) ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest { + r.clientId = &clientId + return r +} + +// Number of seconds after which the generated token expires +func (r ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest) Lifespan(lifespan int32) ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest { + r.lifespan = &lifespan + return r +} + +// Redirect uri +func (r ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest) RedirectUri(redirectUri string) ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest { + r.redirectUri = &redirectUri + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest) RequestBody(requestBody []string) ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdExecuteActionsEmailPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdExecuteActionsEmailPut Send an email to the user with a link they can click to execute particular actions. + +An email contains a link the user can click to perform a set of required actions. The redirectUri and clientId parameters are optional. If no redirect is given, then there will be no link back to click after actions have completed. Redirect uri must be a valid uri for the particular clientId. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdExecuteActionsEmailPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest { + return ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdExecuteActionsEmailPutExecute(r ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdExecuteActionsEmailPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/execute-actions-email" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.clientId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "client_id", r.clientId, "form", "") + } + if r.lifespan != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "lifespan", r.lifespan, "form", "") + } + if r.redirectUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "redirect_uri", r.redirectUri, "form", "") + } + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest) Execute() ([]FederatedIdentityRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdFederatedIdentityGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdFederatedIdentityGet Get social logins associated with the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest { + return ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []FederatedIdentityRepresentation +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityGetExecute(r ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest) ([]FederatedIdentityRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FederatedIdentityRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdFederatedIdentityGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/federated-identity" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + provider string +} + +func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete Remove a social login provider from user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param provider Social login provider id + @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete(ctx context.Context, realm string, userId string, provider string) ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest { + return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + provider: provider, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteExecute(r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/federated-identity/{provider}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"provider"+"}", url.PathEscape(parameterValueToString(r.provider, "provider")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + provider string +} + +func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdFederatedIdentityProviderPostExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost Add a social login provider to the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param provider Social login provider id + @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost(ctx context.Context, realm string, userId string, provider string) ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest { + return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + provider: provider, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderPostExecute(r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/federated-identity/{provider}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"provider"+"}", url.PathEscape(parameterValueToString(r.provider, "provider")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + userProfileMetadata *bool +} + +// Indicates if the user profile metadata should be added to the response +func (r ApiAdminRealmsRealmUsersUserIdGetRequest) UserProfileMetadata(userProfileMetadata bool) ApiAdminRealmsRealmUsersUserIdGetRequest { + r.userProfileMetadata = &userProfileMetadata + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdGetRequest) Execute() (*UserRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdGet Get representation of the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdGetRequest { + return ApiAdminRealmsRealmUsersUserIdGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return UserRepresentation +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGetExecute(r ApiAdminRealmsRealmUsersUserIdGetRequest) (*UserRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.userProfileMetadata != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userProfileMetadata", r.userProfileMetadata, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + search *string +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest) Search(search string) ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest) Execute() (map[string]int64, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdGroupsCountGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdGroupsCountGet Method for AdminRealmsRealmUsersUserIdGroupsCountGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsCountGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest { + return ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return map[string]int64 +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsCountGetExecute(r ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest) (map[string]int64, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]int64 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsCountGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/groups/count" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdGroupsGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + briefRepresentation *bool + first *int32 + max *int32 + search *string +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmUsersUserIdGroupsGetRequest { + r.briefRepresentation = &briefRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) First(first int32) ApiAdminRealmsRealmUsersUserIdGroupsGetRequest { + r.first = &first + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) Max(max int32) ApiAdminRealmsRealmUsersUserIdGroupsGetRequest { + r.max = &max + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) Search(search string) ApiAdminRealmsRealmUsersUserIdGroupsGetRequest { + r.search = &search + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) Execute() ([]GroupRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdGroupsGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdGroupsGet Method for AdminRealmsRealmUsersUserIdGroupsGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdGroupsGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdGroupsGetRequest { + return ApiAdminRealmsRealmUsersUserIdGroupsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []GroupRepresentation +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGetExecute(r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/groups" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = true + r.briefRepresentation = &defaultValue + } + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.max != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + groupId string +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdGroupsGroupIdDeleteExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdGroupsGroupIdDelete Method for AdminRealmsRealmUsersUserIdGroupsGroupIdDelete + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param groupId + @return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdDelete(ctx context.Context, realm string, userId string, groupId string) ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest { + return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + groupId: groupId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsGroupIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/groups/{groupId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + groupId string +} + +func (r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdGroupsGroupIdPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdGroupsGroupIdPut Method for AdminRealmsRealmUsersUserIdGroupsGroupIdPut + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param groupId + @return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdPut(ctx context.Context, realm string, userId string, groupId string) ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest { + return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + groupId: groupId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdPutExecute(r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsGroupIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/groups/{groupId}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdImpersonationPostExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdImpersonationPost Impersonate the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdImpersonationPost(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest { + return ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return map[string]interface{} +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdImpersonationPostExecute(r ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdImpersonationPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/impersonation" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdLogoutPostRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdLogoutPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdLogoutPostExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdLogoutPost Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdLogoutPostRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdLogoutPost(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdLogoutPostRequest { + return ApiAdminRealmsRealmUsersUserIdLogoutPostRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdLogoutPostExecute(r ApiAdminRealmsRealmUsersUserIdLogoutPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdLogoutPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/logout" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + clientUuid string +} + +func (r ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest) Execute() ([]UserSessionRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet Get offline sessions associated with the user and client + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientUuid + @return ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet(ctx context.Context, realm string, userId string, clientUuid string) ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest { + return ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + clientUuid: clientUuid, + } +} + +// Execute executes the request +// +// @return []UserSessionRepresentation +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetExecute(r ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest) ([]UserSessionRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserSessionRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/offline-sessions/{clientUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"clientUuid"+"}", url.PathEscape(parameterValueToString(r.clientUuid, "clientUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + userRepresentation *UserRepresentation +} + +func (r ApiAdminRealmsRealmUsersUserIdPutRequest) UserRepresentation(userRepresentation UserRepresentation) ApiAdminRealmsRealmUsersUserIdPutRequest { + r.userRepresentation = &userRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdPut Update the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdPutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdPutRequest { + return ApiAdminRealmsRealmUsersUserIdPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdPutExecute(r ApiAdminRealmsRealmUsersUserIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.userRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + clientId *string + redirectUri *string +} + +// client id +func (r ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest) ClientId(clientId string) ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest { + r.clientId = &clientId + return r +} + +// redirect uri +func (r ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest) RedirectUri(redirectUri string) ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest { + r.redirectUri = &redirectUri + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdResetPasswordEmailPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdResetPasswordEmailPut Send an email to the user with a link they can click to reset their password. + +The redirectUri and clientId parameters are optional. The default for the redirect is the account client. This endpoint has been deprecated. Please use the execute-actions-email passing a list with UPDATE_PASSWORD within it. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest + +Deprecated +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordEmailPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest { + return ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// Deprecated +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordEmailPutExecute(r ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdResetPasswordEmailPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/reset-password-email" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.clientId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "client_id", r.clientId, "form", "") + } + if r.redirectUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "redirect_uri", r.redirectUri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + credentialRepresentation *CredentialRepresentation +} + +func (r ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest) CredentialRepresentation(credentialRepresentation CredentialRepresentation) ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest { + r.credentialRepresentation = &credentialRepresentation + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdResetPasswordPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdResetPasswordPut Set up a new password for the user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest { + return ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordPutExecute(r ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdResetPasswordPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/reset-password" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.credentialRepresentation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string + clientId *string + lifespan *int32 + redirectUri *string +} + +// Client id +func (r ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest) ClientId(clientId string) ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest { + r.clientId = &clientId + return r +} + +// Number of seconds after which the generated token expires +func (r ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest) Lifespan(lifespan int32) ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest { + r.lifespan = &lifespan + return r +} + +// Redirect uri +func (r ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest) RedirectUri(redirectUri string) ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest { + r.redirectUri = &redirectUri + return r +} + +func (r ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdSendVerifyEmailPutExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdSendVerifyEmailPut Send an email-verification email to the user An email contains a link the user can click to verify their email address. + +The redirectUri, clientId and lifespan parameters are optional. The default for the redirect is the account client. The default for the lifespan is 12 hours + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSendVerifyEmailPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest { + return ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSendVerifyEmailPutExecute(r ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdSendVerifyEmailPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/send-verify-email" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.clientId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "client_id", r.clientId, "form", "") + } + if r.lifespan != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "lifespan", r.lifespan, "form", "") + } + if r.redirectUri != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "redirect_uri", r.redirectUri, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdSessionsGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdSessionsGetRequest) Execute() ([]UserSessionRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdSessionsGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdSessionsGet Get sessions associated with the user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdSessionsGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSessionsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdSessionsGetRequest { + return ApiAdminRealmsRealmUsersUserIdSessionsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return []UserSessionRepresentation +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSessionsGetExecute(r ApiAdminRealmsRealmUsersUserIdSessionsGetRequest) ([]UserSessionRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserSessionRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdSessionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/sessions" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest struct { + ctx context.Context + ApiService *UsersAPIService + realm string + userId string +} + +func (r ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest) Execute() (*map[string][]string, *http.Response, error) { + return r.ApiService.AdminRealmsRealmUsersUserIdUnmanagedAttributesGetExecute(r) +} + +/* +AdminRealmsRealmUsersUserIdUnmanagedAttributesGet Method for AdminRealmsRealmUsersUserIdUnmanagedAttributesGet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest +*/ +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdUnmanagedAttributesGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest { + return ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + userId: userId, + } +} + +// Execute executes the request +// +// @return map[string][]string +func (a *UsersAPIService) AdminRealmsRealmUsersUserIdUnmanagedAttributesGetExecute(r ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest) (*map[string][]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *map[string][]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdUnmanagedAttributesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/users/{user-id}/unmanagedAttributes" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user-id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/client.go b/client.go new file mode 100644 index 0000000..0934759 --- /dev/null +++ b/client.go @@ -0,0 +1,711 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the Keycloak Admin REST API API v1.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AttackDetectionAPI *AttackDetectionAPIService + + AuthenticationManagementAPI *AuthenticationManagementAPIService + + ClientAttributeCertificateAPI *ClientAttributeCertificateAPIService + + ClientInitialAccessAPI *ClientInitialAccessAPIService + + ClientRegistrationPolicyAPI *ClientRegistrationPolicyAPIService + + ClientRoleMappingsAPI *ClientRoleMappingsAPIService + + ClientScopesAPI *ClientScopesAPIService + + ClientsAPI *ClientsAPIService + + ComponentAPI *ComponentAPIService + + DefaultAPI *DefaultAPIService + + GroupsAPI *GroupsAPIService + + IdentityProvidersAPI *IdentityProvidersAPIService + + KeyAPI *KeyAPIService + + OrganizationsAPI *OrganizationsAPIService + + ProtocolMappersAPI *ProtocolMappersAPIService + + RealmsAdminAPI *RealmsAdminAPIService + + RoleMapperAPI *RoleMapperAPIService + + RolesAPI *RolesAPIService + + RolesByIDAPI *RolesByIDAPIService + + ScopeMappingsAPI *ScopeMappingsAPIService + + UsersAPI *UsersAPIService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AttackDetectionAPI = (*AttackDetectionAPIService)(&c.common) + c.AuthenticationManagementAPI = (*AuthenticationManagementAPIService)(&c.common) + c.ClientAttributeCertificateAPI = (*ClientAttributeCertificateAPIService)(&c.common) + c.ClientInitialAccessAPI = (*ClientInitialAccessAPIService)(&c.common) + c.ClientRegistrationPolicyAPI = (*ClientRegistrationPolicyAPIService)(&c.common) + c.ClientRoleMappingsAPI = (*ClientRoleMappingsAPIService)(&c.common) + c.ClientScopesAPI = (*ClientScopesAPIService)(&c.common) + c.ClientsAPI = (*ClientsAPIService)(&c.common) + c.ComponentAPI = (*ComponentAPIService)(&c.common) + c.DefaultAPI = (*DefaultAPIService)(&c.common) + c.GroupsAPI = (*GroupsAPIService)(&c.common) + c.IdentityProvidersAPI = (*IdentityProvidersAPIService)(&c.common) + c.KeyAPI = (*KeyAPIService)(&c.common) + c.OrganizationsAPI = (*OrganizationsAPIService)(&c.common) + c.ProtocolMappersAPI = (*ProtocolMappersAPIService)(&c.common) + c.RealmsAdminAPI = (*RealmsAdminAPIService)(&c.common) + c.RoleMapperAPI = (*RoleMapperAPIService)(&c.common) + c.RolesAPI = (*RolesAPIService)(&c.common) + c.RolesByIDAPI = (*RolesByIDAPIService)(&c.common) + c.ScopeMappingsAPI = (*ScopeMappingsAPIService)(&c.common) + c.UsersAPI = (*UsersAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/configuration.go b/configuration.go new file mode 100644 index 0000000..ea78206 --- /dev/null +++ b/configuration.go @@ -0,0 +1,214 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{}, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/docs/AbstractPolicyRepresentation.md b/docs/AbstractPolicyRepresentation.md new file mode 100644 index 0000000..9c37cab --- /dev/null +++ b/docs/AbstractPolicyRepresentation.md @@ -0,0 +1,342 @@ +# AbstractPolicyRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Policies** | Pointer to **[]string** | | [optional] +**Resources** | Pointer to **[]string** | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] +**Logic** | Pointer to [**Logic**](Logic.md) | | [optional] +**DecisionStrategy** | Pointer to [**DecisionStrategy**](DecisionStrategy.md) | | [optional] +**Owner** | Pointer to **string** | | [optional] +**ResourcesData** | Pointer to [**[]ResourceRepresentation**](ResourceRepresentation.md) | | [optional] +**ScopesData** | Pointer to [**[]ScopeRepresentation**](ScopeRepresentation.md) | | [optional] + +## Methods + +### NewAbstractPolicyRepresentation + +`func NewAbstractPolicyRepresentation() *AbstractPolicyRepresentation` + +NewAbstractPolicyRepresentation instantiates a new AbstractPolicyRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAbstractPolicyRepresentationWithDefaults + +`func NewAbstractPolicyRepresentationWithDefaults() *AbstractPolicyRepresentation` + +NewAbstractPolicyRepresentationWithDefaults instantiates a new AbstractPolicyRepresentation object +This 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 *AbstractPolicyRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AbstractPolicyRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *AbstractPolicyRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AbstractPolicyRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *AbstractPolicyRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AbstractPolicyRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *AbstractPolicyRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AbstractPolicyRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetPolicies + +`func (o *AbstractPolicyRepresentation) GetPolicies() []string` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *AbstractPolicyRepresentation) GetPoliciesOk() (*[]string, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *AbstractPolicyRepresentation) SetPolicies(v []string)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *AbstractPolicyRepresentation) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + +### GetResources + +`func (o *AbstractPolicyRepresentation) GetResources() []string` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *AbstractPolicyRepresentation) GetResourcesOk() (*[]string, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *AbstractPolicyRepresentation) SetResources(v []string)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *AbstractPolicyRepresentation) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetScopes + +`func (o *AbstractPolicyRepresentation) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *AbstractPolicyRepresentation) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *AbstractPolicyRepresentation) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *AbstractPolicyRepresentation) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetLogic + +`func (o *AbstractPolicyRepresentation) GetLogic() Logic` + +GetLogic returns the Logic field if non-nil, zero value otherwise. + +### GetLogicOk + +`func (o *AbstractPolicyRepresentation) GetLogicOk() (*Logic, bool)` + +GetLogicOk returns a tuple with the Logic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogic + +`func (o *AbstractPolicyRepresentation) SetLogic(v Logic)` + +SetLogic sets Logic field to given value. + +### HasLogic + +`func (o *AbstractPolicyRepresentation) HasLogic() bool` + +HasLogic returns a boolean if a field has been set. + +### GetDecisionStrategy + +`func (o *AbstractPolicyRepresentation) GetDecisionStrategy() DecisionStrategy` + +GetDecisionStrategy returns the DecisionStrategy field if non-nil, zero value otherwise. + +### GetDecisionStrategyOk + +`func (o *AbstractPolicyRepresentation) GetDecisionStrategyOk() (*DecisionStrategy, bool)` + +GetDecisionStrategyOk returns a tuple with the DecisionStrategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecisionStrategy + +`func (o *AbstractPolicyRepresentation) SetDecisionStrategy(v DecisionStrategy)` + +SetDecisionStrategy sets DecisionStrategy field to given value. + +### HasDecisionStrategy + +`func (o *AbstractPolicyRepresentation) HasDecisionStrategy() bool` + +HasDecisionStrategy returns a boolean if a field has been set. + +### GetOwner + +`func (o *AbstractPolicyRepresentation) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *AbstractPolicyRepresentation) GetOwnerOk() (*string, 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 *AbstractPolicyRepresentation) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *AbstractPolicyRepresentation) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetResourcesData + +`func (o *AbstractPolicyRepresentation) GetResourcesData() []ResourceRepresentation` + +GetResourcesData returns the ResourcesData field if non-nil, zero value otherwise. + +### GetResourcesDataOk + +`func (o *AbstractPolicyRepresentation) GetResourcesDataOk() (*[]ResourceRepresentation, bool)` + +GetResourcesDataOk returns a tuple with the ResourcesData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourcesData + +`func (o *AbstractPolicyRepresentation) SetResourcesData(v []ResourceRepresentation)` + +SetResourcesData sets ResourcesData field to given value. + +### HasResourcesData + +`func (o *AbstractPolicyRepresentation) HasResourcesData() bool` + +HasResourcesData returns a boolean if a field has been set. + +### GetScopesData + +`func (o *AbstractPolicyRepresentation) GetScopesData() []ScopeRepresentation` + +GetScopesData returns the ScopesData field if non-nil, zero value otherwise. + +### GetScopesDataOk + +`func (o *AbstractPolicyRepresentation) GetScopesDataOk() (*[]ScopeRepresentation, bool)` + +GetScopesDataOk returns a tuple with the ScopesData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopesData + +`func (o *AbstractPolicyRepresentation) SetScopesData(v []ScopeRepresentation)` + +SetScopesData sets ScopesData field to given value. + +### HasScopesData + +`func (o *AbstractPolicyRepresentation) HasScopesData() bool` + +HasScopesData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Access.md b/docs/Access.md new file mode 100644 index 0000000..6aa1a4e --- /dev/null +++ b/docs/Access.md @@ -0,0 +1,82 @@ +# Access + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Roles** | Pointer to **[]string** | | [optional] +**VerifyCaller** | Pointer to **bool** | | [optional] + +## Methods + +### NewAccess + +`func NewAccess() *Access` + +NewAccess instantiates a new Access object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessWithDefaults + +`func NewAccessWithDefaults() *Access` + +NewAccessWithDefaults instantiates a new Access object +This 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 *Access) GetRoles() []string` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *Access) GetRolesOk() (*[]string, 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 *Access) SetRoles(v []string)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *Access) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### GetVerifyCaller + +`func (o *Access) GetVerifyCaller() bool` + +GetVerifyCaller returns the VerifyCaller field if non-nil, zero value otherwise. + +### GetVerifyCallerOk + +`func (o *Access) GetVerifyCallerOk() (*bool, bool)` + +GetVerifyCallerOk returns a tuple with the VerifyCaller field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifyCaller + +`func (o *Access) SetVerifyCaller(v bool)` + +SetVerifyCaller sets VerifyCaller field to given value. + +### HasVerifyCaller + +`func (o *Access) HasVerifyCaller() bool` + +HasVerifyCaller returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AccessToken.md b/docs/AccessToken.md new file mode 100644 index 0000000..bf2867a --- /dev/null +++ b/docs/AccessToken.md @@ -0,0 +1,1148 @@ +# AccessToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jti** | Pointer to **string** | | [optional] +**Exp** | Pointer to **int64** | | [optional] +**Nbf** | Pointer to **int64** | | [optional] +**Iat** | Pointer to **int64** | | [optional] +**Iss** | Pointer to **string** | | [optional] +**Sub** | Pointer to **string** | | [optional] +**Typ** | Pointer to **string** | | [optional] +**Azp** | Pointer to **string** | | [optional] +**OtherClaims** | Pointer to **map[string]interface{}** | | [optional] +**Nonce** | Pointer to **string** | | [optional] +**AuthTime** | Pointer to **int64** | | [optional] +**Sid** | Pointer to **string** | | [optional] +**AtHash** | Pointer to **string** | | [optional] +**CHash** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**GivenName** | Pointer to **string** | | [optional] +**FamilyName** | Pointer to **string** | | [optional] +**MiddleName** | Pointer to **string** | | [optional] +**Nickname** | Pointer to **string** | | [optional] +**PreferredUsername** | Pointer to **string** | | [optional] +**Profile** | Pointer to **string** | | [optional] +**Picture** | Pointer to **string** | | [optional] +**Website** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**EmailVerified** | Pointer to **bool** | | [optional] +**Gender** | Pointer to **string** | | [optional] +**Birthdate** | Pointer to **string** | | [optional] +**Zoneinfo** | Pointer to **string** | | [optional] +**Locale** | Pointer to **string** | | [optional] +**PhoneNumber** | Pointer to **string** | | [optional] +**PhoneNumberVerified** | Pointer to **bool** | | [optional] +**Address** | Pointer to [**AddressClaimSet**](AddressClaimSet.md) | | [optional] +**UpdatedAt** | Pointer to **int64** | | [optional] +**ClaimsLocales** | Pointer to **string** | | [optional] +**Acr** | Pointer to **string** | | [optional] +**SHash** | Pointer to **string** | | [optional] +**TrustedCerts** | Pointer to **[]string** | | [optional] +**AllowedOrigins** | Pointer to **[]string** | | [optional] +**RealmAccess** | Pointer to [**Access**](Access.md) | | [optional] +**ResourceAccess** | Pointer to [**map[string]Access**](Access.md) | | [optional] +**Authorization** | Pointer to [**Authorization**](Authorization.md) | | [optional] +**Cnf** | Pointer to [**Confirmation**](Confirmation.md) | | [optional] +**Scope** | Pointer to **string** | | [optional] + +## Methods + +### NewAccessToken + +`func NewAccessToken() *AccessToken` + +NewAccessToken instantiates a new AccessToken object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokenWithDefaults + +`func NewAccessTokenWithDefaults() *AccessToken` + +NewAccessTokenWithDefaults instantiates a new AccessToken object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJti + +`func (o *AccessToken) GetJti() string` + +GetJti returns the Jti field if non-nil, zero value otherwise. + +### GetJtiOk + +`func (o *AccessToken) GetJtiOk() (*string, bool)` + +GetJtiOk returns a tuple with the Jti field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJti + +`func (o *AccessToken) SetJti(v string)` + +SetJti sets Jti field to given value. + +### HasJti + +`func (o *AccessToken) HasJti() bool` + +HasJti returns a boolean if a field has been set. + +### GetExp + +`func (o *AccessToken) GetExp() int64` + +GetExp returns the Exp field if non-nil, zero value otherwise. + +### GetExpOk + +`func (o *AccessToken) GetExpOk() (*int64, bool)` + +GetExpOk returns a tuple with the Exp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExp + +`func (o *AccessToken) SetExp(v int64)` + +SetExp sets Exp field to given value. + +### HasExp + +`func (o *AccessToken) HasExp() bool` + +HasExp returns a boolean if a field has been set. + +### GetNbf + +`func (o *AccessToken) GetNbf() int64` + +GetNbf returns the Nbf field if non-nil, zero value otherwise. + +### GetNbfOk + +`func (o *AccessToken) GetNbfOk() (*int64, bool)` + +GetNbfOk returns a tuple with the Nbf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNbf + +`func (o *AccessToken) SetNbf(v int64)` + +SetNbf sets Nbf field to given value. + +### HasNbf + +`func (o *AccessToken) HasNbf() bool` + +HasNbf returns a boolean if a field has been set. + +### GetIat + +`func (o *AccessToken) GetIat() int64` + +GetIat returns the Iat field if non-nil, zero value otherwise. + +### GetIatOk + +`func (o *AccessToken) GetIatOk() (*int64, bool)` + +GetIatOk returns a tuple with the Iat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIat + +`func (o *AccessToken) SetIat(v int64)` + +SetIat sets Iat field to given value. + +### HasIat + +`func (o *AccessToken) HasIat() bool` + +HasIat returns a boolean if a field has been set. + +### GetIss + +`func (o *AccessToken) GetIss() string` + +GetIss returns the Iss field if non-nil, zero value otherwise. + +### GetIssOk + +`func (o *AccessToken) GetIssOk() (*string, bool)` + +GetIssOk returns a tuple with the Iss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIss + +`func (o *AccessToken) SetIss(v string)` + +SetIss sets Iss field to given value. + +### HasIss + +`func (o *AccessToken) HasIss() bool` + +HasIss returns a boolean if a field has been set. + +### GetSub + +`func (o *AccessToken) GetSub() string` + +GetSub returns the Sub field if non-nil, zero value otherwise. + +### GetSubOk + +`func (o *AccessToken) GetSubOk() (*string, bool)` + +GetSubOk returns a tuple with the Sub field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSub + +`func (o *AccessToken) SetSub(v string)` + +SetSub sets Sub field to given value. + +### HasSub + +`func (o *AccessToken) HasSub() bool` + +HasSub returns a boolean if a field has been set. + +### GetTyp + +`func (o *AccessToken) GetTyp() string` + +GetTyp returns the Typ field if non-nil, zero value otherwise. + +### GetTypOk + +`func (o *AccessToken) GetTypOk() (*string, bool)` + +GetTypOk returns a tuple with the Typ field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTyp + +`func (o *AccessToken) SetTyp(v string)` + +SetTyp sets Typ field to given value. + +### HasTyp + +`func (o *AccessToken) HasTyp() bool` + +HasTyp returns a boolean if a field has been set. + +### GetAzp + +`func (o *AccessToken) GetAzp() string` + +GetAzp returns the Azp field if non-nil, zero value otherwise. + +### GetAzpOk + +`func (o *AccessToken) GetAzpOk() (*string, bool)` + +GetAzpOk returns a tuple with the Azp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzp + +`func (o *AccessToken) SetAzp(v string)` + +SetAzp sets Azp field to given value. + +### HasAzp + +`func (o *AccessToken) HasAzp() bool` + +HasAzp returns a boolean if a field has been set. + +### GetOtherClaims + +`func (o *AccessToken) GetOtherClaims() map[string]interface{}` + +GetOtherClaims returns the OtherClaims field if non-nil, zero value otherwise. + +### GetOtherClaimsOk + +`func (o *AccessToken) GetOtherClaimsOk() (*map[string]interface{}, bool)` + +GetOtherClaimsOk returns a tuple with the OtherClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtherClaims + +`func (o *AccessToken) SetOtherClaims(v map[string]interface{})` + +SetOtherClaims sets OtherClaims field to given value. + +### HasOtherClaims + +`func (o *AccessToken) HasOtherClaims() bool` + +HasOtherClaims returns a boolean if a field has been set. + +### GetNonce + +`func (o *AccessToken) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *AccessToken) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *AccessToken) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *AccessToken) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetAuthTime + +`func (o *AccessToken) GetAuthTime() int64` + +GetAuthTime returns the AuthTime field if non-nil, zero value otherwise. + +### GetAuthTimeOk + +`func (o *AccessToken) GetAuthTimeOk() (*int64, bool)` + +GetAuthTimeOk returns a tuple with the AuthTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthTime + +`func (o *AccessToken) SetAuthTime(v int64)` + +SetAuthTime sets AuthTime field to given value. + +### HasAuthTime + +`func (o *AccessToken) HasAuthTime() bool` + +HasAuthTime returns a boolean if a field has been set. + +### GetSid + +`func (o *AccessToken) GetSid() string` + +GetSid returns the Sid field if non-nil, zero value otherwise. + +### GetSidOk + +`func (o *AccessToken) 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 *AccessToken) SetSid(v string)` + +SetSid sets Sid field to given value. + +### HasSid + +`func (o *AccessToken) HasSid() bool` + +HasSid returns a boolean if a field has been set. + +### GetAtHash + +`func (o *AccessToken) GetAtHash() string` + +GetAtHash returns the AtHash field if non-nil, zero value otherwise. + +### GetAtHashOk + +`func (o *AccessToken) GetAtHashOk() (*string, bool)` + +GetAtHashOk returns a tuple with the AtHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAtHash + +`func (o *AccessToken) SetAtHash(v string)` + +SetAtHash sets AtHash field to given value. + +### HasAtHash + +`func (o *AccessToken) HasAtHash() bool` + +HasAtHash returns a boolean if a field has been set. + +### GetCHash + +`func (o *AccessToken) GetCHash() string` + +GetCHash returns the CHash field if non-nil, zero value otherwise. + +### GetCHashOk + +`func (o *AccessToken) GetCHashOk() (*string, bool)` + +GetCHashOk returns a tuple with the CHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCHash + +`func (o *AccessToken) SetCHash(v string)` + +SetCHash sets CHash field to given value. + +### HasCHash + +`func (o *AccessToken) HasCHash() bool` + +HasCHash returns a boolean if a field has been set. + +### GetName + +`func (o *AccessToken) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccessToken) 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 *AccessToken) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AccessToken) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetGivenName + +`func (o *AccessToken) GetGivenName() string` + +GetGivenName returns the GivenName field if non-nil, zero value otherwise. + +### GetGivenNameOk + +`func (o *AccessToken) GetGivenNameOk() (*string, bool)` + +GetGivenNameOk returns a tuple with the GivenName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGivenName + +`func (o *AccessToken) SetGivenName(v string)` + +SetGivenName sets GivenName field to given value. + +### HasGivenName + +`func (o *AccessToken) HasGivenName() bool` + +HasGivenName returns a boolean if a field has been set. + +### GetFamilyName + +`func (o *AccessToken) GetFamilyName() string` + +GetFamilyName returns the FamilyName field if non-nil, zero value otherwise. + +### GetFamilyNameOk + +`func (o *AccessToken) GetFamilyNameOk() (*string, bool)` + +GetFamilyNameOk returns a tuple with the FamilyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamilyName + +`func (o *AccessToken) SetFamilyName(v string)` + +SetFamilyName sets FamilyName field to given value. + +### HasFamilyName + +`func (o *AccessToken) HasFamilyName() bool` + +HasFamilyName returns a boolean if a field has been set. + +### GetMiddleName + +`func (o *AccessToken) GetMiddleName() string` + +GetMiddleName returns the MiddleName field if non-nil, zero value otherwise. + +### GetMiddleNameOk + +`func (o *AccessToken) GetMiddleNameOk() (*string, bool)` + +GetMiddleNameOk returns a tuple with the MiddleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiddleName + +`func (o *AccessToken) SetMiddleName(v string)` + +SetMiddleName sets MiddleName field to given value. + +### HasMiddleName + +`func (o *AccessToken) HasMiddleName() bool` + +HasMiddleName returns a boolean if a field has been set. + +### GetNickname + +`func (o *AccessToken) GetNickname() string` + +GetNickname returns the Nickname field if non-nil, zero value otherwise. + +### GetNicknameOk + +`func (o *AccessToken) GetNicknameOk() (*string, bool)` + +GetNicknameOk returns a tuple with the Nickname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNickname + +`func (o *AccessToken) SetNickname(v string)` + +SetNickname sets Nickname field to given value. + +### HasNickname + +`func (o *AccessToken) HasNickname() bool` + +HasNickname returns a boolean if a field has been set. + +### GetPreferredUsername + +`func (o *AccessToken) GetPreferredUsername() string` + +GetPreferredUsername returns the PreferredUsername field if non-nil, zero value otherwise. + +### GetPreferredUsernameOk + +`func (o *AccessToken) GetPreferredUsernameOk() (*string, bool)` + +GetPreferredUsernameOk returns a tuple with the PreferredUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredUsername + +`func (o *AccessToken) SetPreferredUsername(v string)` + +SetPreferredUsername sets PreferredUsername field to given value. + +### HasPreferredUsername + +`func (o *AccessToken) HasPreferredUsername() bool` + +HasPreferredUsername returns a boolean if a field has been set. + +### GetProfile + +`func (o *AccessToken) GetProfile() string` + +GetProfile returns the Profile field if non-nil, zero value otherwise. + +### GetProfileOk + +`func (o *AccessToken) GetProfileOk() (*string, bool)` + +GetProfileOk returns a tuple with the Profile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfile + +`func (o *AccessToken) SetProfile(v string)` + +SetProfile sets Profile field to given value. + +### HasProfile + +`func (o *AccessToken) HasProfile() bool` + +HasProfile returns a boolean if a field has been set. + +### GetPicture + +`func (o *AccessToken) GetPicture() string` + +GetPicture returns the Picture field if non-nil, zero value otherwise. + +### GetPictureOk + +`func (o *AccessToken) GetPictureOk() (*string, bool)` + +GetPictureOk returns a tuple with the Picture field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPicture + +`func (o *AccessToken) SetPicture(v string)` + +SetPicture sets Picture field to given value. + +### HasPicture + +`func (o *AccessToken) HasPicture() bool` + +HasPicture returns a boolean if a field has been set. + +### GetWebsite + +`func (o *AccessToken) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *AccessToken) GetWebsiteOk() (*string, bool)` + +GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsite + +`func (o *AccessToken) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *AccessToken) HasWebsite() bool` + +HasWebsite returns a boolean if a field has been set. + +### GetEmail + +`func (o *AccessToken) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *AccessToken) 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 *AccessToken) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *AccessToken) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetEmailVerified + +`func (o *AccessToken) GetEmailVerified() bool` + +GetEmailVerified returns the EmailVerified field if non-nil, zero value otherwise. + +### GetEmailVerifiedOk + +`func (o *AccessToken) GetEmailVerifiedOk() (*bool, bool)` + +GetEmailVerifiedOk returns a tuple with the EmailVerified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailVerified + +`func (o *AccessToken) SetEmailVerified(v bool)` + +SetEmailVerified sets EmailVerified field to given value. + +### HasEmailVerified + +`func (o *AccessToken) HasEmailVerified() bool` + +HasEmailVerified returns a boolean if a field has been set. + +### GetGender + +`func (o *AccessToken) GetGender() string` + +GetGender returns the Gender field if non-nil, zero value otherwise. + +### GetGenderOk + +`func (o *AccessToken) GetGenderOk() (*string, bool)` + +GetGenderOk returns a tuple with the Gender field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGender + +`func (o *AccessToken) SetGender(v string)` + +SetGender sets Gender field to given value. + +### HasGender + +`func (o *AccessToken) HasGender() bool` + +HasGender returns a boolean if a field has been set. + +### GetBirthdate + +`func (o *AccessToken) GetBirthdate() string` + +GetBirthdate returns the Birthdate field if non-nil, zero value otherwise. + +### GetBirthdateOk + +`func (o *AccessToken) GetBirthdateOk() (*string, bool)` + +GetBirthdateOk returns a tuple with the Birthdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBirthdate + +`func (o *AccessToken) SetBirthdate(v string)` + +SetBirthdate sets Birthdate field to given value. + +### HasBirthdate + +`func (o *AccessToken) HasBirthdate() bool` + +HasBirthdate returns a boolean if a field has been set. + +### GetZoneinfo + +`func (o *AccessToken) GetZoneinfo() string` + +GetZoneinfo returns the Zoneinfo field if non-nil, zero value otherwise. + +### GetZoneinfoOk + +`func (o *AccessToken) GetZoneinfoOk() (*string, bool)` + +GetZoneinfoOk returns a tuple with the Zoneinfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZoneinfo + +`func (o *AccessToken) SetZoneinfo(v string)` + +SetZoneinfo sets Zoneinfo field to given value. + +### HasZoneinfo + +`func (o *AccessToken) HasZoneinfo() bool` + +HasZoneinfo returns a boolean if a field has been set. + +### GetLocale + +`func (o *AccessToken) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *AccessToken) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *AccessToken) SetLocale(v string)` + +SetLocale sets Locale field to given value. + +### HasLocale + +`func (o *AccessToken) HasLocale() bool` + +HasLocale returns a boolean if a field has been set. + +### GetPhoneNumber + +`func (o *AccessToken) GetPhoneNumber() string` + +GetPhoneNumber returns the PhoneNumber field if non-nil, zero value otherwise. + +### GetPhoneNumberOk + +`func (o *AccessToken) GetPhoneNumberOk() (*string, bool)` + +GetPhoneNumberOk returns a tuple with the PhoneNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhoneNumber + +`func (o *AccessToken) SetPhoneNumber(v string)` + +SetPhoneNumber sets PhoneNumber field to given value. + +### HasPhoneNumber + +`func (o *AccessToken) HasPhoneNumber() bool` + +HasPhoneNumber returns a boolean if a field has been set. + +### GetPhoneNumberVerified + +`func (o *AccessToken) GetPhoneNumberVerified() bool` + +GetPhoneNumberVerified returns the PhoneNumberVerified field if non-nil, zero value otherwise. + +### GetPhoneNumberVerifiedOk + +`func (o *AccessToken) GetPhoneNumberVerifiedOk() (*bool, bool)` + +GetPhoneNumberVerifiedOk returns a tuple with the PhoneNumberVerified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhoneNumberVerified + +`func (o *AccessToken) SetPhoneNumberVerified(v bool)` + +SetPhoneNumberVerified sets PhoneNumberVerified field to given value. + +### HasPhoneNumberVerified + +`func (o *AccessToken) HasPhoneNumberVerified() bool` + +HasPhoneNumberVerified returns a boolean if a field has been set. + +### GetAddress + +`func (o *AccessToken) GetAddress() AddressClaimSet` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *AccessToken) GetAddressOk() (*AddressClaimSet, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *AccessToken) SetAddress(v AddressClaimSet)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *AccessToken) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *AccessToken) GetUpdatedAt() int64` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccessToken) GetUpdatedAtOk() (*int64, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccessToken) SetUpdatedAt(v int64)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AccessToken) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetClaimsLocales + +`func (o *AccessToken) GetClaimsLocales() string` + +GetClaimsLocales returns the ClaimsLocales field if non-nil, zero value otherwise. + +### GetClaimsLocalesOk + +`func (o *AccessToken) GetClaimsLocalesOk() (*string, bool)` + +GetClaimsLocalesOk returns a tuple with the ClaimsLocales field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsLocales + +`func (o *AccessToken) SetClaimsLocales(v string)` + +SetClaimsLocales sets ClaimsLocales field to given value. + +### HasClaimsLocales + +`func (o *AccessToken) HasClaimsLocales() bool` + +HasClaimsLocales returns a boolean if a field has been set. + +### GetAcr + +`func (o *AccessToken) GetAcr() string` + +GetAcr returns the Acr field if non-nil, zero value otherwise. + +### GetAcrOk + +`func (o *AccessToken) GetAcrOk() (*string, bool)` + +GetAcrOk returns a tuple with the Acr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcr + +`func (o *AccessToken) SetAcr(v string)` + +SetAcr sets Acr field to given value. + +### HasAcr + +`func (o *AccessToken) HasAcr() bool` + +HasAcr returns a boolean if a field has been set. + +### GetSHash + +`func (o *AccessToken) GetSHash() string` + +GetSHash returns the SHash field if non-nil, zero value otherwise. + +### GetSHashOk + +`func (o *AccessToken) GetSHashOk() (*string, bool)` + +GetSHashOk returns a tuple with the SHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSHash + +`func (o *AccessToken) SetSHash(v string)` + +SetSHash sets SHash field to given value. + +### HasSHash + +`func (o *AccessToken) HasSHash() bool` + +HasSHash returns a boolean if a field has been set. + +### GetTrustedCerts + +`func (o *AccessToken) GetTrustedCerts() []string` + +GetTrustedCerts returns the TrustedCerts field if non-nil, zero value otherwise. + +### GetTrustedCertsOk + +`func (o *AccessToken) GetTrustedCertsOk() (*[]string, bool)` + +GetTrustedCertsOk returns a tuple with the TrustedCerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustedCerts + +`func (o *AccessToken) SetTrustedCerts(v []string)` + +SetTrustedCerts sets TrustedCerts field to given value. + +### HasTrustedCerts + +`func (o *AccessToken) HasTrustedCerts() bool` + +HasTrustedCerts returns a boolean if a field has been set. + +### GetAllowedOrigins + +`func (o *AccessToken) GetAllowedOrigins() []string` + +GetAllowedOrigins returns the AllowedOrigins field if non-nil, zero value otherwise. + +### GetAllowedOriginsOk + +`func (o *AccessToken) GetAllowedOriginsOk() (*[]string, bool)` + +GetAllowedOriginsOk returns a tuple with the AllowedOrigins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedOrigins + +`func (o *AccessToken) SetAllowedOrigins(v []string)` + +SetAllowedOrigins sets AllowedOrigins field to given value. + +### HasAllowedOrigins + +`func (o *AccessToken) HasAllowedOrigins() bool` + +HasAllowedOrigins returns a boolean if a field has been set. + +### GetRealmAccess + +`func (o *AccessToken) GetRealmAccess() Access` + +GetRealmAccess returns the RealmAccess field if non-nil, zero value otherwise. + +### GetRealmAccessOk + +`func (o *AccessToken) GetRealmAccessOk() (*Access, bool)` + +GetRealmAccessOk returns a tuple with the RealmAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmAccess + +`func (o *AccessToken) SetRealmAccess(v Access)` + +SetRealmAccess sets RealmAccess field to given value. + +### HasRealmAccess + +`func (o *AccessToken) HasRealmAccess() bool` + +HasRealmAccess returns a boolean if a field has been set. + +### GetResourceAccess + +`func (o *AccessToken) GetResourceAccess() map[string]Access` + +GetResourceAccess returns the ResourceAccess field if non-nil, zero value otherwise. + +### GetResourceAccessOk + +`func (o *AccessToken) GetResourceAccessOk() (*map[string]Access, bool)` + +GetResourceAccessOk returns a tuple with the ResourceAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceAccess + +`func (o *AccessToken) SetResourceAccess(v map[string]Access)` + +SetResourceAccess sets ResourceAccess field to given value. + +### HasResourceAccess + +`func (o *AccessToken) HasResourceAccess() bool` + +HasResourceAccess returns a boolean if a field has been set. + +### GetAuthorization + +`func (o *AccessToken) GetAuthorization() Authorization` + +GetAuthorization returns the Authorization field if non-nil, zero value otherwise. + +### GetAuthorizationOk + +`func (o *AccessToken) GetAuthorizationOk() (*Authorization, bool)` + +GetAuthorizationOk returns a tuple with the Authorization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorization + +`func (o *AccessToken) SetAuthorization(v Authorization)` + +SetAuthorization sets Authorization field to given value. + +### HasAuthorization + +`func (o *AccessToken) HasAuthorization() bool` + +HasAuthorization returns a boolean if a field has been set. + +### GetCnf + +`func (o *AccessToken) GetCnf() Confirmation` + +GetCnf returns the Cnf field if non-nil, zero value otherwise. + +### GetCnfOk + +`func (o *AccessToken) GetCnfOk() (*Confirmation, bool)` + +GetCnfOk returns a tuple with the Cnf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCnf + +`func (o *AccessToken) SetCnf(v Confirmation)` + +SetCnf sets Cnf field to given value. + +### HasCnf + +`func (o *AccessToken) HasCnf() bool` + +HasCnf returns a boolean if a field has been set. + +### GetScope + +`func (o *AccessToken) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *AccessToken) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *AccessToken) SetScope(v string)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *AccessToken) HasScope() bool` + +HasScope returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AddressClaimSet.md b/docs/AddressClaimSet.md new file mode 100644 index 0000000..8ccdf7e --- /dev/null +++ b/docs/AddressClaimSet.md @@ -0,0 +1,186 @@ +# AddressClaimSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Formatted** | Pointer to **string** | | [optional] +**StreetAddress** | Pointer to **string** | | [optional] +**Locality** | Pointer to **string** | | [optional] +**Region** | Pointer to **string** | | [optional] +**PostalCode** | Pointer to **string** | | [optional] +**Country** | Pointer to **string** | | [optional] + +## Methods + +### NewAddressClaimSet + +`func NewAddressClaimSet() *AddressClaimSet` + +NewAddressClaimSet instantiates a new AddressClaimSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddressClaimSetWithDefaults + +`func NewAddressClaimSetWithDefaults() *AddressClaimSet` + +NewAddressClaimSetWithDefaults instantiates a new AddressClaimSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFormatted + +`func (o *AddressClaimSet) GetFormatted() string` + +GetFormatted returns the Formatted field if non-nil, zero value otherwise. + +### GetFormattedOk + +`func (o *AddressClaimSet) GetFormattedOk() (*string, bool)` + +GetFormattedOk returns a tuple with the Formatted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormatted + +`func (o *AddressClaimSet) SetFormatted(v string)` + +SetFormatted sets Formatted field to given value. + +### HasFormatted + +`func (o *AddressClaimSet) HasFormatted() bool` + +HasFormatted returns a boolean if a field has been set. + +### GetStreetAddress + +`func (o *AddressClaimSet) GetStreetAddress() string` + +GetStreetAddress returns the StreetAddress field if non-nil, zero value otherwise. + +### GetStreetAddressOk + +`func (o *AddressClaimSet) GetStreetAddressOk() (*string, bool)` + +GetStreetAddressOk returns a tuple with the StreetAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreetAddress + +`func (o *AddressClaimSet) SetStreetAddress(v string)` + +SetStreetAddress sets StreetAddress field to given value. + +### HasStreetAddress + +`func (o *AddressClaimSet) HasStreetAddress() bool` + +HasStreetAddress returns a boolean if a field has been set. + +### GetLocality + +`func (o *AddressClaimSet) GetLocality() string` + +GetLocality returns the Locality field if non-nil, zero value otherwise. + +### GetLocalityOk + +`func (o *AddressClaimSet) GetLocalityOk() (*string, bool)` + +GetLocalityOk returns a tuple with the Locality field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocality + +`func (o *AddressClaimSet) SetLocality(v string)` + +SetLocality sets Locality field to given value. + +### HasLocality + +`func (o *AddressClaimSet) HasLocality() bool` + +HasLocality returns a boolean if a field has been set. + +### GetRegion + +`func (o *AddressClaimSet) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *AddressClaimSet) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *AddressClaimSet) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *AddressClaimSet) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetPostalCode + +`func (o *AddressClaimSet) GetPostalCode() string` + +GetPostalCode returns the PostalCode field if non-nil, zero value otherwise. + +### GetPostalCodeOk + +`func (o *AddressClaimSet) GetPostalCodeOk() (*string, bool)` + +GetPostalCodeOk returns a tuple with the PostalCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostalCode + +`func (o *AddressClaimSet) SetPostalCode(v string)` + +SetPostalCode sets PostalCode field to given value. + +### HasPostalCode + +`func (o *AddressClaimSet) HasPostalCode() bool` + +HasPostalCode returns a boolean if a field has been set. + +### GetCountry + +`func (o *AddressClaimSet) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *AddressClaimSet) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *AddressClaimSet) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *AddressClaimSet) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdminEventRepresentation.md b/docs/AdminEventRepresentation.md new file mode 100644 index 0000000..a6dab03 --- /dev/null +++ b/docs/AdminEventRepresentation.md @@ -0,0 +1,264 @@ +# AdminEventRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Time** | Pointer to **int64** | | [optional] +**RealmId** | Pointer to **string** | | [optional] +**AuthDetails** | Pointer to [**AuthDetailsRepresentation**](AuthDetailsRepresentation.md) | | [optional] +**OperationType** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**ResourcePath** | Pointer to **string** | | [optional] +**Representation** | Pointer to **string** | | [optional] +**Error** | Pointer to **string** | | [optional] +**Details** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewAdminEventRepresentation + +`func NewAdminEventRepresentation() *AdminEventRepresentation` + +NewAdminEventRepresentation instantiates a new AdminEventRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdminEventRepresentationWithDefaults + +`func NewAdminEventRepresentationWithDefaults() *AdminEventRepresentation` + +NewAdminEventRepresentationWithDefaults instantiates a new AdminEventRepresentation object +This 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 *AdminEventRepresentation) GetTime() int64` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *AdminEventRepresentation) GetTimeOk() (*int64, 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 *AdminEventRepresentation) SetTime(v int64)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *AdminEventRepresentation) HasTime() bool` + +HasTime returns a boolean if a field has been set. + +### GetRealmId + +`func (o *AdminEventRepresentation) GetRealmId() string` + +GetRealmId returns the RealmId field if non-nil, zero value otherwise. + +### GetRealmIdOk + +`func (o *AdminEventRepresentation) GetRealmIdOk() (*string, bool)` + +GetRealmIdOk returns a tuple with the RealmId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmId + +`func (o *AdminEventRepresentation) SetRealmId(v string)` + +SetRealmId sets RealmId field to given value. + +### HasRealmId + +`func (o *AdminEventRepresentation) HasRealmId() bool` + +HasRealmId returns a boolean if a field has been set. + +### GetAuthDetails + +`func (o *AdminEventRepresentation) GetAuthDetails() AuthDetailsRepresentation` + +GetAuthDetails returns the AuthDetails field if non-nil, zero value otherwise. + +### GetAuthDetailsOk + +`func (o *AdminEventRepresentation) GetAuthDetailsOk() (*AuthDetailsRepresentation, bool)` + +GetAuthDetailsOk returns a tuple with the AuthDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthDetails + +`func (o *AdminEventRepresentation) SetAuthDetails(v AuthDetailsRepresentation)` + +SetAuthDetails sets AuthDetails field to given value. + +### HasAuthDetails + +`func (o *AdminEventRepresentation) HasAuthDetails() bool` + +HasAuthDetails returns a boolean if a field has been set. + +### GetOperationType + +`func (o *AdminEventRepresentation) GetOperationType() string` + +GetOperationType returns the OperationType field if non-nil, zero value otherwise. + +### GetOperationTypeOk + +`func (o *AdminEventRepresentation) GetOperationTypeOk() (*string, 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 *AdminEventRepresentation) SetOperationType(v string)` + +SetOperationType sets OperationType field to given value. + +### HasOperationType + +`func (o *AdminEventRepresentation) HasOperationType() bool` + +HasOperationType returns a boolean if a field has been set. + +### GetResourceType + +`func (o *AdminEventRepresentation) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *AdminEventRepresentation) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *AdminEventRepresentation) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *AdminEventRepresentation) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetResourcePath + +`func (o *AdminEventRepresentation) GetResourcePath() string` + +GetResourcePath returns the ResourcePath field if non-nil, zero value otherwise. + +### GetResourcePathOk + +`func (o *AdminEventRepresentation) GetResourcePathOk() (*string, bool)` + +GetResourcePathOk returns a tuple with the ResourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourcePath + +`func (o *AdminEventRepresentation) SetResourcePath(v string)` + +SetResourcePath sets ResourcePath field to given value. + +### HasResourcePath + +`func (o *AdminEventRepresentation) HasResourcePath() bool` + +HasResourcePath returns a boolean if a field has been set. + +### GetRepresentation + +`func (o *AdminEventRepresentation) GetRepresentation() string` + +GetRepresentation returns the Representation field if non-nil, zero value otherwise. + +### GetRepresentationOk + +`func (o *AdminEventRepresentation) GetRepresentationOk() (*string, bool)` + +GetRepresentationOk returns a tuple with the Representation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepresentation + +`func (o *AdminEventRepresentation) SetRepresentation(v string)` + +SetRepresentation sets Representation field to given value. + +### HasRepresentation + +`func (o *AdminEventRepresentation) HasRepresentation() bool` + +HasRepresentation returns a boolean if a field has been set. + +### GetError + +`func (o *AdminEventRepresentation) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *AdminEventRepresentation) 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 *AdminEventRepresentation) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *AdminEventRepresentation) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetDetails + +`func (o *AdminEventRepresentation) GetDetails() map[string]string` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *AdminEventRepresentation) GetDetailsOk() (*map[string]string, 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 *AdminEventRepresentation) SetDetails(v map[string]string)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *AdminEventRepresentation) 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/docs/ApplicationRepresentation.md b/docs/ApplicationRepresentation.md new file mode 100644 index 0000000..66a37bf --- /dev/null +++ b/docs/ApplicationRepresentation.md @@ -0,0 +1,1200 @@ +# ApplicationRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**RootUrl** | Pointer to **string** | | [optional] +**AdminUrl** | Pointer to **string** | | [optional] +**BaseUrl** | Pointer to **string** | | [optional] +**SurrogateAuthRequired** | Pointer to **bool** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**AlwaysDisplayInConsole** | Pointer to **bool** | | [optional] +**ClientAuthenticatorType** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | | [optional] +**RegistrationAccessToken** | Pointer to **string** | | [optional] +**DefaultRoles** | Pointer to **[]string** | | [optional] +**RedirectUris** | Pointer to **[]string** | | [optional] +**WebOrigins** | Pointer to **[]string** | | [optional] +**NotBefore** | Pointer to **int32** | | [optional] +**BearerOnly** | Pointer to **bool** | | [optional] +**ConsentRequired** | Pointer to **bool** | | [optional] +**StandardFlowEnabled** | Pointer to **bool** | | [optional] +**ImplicitFlowEnabled** | Pointer to **bool** | | [optional] +**DirectAccessGrantsEnabled** | Pointer to **bool** | | [optional] +**ServiceAccountsEnabled** | Pointer to **bool** | | [optional] +**AuthorizationServicesEnabled** | Pointer to **bool** | | [optional] +**DirectGrantsOnly** | Pointer to **bool** | | [optional] +**PublicClient** | Pointer to **bool** | | [optional] +**FrontchannelLogout** | Pointer to **bool** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**Attributes** | Pointer to **map[string]string** | | [optional] +**AuthenticationFlowBindingOverrides** | Pointer to **map[string]string** | | [optional] +**FullScopeAllowed** | Pointer to **bool** | | [optional] +**NodeReRegistrationTimeout** | Pointer to **int32** | | [optional] +**RegisteredNodes** | Pointer to **map[string]int32** | | [optional] +**ProtocolMappers** | Pointer to [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | [optional] +**ClientTemplate** | Pointer to **string** | | [optional] +**UseTemplateConfig** | Pointer to **bool** | | [optional] +**UseTemplateScope** | Pointer to **bool** | | [optional] +**UseTemplateMappers** | Pointer to **bool** | | [optional] +**DefaultClientScopes** | Pointer to **[]string** | | [optional] +**OptionalClientScopes** | Pointer to **[]string** | | [optional] +**AuthorizationSettings** | Pointer to [**ResourceServerRepresentation**](ResourceServerRepresentation.md) | | [optional] +**Access** | Pointer to **map[string]bool** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Claims** | Pointer to [**ClaimRepresentation**](ClaimRepresentation.md) | | [optional] + +## Methods + +### NewApplicationRepresentation + +`func NewApplicationRepresentation() *ApplicationRepresentation` + +NewApplicationRepresentation instantiates a new ApplicationRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApplicationRepresentationWithDefaults + +`func NewApplicationRepresentationWithDefaults() *ApplicationRepresentation` + +NewApplicationRepresentationWithDefaults instantiates a new ApplicationRepresentation object +This 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 *ApplicationRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ApplicationRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientId + +`func (o *ApplicationRepresentation) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ApplicationRepresentation) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ApplicationRepresentation) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ApplicationRepresentation) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetDescription + +`func (o *ApplicationRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ApplicationRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *ApplicationRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ApplicationRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetRootUrl + +`func (o *ApplicationRepresentation) GetRootUrl() string` + +GetRootUrl returns the RootUrl field if non-nil, zero value otherwise. + +### GetRootUrlOk + +`func (o *ApplicationRepresentation) GetRootUrlOk() (*string, bool)` + +GetRootUrlOk returns a tuple with the RootUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRootUrl + +`func (o *ApplicationRepresentation) SetRootUrl(v string)` + +SetRootUrl sets RootUrl field to given value. + +### HasRootUrl + +`func (o *ApplicationRepresentation) HasRootUrl() bool` + +HasRootUrl returns a boolean if a field has been set. + +### GetAdminUrl + +`func (o *ApplicationRepresentation) GetAdminUrl() string` + +GetAdminUrl returns the AdminUrl field if non-nil, zero value otherwise. + +### GetAdminUrlOk + +`func (o *ApplicationRepresentation) GetAdminUrlOk() (*string, bool)` + +GetAdminUrlOk returns a tuple with the AdminUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminUrl + +`func (o *ApplicationRepresentation) SetAdminUrl(v string)` + +SetAdminUrl sets AdminUrl field to given value. + +### HasAdminUrl + +`func (o *ApplicationRepresentation) HasAdminUrl() bool` + +HasAdminUrl returns a boolean if a field has been set. + +### GetBaseUrl + +`func (o *ApplicationRepresentation) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *ApplicationRepresentation) GetBaseUrlOk() (*string, bool)` + +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseUrl + +`func (o *ApplicationRepresentation) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *ApplicationRepresentation) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + +### GetSurrogateAuthRequired + +`func (o *ApplicationRepresentation) GetSurrogateAuthRequired() bool` + +GetSurrogateAuthRequired returns the SurrogateAuthRequired field if non-nil, zero value otherwise. + +### GetSurrogateAuthRequiredOk + +`func (o *ApplicationRepresentation) GetSurrogateAuthRequiredOk() (*bool, bool)` + +GetSurrogateAuthRequiredOk returns a tuple with the SurrogateAuthRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSurrogateAuthRequired + +`func (o *ApplicationRepresentation) SetSurrogateAuthRequired(v bool)` + +SetSurrogateAuthRequired sets SurrogateAuthRequired field to given value. + +### HasSurrogateAuthRequired + +`func (o *ApplicationRepresentation) HasSurrogateAuthRequired() bool` + +HasSurrogateAuthRequired returns a boolean if a field has been set. + +### GetEnabled + +`func (o *ApplicationRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ApplicationRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetAlwaysDisplayInConsole + +`func (o *ApplicationRepresentation) GetAlwaysDisplayInConsole() bool` + +GetAlwaysDisplayInConsole returns the AlwaysDisplayInConsole field if non-nil, zero value otherwise. + +### GetAlwaysDisplayInConsoleOk + +`func (o *ApplicationRepresentation) GetAlwaysDisplayInConsoleOk() (*bool, bool)` + +GetAlwaysDisplayInConsoleOk returns a tuple with the AlwaysDisplayInConsole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlwaysDisplayInConsole + +`func (o *ApplicationRepresentation) SetAlwaysDisplayInConsole(v bool)` + +SetAlwaysDisplayInConsole sets AlwaysDisplayInConsole field to given value. + +### HasAlwaysDisplayInConsole + +`func (o *ApplicationRepresentation) HasAlwaysDisplayInConsole() bool` + +HasAlwaysDisplayInConsole returns a boolean if a field has been set. + +### GetClientAuthenticatorType + +`func (o *ApplicationRepresentation) GetClientAuthenticatorType() string` + +GetClientAuthenticatorType returns the ClientAuthenticatorType field if non-nil, zero value otherwise. + +### GetClientAuthenticatorTypeOk + +`func (o *ApplicationRepresentation) GetClientAuthenticatorTypeOk() (*string, bool)` + +GetClientAuthenticatorTypeOk returns a tuple with the ClientAuthenticatorType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAuthenticatorType + +`func (o *ApplicationRepresentation) SetClientAuthenticatorType(v string)` + +SetClientAuthenticatorType sets ClientAuthenticatorType field to given value. + +### HasClientAuthenticatorType + +`func (o *ApplicationRepresentation) HasClientAuthenticatorType() bool` + +HasClientAuthenticatorType returns a boolean if a field has been set. + +### GetSecret + +`func (o *ApplicationRepresentation) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ApplicationRepresentation) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *ApplicationRepresentation) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ApplicationRepresentation) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetRegistrationAccessToken + +`func (o *ApplicationRepresentation) GetRegistrationAccessToken() string` + +GetRegistrationAccessToken returns the RegistrationAccessToken field if non-nil, zero value otherwise. + +### GetRegistrationAccessTokenOk + +`func (o *ApplicationRepresentation) GetRegistrationAccessTokenOk() (*string, bool)` + +GetRegistrationAccessTokenOk returns a tuple with the RegistrationAccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistrationAccessToken + +`func (o *ApplicationRepresentation) SetRegistrationAccessToken(v string)` + +SetRegistrationAccessToken sets RegistrationAccessToken field to given value. + +### HasRegistrationAccessToken + +`func (o *ApplicationRepresentation) HasRegistrationAccessToken() bool` + +HasRegistrationAccessToken returns a boolean if a field has been set. + +### GetDefaultRoles + +`func (o *ApplicationRepresentation) GetDefaultRoles() []string` + +GetDefaultRoles returns the DefaultRoles field if non-nil, zero value otherwise. + +### GetDefaultRolesOk + +`func (o *ApplicationRepresentation) GetDefaultRolesOk() (*[]string, bool)` + +GetDefaultRolesOk returns a tuple with the DefaultRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultRoles + +`func (o *ApplicationRepresentation) SetDefaultRoles(v []string)` + +SetDefaultRoles sets DefaultRoles field to given value. + +### HasDefaultRoles + +`func (o *ApplicationRepresentation) HasDefaultRoles() bool` + +HasDefaultRoles returns a boolean if a field has been set. + +### GetRedirectUris + +`func (o *ApplicationRepresentation) GetRedirectUris() []string` + +GetRedirectUris returns the RedirectUris field if non-nil, zero value otherwise. + +### GetRedirectUrisOk + +`func (o *ApplicationRepresentation) GetRedirectUrisOk() (*[]string, bool)` + +GetRedirectUrisOk returns a tuple with the RedirectUris field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirectUris + +`func (o *ApplicationRepresentation) SetRedirectUris(v []string)` + +SetRedirectUris sets RedirectUris field to given value. + +### HasRedirectUris + +`func (o *ApplicationRepresentation) HasRedirectUris() bool` + +HasRedirectUris returns a boolean if a field has been set. + +### GetWebOrigins + +`func (o *ApplicationRepresentation) GetWebOrigins() []string` + +GetWebOrigins returns the WebOrigins field if non-nil, zero value otherwise. + +### GetWebOriginsOk + +`func (o *ApplicationRepresentation) GetWebOriginsOk() (*[]string, bool)` + +GetWebOriginsOk returns a tuple with the WebOrigins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebOrigins + +`func (o *ApplicationRepresentation) SetWebOrigins(v []string)` + +SetWebOrigins sets WebOrigins field to given value. + +### HasWebOrigins + +`func (o *ApplicationRepresentation) HasWebOrigins() bool` + +HasWebOrigins returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *ApplicationRepresentation) GetNotBefore() int32` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *ApplicationRepresentation) GetNotBeforeOk() (*int32, 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 *ApplicationRepresentation) SetNotBefore(v int32)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *ApplicationRepresentation) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetBearerOnly + +`func (o *ApplicationRepresentation) GetBearerOnly() bool` + +GetBearerOnly returns the BearerOnly field if non-nil, zero value otherwise. + +### GetBearerOnlyOk + +`func (o *ApplicationRepresentation) GetBearerOnlyOk() (*bool, bool)` + +GetBearerOnlyOk returns a tuple with the BearerOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBearerOnly + +`func (o *ApplicationRepresentation) SetBearerOnly(v bool)` + +SetBearerOnly sets BearerOnly field to given value. + +### HasBearerOnly + +`func (o *ApplicationRepresentation) HasBearerOnly() bool` + +HasBearerOnly returns a boolean if a field has been set. + +### GetConsentRequired + +`func (o *ApplicationRepresentation) GetConsentRequired() bool` + +GetConsentRequired returns the ConsentRequired field if non-nil, zero value otherwise. + +### GetConsentRequiredOk + +`func (o *ApplicationRepresentation) GetConsentRequiredOk() (*bool, bool)` + +GetConsentRequiredOk returns a tuple with the ConsentRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsentRequired + +`func (o *ApplicationRepresentation) SetConsentRequired(v bool)` + +SetConsentRequired sets ConsentRequired field to given value. + +### HasConsentRequired + +`func (o *ApplicationRepresentation) HasConsentRequired() bool` + +HasConsentRequired returns a boolean if a field has been set. + +### GetStandardFlowEnabled + +`func (o *ApplicationRepresentation) GetStandardFlowEnabled() bool` + +GetStandardFlowEnabled returns the StandardFlowEnabled field if non-nil, zero value otherwise. + +### GetStandardFlowEnabledOk + +`func (o *ApplicationRepresentation) GetStandardFlowEnabledOk() (*bool, bool)` + +GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandardFlowEnabled + +`func (o *ApplicationRepresentation) SetStandardFlowEnabled(v bool)` + +SetStandardFlowEnabled sets StandardFlowEnabled field to given value. + +### HasStandardFlowEnabled + +`func (o *ApplicationRepresentation) HasStandardFlowEnabled() bool` + +HasStandardFlowEnabled returns a boolean if a field has been set. + +### GetImplicitFlowEnabled + +`func (o *ApplicationRepresentation) GetImplicitFlowEnabled() bool` + +GetImplicitFlowEnabled returns the ImplicitFlowEnabled field if non-nil, zero value otherwise. + +### GetImplicitFlowEnabledOk + +`func (o *ApplicationRepresentation) GetImplicitFlowEnabledOk() (*bool, bool)` + +GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImplicitFlowEnabled + +`func (o *ApplicationRepresentation) SetImplicitFlowEnabled(v bool)` + +SetImplicitFlowEnabled sets ImplicitFlowEnabled field to given value. + +### HasImplicitFlowEnabled + +`func (o *ApplicationRepresentation) HasImplicitFlowEnabled() bool` + +HasImplicitFlowEnabled returns a boolean if a field has been set. + +### GetDirectAccessGrantsEnabled + +`func (o *ApplicationRepresentation) GetDirectAccessGrantsEnabled() bool` + +GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field if non-nil, zero value otherwise. + +### GetDirectAccessGrantsEnabledOk + +`func (o *ApplicationRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool)` + +GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectAccessGrantsEnabled + +`func (o *ApplicationRepresentation) SetDirectAccessGrantsEnabled(v bool)` + +SetDirectAccessGrantsEnabled sets DirectAccessGrantsEnabled field to given value. + +### HasDirectAccessGrantsEnabled + +`func (o *ApplicationRepresentation) HasDirectAccessGrantsEnabled() bool` + +HasDirectAccessGrantsEnabled returns a boolean if a field has been set. + +### GetServiceAccountsEnabled + +`func (o *ApplicationRepresentation) GetServiceAccountsEnabled() bool` + +GetServiceAccountsEnabled returns the ServiceAccountsEnabled field if non-nil, zero value otherwise. + +### GetServiceAccountsEnabledOk + +`func (o *ApplicationRepresentation) GetServiceAccountsEnabledOk() (*bool, bool)` + +GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountsEnabled + +`func (o *ApplicationRepresentation) SetServiceAccountsEnabled(v bool)` + +SetServiceAccountsEnabled sets ServiceAccountsEnabled field to given value. + +### HasServiceAccountsEnabled + +`func (o *ApplicationRepresentation) HasServiceAccountsEnabled() bool` + +HasServiceAccountsEnabled returns a boolean if a field has been set. + +### GetAuthorizationServicesEnabled + +`func (o *ApplicationRepresentation) GetAuthorizationServicesEnabled() bool` + +GetAuthorizationServicesEnabled returns the AuthorizationServicesEnabled field if non-nil, zero value otherwise. + +### GetAuthorizationServicesEnabledOk + +`func (o *ApplicationRepresentation) GetAuthorizationServicesEnabledOk() (*bool, bool)` + +GetAuthorizationServicesEnabledOk returns a tuple with the AuthorizationServicesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationServicesEnabled + +`func (o *ApplicationRepresentation) SetAuthorizationServicesEnabled(v bool)` + +SetAuthorizationServicesEnabled sets AuthorizationServicesEnabled field to given value. + +### HasAuthorizationServicesEnabled + +`func (o *ApplicationRepresentation) HasAuthorizationServicesEnabled() bool` + +HasAuthorizationServicesEnabled returns a boolean if a field has been set. + +### GetDirectGrantsOnly + +`func (o *ApplicationRepresentation) GetDirectGrantsOnly() bool` + +GetDirectGrantsOnly returns the DirectGrantsOnly field if non-nil, zero value otherwise. + +### GetDirectGrantsOnlyOk + +`func (o *ApplicationRepresentation) GetDirectGrantsOnlyOk() (*bool, bool)` + +GetDirectGrantsOnlyOk returns a tuple with the DirectGrantsOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectGrantsOnly + +`func (o *ApplicationRepresentation) SetDirectGrantsOnly(v bool)` + +SetDirectGrantsOnly sets DirectGrantsOnly field to given value. + +### HasDirectGrantsOnly + +`func (o *ApplicationRepresentation) HasDirectGrantsOnly() bool` + +HasDirectGrantsOnly returns a boolean if a field has been set. + +### GetPublicClient + +`func (o *ApplicationRepresentation) GetPublicClient() bool` + +GetPublicClient returns the PublicClient field if non-nil, zero value otherwise. + +### GetPublicClientOk + +`func (o *ApplicationRepresentation) GetPublicClientOk() (*bool, bool)` + +GetPublicClientOk returns a tuple with the PublicClient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicClient + +`func (o *ApplicationRepresentation) SetPublicClient(v bool)` + +SetPublicClient sets PublicClient field to given value. + +### HasPublicClient + +`func (o *ApplicationRepresentation) HasPublicClient() bool` + +HasPublicClient returns a boolean if a field has been set. + +### GetFrontchannelLogout + +`func (o *ApplicationRepresentation) GetFrontchannelLogout() bool` + +GetFrontchannelLogout returns the FrontchannelLogout field if non-nil, zero value otherwise. + +### GetFrontchannelLogoutOk + +`func (o *ApplicationRepresentation) GetFrontchannelLogoutOk() (*bool, bool)` + +GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontchannelLogout + +`func (o *ApplicationRepresentation) SetFrontchannelLogout(v bool)` + +SetFrontchannelLogout sets FrontchannelLogout field to given value. + +### HasFrontchannelLogout + +`func (o *ApplicationRepresentation) HasFrontchannelLogout() bool` + +HasFrontchannelLogout returns a boolean if a field has been set. + +### GetProtocol + +`func (o *ApplicationRepresentation) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *ApplicationRepresentation) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *ApplicationRepresentation) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *ApplicationRepresentation) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetAttributes + +`func (o *ApplicationRepresentation) GetAttributes() map[string]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ApplicationRepresentation) GetAttributesOk() (*map[string]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ApplicationRepresentation) SetAttributes(v map[string]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *ApplicationRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetAuthenticationFlowBindingOverrides + +`func (o *ApplicationRepresentation) GetAuthenticationFlowBindingOverrides() map[string]string` + +GetAuthenticationFlowBindingOverrides returns the AuthenticationFlowBindingOverrides field if non-nil, zero value otherwise. + +### GetAuthenticationFlowBindingOverridesOk + +`func (o *ApplicationRepresentation) GetAuthenticationFlowBindingOverridesOk() (*map[string]string, bool)` + +GetAuthenticationFlowBindingOverridesOk returns a tuple with the AuthenticationFlowBindingOverrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationFlowBindingOverrides + +`func (o *ApplicationRepresentation) SetAuthenticationFlowBindingOverrides(v map[string]string)` + +SetAuthenticationFlowBindingOverrides sets AuthenticationFlowBindingOverrides field to given value. + +### HasAuthenticationFlowBindingOverrides + +`func (o *ApplicationRepresentation) HasAuthenticationFlowBindingOverrides() bool` + +HasAuthenticationFlowBindingOverrides returns a boolean if a field has been set. + +### GetFullScopeAllowed + +`func (o *ApplicationRepresentation) GetFullScopeAllowed() bool` + +GetFullScopeAllowed returns the FullScopeAllowed field if non-nil, zero value otherwise. + +### GetFullScopeAllowedOk + +`func (o *ApplicationRepresentation) GetFullScopeAllowedOk() (*bool, bool)` + +GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScopeAllowed + +`func (o *ApplicationRepresentation) SetFullScopeAllowed(v bool)` + +SetFullScopeAllowed sets FullScopeAllowed field to given value. + +### HasFullScopeAllowed + +`func (o *ApplicationRepresentation) HasFullScopeAllowed() bool` + +HasFullScopeAllowed returns a boolean if a field has been set. + +### GetNodeReRegistrationTimeout + +`func (o *ApplicationRepresentation) GetNodeReRegistrationTimeout() int32` + +GetNodeReRegistrationTimeout returns the NodeReRegistrationTimeout field if non-nil, zero value otherwise. + +### GetNodeReRegistrationTimeoutOk + +`func (o *ApplicationRepresentation) GetNodeReRegistrationTimeoutOk() (*int32, bool)` + +GetNodeReRegistrationTimeoutOk returns a tuple with the NodeReRegistrationTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeReRegistrationTimeout + +`func (o *ApplicationRepresentation) SetNodeReRegistrationTimeout(v int32)` + +SetNodeReRegistrationTimeout sets NodeReRegistrationTimeout field to given value. + +### HasNodeReRegistrationTimeout + +`func (o *ApplicationRepresentation) HasNodeReRegistrationTimeout() bool` + +HasNodeReRegistrationTimeout returns a boolean if a field has been set. + +### GetRegisteredNodes + +`func (o *ApplicationRepresentation) GetRegisteredNodes() map[string]int32` + +GetRegisteredNodes returns the RegisteredNodes field if non-nil, zero value otherwise. + +### GetRegisteredNodesOk + +`func (o *ApplicationRepresentation) GetRegisteredNodesOk() (*map[string]int32, bool)` + +GetRegisteredNodesOk returns a tuple with the RegisteredNodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredNodes + +`func (o *ApplicationRepresentation) SetRegisteredNodes(v map[string]int32)` + +SetRegisteredNodes sets RegisteredNodes field to given value. + +### HasRegisteredNodes + +`func (o *ApplicationRepresentation) HasRegisteredNodes() bool` + +HasRegisteredNodes returns a boolean if a field has been set. + +### GetProtocolMappers + +`func (o *ApplicationRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation` + +GetProtocolMappers returns the ProtocolMappers field if non-nil, zero value otherwise. + +### GetProtocolMappersOk + +`func (o *ApplicationRepresentation) GetProtocolMappersOk() (*[]ProtocolMapperRepresentation, bool)` + +GetProtocolMappersOk returns a tuple with the ProtocolMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMappers + +`func (o *ApplicationRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation)` + +SetProtocolMappers sets ProtocolMappers field to given value. + +### HasProtocolMappers + +`func (o *ApplicationRepresentation) HasProtocolMappers() bool` + +HasProtocolMappers returns a boolean if a field has been set. + +### GetClientTemplate + +`func (o *ApplicationRepresentation) GetClientTemplate() string` + +GetClientTemplate returns the ClientTemplate field if non-nil, zero value otherwise. + +### GetClientTemplateOk + +`func (o *ApplicationRepresentation) GetClientTemplateOk() (*string, bool)` + +GetClientTemplateOk returns a tuple with the ClientTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTemplate + +`func (o *ApplicationRepresentation) SetClientTemplate(v string)` + +SetClientTemplate sets ClientTemplate field to given value. + +### HasClientTemplate + +`func (o *ApplicationRepresentation) HasClientTemplate() bool` + +HasClientTemplate returns a boolean if a field has been set. + +### GetUseTemplateConfig + +`func (o *ApplicationRepresentation) GetUseTemplateConfig() bool` + +GetUseTemplateConfig returns the UseTemplateConfig field if non-nil, zero value otherwise. + +### GetUseTemplateConfigOk + +`func (o *ApplicationRepresentation) GetUseTemplateConfigOk() (*bool, bool)` + +GetUseTemplateConfigOk returns a tuple with the UseTemplateConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateConfig + +`func (o *ApplicationRepresentation) SetUseTemplateConfig(v bool)` + +SetUseTemplateConfig sets UseTemplateConfig field to given value. + +### HasUseTemplateConfig + +`func (o *ApplicationRepresentation) HasUseTemplateConfig() bool` + +HasUseTemplateConfig returns a boolean if a field has been set. + +### GetUseTemplateScope + +`func (o *ApplicationRepresentation) GetUseTemplateScope() bool` + +GetUseTemplateScope returns the UseTemplateScope field if non-nil, zero value otherwise. + +### GetUseTemplateScopeOk + +`func (o *ApplicationRepresentation) GetUseTemplateScopeOk() (*bool, bool)` + +GetUseTemplateScopeOk returns a tuple with the UseTemplateScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateScope + +`func (o *ApplicationRepresentation) SetUseTemplateScope(v bool)` + +SetUseTemplateScope sets UseTemplateScope field to given value. + +### HasUseTemplateScope + +`func (o *ApplicationRepresentation) HasUseTemplateScope() bool` + +HasUseTemplateScope returns a boolean if a field has been set. + +### GetUseTemplateMappers + +`func (o *ApplicationRepresentation) GetUseTemplateMappers() bool` + +GetUseTemplateMappers returns the UseTemplateMappers field if non-nil, zero value otherwise. + +### GetUseTemplateMappersOk + +`func (o *ApplicationRepresentation) GetUseTemplateMappersOk() (*bool, bool)` + +GetUseTemplateMappersOk returns a tuple with the UseTemplateMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateMappers + +`func (o *ApplicationRepresentation) SetUseTemplateMappers(v bool)` + +SetUseTemplateMappers sets UseTemplateMappers field to given value. + +### HasUseTemplateMappers + +`func (o *ApplicationRepresentation) HasUseTemplateMappers() bool` + +HasUseTemplateMappers returns a boolean if a field has been set. + +### GetDefaultClientScopes + +`func (o *ApplicationRepresentation) GetDefaultClientScopes() []string` + +GetDefaultClientScopes returns the DefaultClientScopes field if non-nil, zero value otherwise. + +### GetDefaultClientScopesOk + +`func (o *ApplicationRepresentation) GetDefaultClientScopesOk() (*[]string, bool)` + +GetDefaultClientScopesOk returns a tuple with the DefaultClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultClientScopes + +`func (o *ApplicationRepresentation) SetDefaultClientScopes(v []string)` + +SetDefaultClientScopes sets DefaultClientScopes field to given value. + +### HasDefaultClientScopes + +`func (o *ApplicationRepresentation) HasDefaultClientScopes() bool` + +HasDefaultClientScopes returns a boolean if a field has been set. + +### GetOptionalClientScopes + +`func (o *ApplicationRepresentation) GetOptionalClientScopes() []string` + +GetOptionalClientScopes returns the OptionalClientScopes field if non-nil, zero value otherwise. + +### GetOptionalClientScopesOk + +`func (o *ApplicationRepresentation) GetOptionalClientScopesOk() (*[]string, bool)` + +GetOptionalClientScopesOk returns a tuple with the OptionalClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptionalClientScopes + +`func (o *ApplicationRepresentation) SetOptionalClientScopes(v []string)` + +SetOptionalClientScopes sets OptionalClientScopes field to given value. + +### HasOptionalClientScopes + +`func (o *ApplicationRepresentation) HasOptionalClientScopes() bool` + +HasOptionalClientScopes returns a boolean if a field has been set. + +### GetAuthorizationSettings + +`func (o *ApplicationRepresentation) GetAuthorizationSettings() ResourceServerRepresentation` + +GetAuthorizationSettings returns the AuthorizationSettings field if non-nil, zero value otherwise. + +### GetAuthorizationSettingsOk + +`func (o *ApplicationRepresentation) GetAuthorizationSettingsOk() (*ResourceServerRepresentation, bool)` + +GetAuthorizationSettingsOk returns a tuple with the AuthorizationSettings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationSettings + +`func (o *ApplicationRepresentation) SetAuthorizationSettings(v ResourceServerRepresentation)` + +SetAuthorizationSettings sets AuthorizationSettings field to given value. + +### HasAuthorizationSettings + +`func (o *ApplicationRepresentation) HasAuthorizationSettings() bool` + +HasAuthorizationSettings returns a boolean if a field has been set. + +### GetAccess + +`func (o *ApplicationRepresentation) GetAccess() map[string]bool` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *ApplicationRepresentation) GetAccessOk() (*map[string]bool, 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 *ApplicationRepresentation) SetAccess(v map[string]bool)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *ApplicationRepresentation) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### GetOrigin + +`func (o *ApplicationRepresentation) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *ApplicationRepresentation) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *ApplicationRepresentation) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *ApplicationRepresentation) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetName + +`func (o *ApplicationRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ApplicationRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetClaims + +`func (o *ApplicationRepresentation) GetClaims() ClaimRepresentation` + +GetClaims returns the Claims field if non-nil, zero value otherwise. + +### GetClaimsOk + +`func (o *ApplicationRepresentation) GetClaimsOk() (*ClaimRepresentation, bool)` + +GetClaimsOk returns a tuple with the Claims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaims + +`func (o *ApplicationRepresentation) SetClaims(v ClaimRepresentation)` + +SetClaims sets Claims field to given value. + +### HasClaims + +`func (o *ApplicationRepresentation) HasClaims() bool` + +HasClaims returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AttackDetectionAPI.md b/docs/AttackDetectionAPI.md new file mode 100644 index 0000000..326ce15 --- /dev/null +++ b/docs/AttackDetectionAPI.md @@ -0,0 +1,217 @@ +# \AttackDetectionAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmAttackDetectionBruteForceUsersDelete**](AttackDetectionAPI.md#AdminRealmsRealmAttackDetectionBruteForceUsersDelete) | **Delete** /admin/realms/{realm}/attack-detection/brute-force/users | Clear any user login failures for all users This can release temporary disabled users +[**AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete**](AttackDetectionAPI.md#AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete) | **Delete** /admin/realms/{realm}/attack-detection/brute-force/users/{userId} | Clear any user login failures for the user This can release temporary disabled user +[**AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet**](AttackDetectionAPI.md#AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet) | **Get** /admin/realms/{realm}/attack-detection/brute-force/users/{userId} | Get status of a username in brute force detection + + + +## AdminRealmsRealmAttackDetectionBruteForceUsersDelete + +> AdminRealmsRealmAttackDetectionBruteForceUsersDelete(ctx, realm).Execute() + +Clear any user login failures for all users This can release temporary disabled users + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersDelete(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersDelete``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete + +> AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete(ctx, realm, userId).Execute() + +Clear any user login failures for the user This can release temporary disabled user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet + +> map[string]interface{} AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet(ctx, realm, userId).Execute() + +Get status of a username in brute force detection + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AuthDetailsRepresentation.md b/docs/AuthDetailsRepresentation.md new file mode 100644 index 0000000..1be744f --- /dev/null +++ b/docs/AuthDetailsRepresentation.md @@ -0,0 +1,134 @@ +# AuthDetailsRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RealmId** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**UserId** | Pointer to **string** | | [optional] +**IpAddress** | Pointer to **string** | | [optional] + +## Methods + +### NewAuthDetailsRepresentation + +`func NewAuthDetailsRepresentation() *AuthDetailsRepresentation` + +NewAuthDetailsRepresentation instantiates a new AuthDetailsRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthDetailsRepresentationWithDefaults + +`func NewAuthDetailsRepresentationWithDefaults() *AuthDetailsRepresentation` + +NewAuthDetailsRepresentationWithDefaults instantiates a new AuthDetailsRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRealmId + +`func (o *AuthDetailsRepresentation) GetRealmId() string` + +GetRealmId returns the RealmId field if non-nil, zero value otherwise. + +### GetRealmIdOk + +`func (o *AuthDetailsRepresentation) GetRealmIdOk() (*string, bool)` + +GetRealmIdOk returns a tuple with the RealmId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmId + +`func (o *AuthDetailsRepresentation) SetRealmId(v string)` + +SetRealmId sets RealmId field to given value. + +### HasRealmId + +`func (o *AuthDetailsRepresentation) HasRealmId() bool` + +HasRealmId returns a boolean if a field has been set. + +### GetClientId + +`func (o *AuthDetailsRepresentation) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *AuthDetailsRepresentation) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *AuthDetailsRepresentation) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *AuthDetailsRepresentation) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetUserId + +`func (o *AuthDetailsRepresentation) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *AuthDetailsRepresentation) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *AuthDetailsRepresentation) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *AuthDetailsRepresentation) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetIpAddress + +`func (o *AuthDetailsRepresentation) GetIpAddress() string` + +GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. + +### GetIpAddressOk + +`func (o *AuthDetailsRepresentation) 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 *AuthDetailsRepresentation) SetIpAddress(v string)` + +SetIpAddress sets IpAddress field to given value. + +### HasIpAddress + +`func (o *AuthDetailsRepresentation) HasIpAddress() bool` + +HasIpAddress returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationExecutionExportRepresentation.md b/docs/AuthenticationExecutionExportRepresentation.md new file mode 100644 index 0000000..343c0a4 --- /dev/null +++ b/docs/AuthenticationExecutionExportRepresentation.md @@ -0,0 +1,238 @@ +# AuthenticationExecutionExportRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthenticatorConfig** | Pointer to **string** | | [optional] +**Authenticator** | Pointer to **string** | | [optional] +**AuthenticatorFlow** | Pointer to **bool** | | [optional] +**Requirement** | Pointer to **string** | | [optional] +**Priority** | Pointer to **int32** | | [optional] +**AutheticatorFlow** | Pointer to **bool** | | [optional] +**FlowAlias** | Pointer to **string** | | [optional] +**UserSetupAllowed** | Pointer to **bool** | | [optional] + +## Methods + +### NewAuthenticationExecutionExportRepresentation + +`func NewAuthenticationExecutionExportRepresentation() *AuthenticationExecutionExportRepresentation` + +NewAuthenticationExecutionExportRepresentation instantiates a new AuthenticationExecutionExportRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticationExecutionExportRepresentationWithDefaults + +`func NewAuthenticationExecutionExportRepresentationWithDefaults() *AuthenticationExecutionExportRepresentation` + +NewAuthenticationExecutionExportRepresentationWithDefaults instantiates a new AuthenticationExecutionExportRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthenticatorConfig + +`func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorConfig() string` + +GetAuthenticatorConfig returns the AuthenticatorConfig field if non-nil, zero value otherwise. + +### GetAuthenticatorConfigOk + +`func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorConfigOk() (*string, bool)` + +GetAuthenticatorConfigOk returns a tuple with the AuthenticatorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticatorConfig + +`func (o *AuthenticationExecutionExportRepresentation) SetAuthenticatorConfig(v string)` + +SetAuthenticatorConfig sets AuthenticatorConfig field to given value. + +### HasAuthenticatorConfig + +`func (o *AuthenticationExecutionExportRepresentation) HasAuthenticatorConfig() bool` + +HasAuthenticatorConfig returns a boolean if a field has been set. + +### GetAuthenticator + +`func (o *AuthenticationExecutionExportRepresentation) GetAuthenticator() string` + +GetAuthenticator returns the Authenticator field if non-nil, zero value otherwise. + +### GetAuthenticatorOk + +`func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorOk() (*string, bool)` + +GetAuthenticatorOk returns a tuple with the Authenticator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticator + +`func (o *AuthenticationExecutionExportRepresentation) SetAuthenticator(v string)` + +SetAuthenticator sets Authenticator field to given value. + +### HasAuthenticator + +`func (o *AuthenticationExecutionExportRepresentation) HasAuthenticator() bool` + +HasAuthenticator returns a boolean if a field has been set. + +### GetAuthenticatorFlow + +`func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorFlow() bool` + +GetAuthenticatorFlow returns the AuthenticatorFlow field if non-nil, zero value otherwise. + +### GetAuthenticatorFlowOk + +`func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorFlowOk() (*bool, bool)` + +GetAuthenticatorFlowOk returns a tuple with the AuthenticatorFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticatorFlow + +`func (o *AuthenticationExecutionExportRepresentation) SetAuthenticatorFlow(v bool)` + +SetAuthenticatorFlow sets AuthenticatorFlow field to given value. + +### HasAuthenticatorFlow + +`func (o *AuthenticationExecutionExportRepresentation) HasAuthenticatorFlow() bool` + +HasAuthenticatorFlow returns a boolean if a field has been set. + +### GetRequirement + +`func (o *AuthenticationExecutionExportRepresentation) GetRequirement() string` + +GetRequirement returns the Requirement field if non-nil, zero value otherwise. + +### GetRequirementOk + +`func (o *AuthenticationExecutionExportRepresentation) GetRequirementOk() (*string, bool)` + +GetRequirementOk returns a tuple with the Requirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequirement + +`func (o *AuthenticationExecutionExportRepresentation) SetRequirement(v string)` + +SetRequirement sets Requirement field to given value. + +### HasRequirement + +`func (o *AuthenticationExecutionExportRepresentation) HasRequirement() bool` + +HasRequirement returns a boolean if a field has been set. + +### GetPriority + +`func (o *AuthenticationExecutionExportRepresentation) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *AuthenticationExecutionExportRepresentation) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *AuthenticationExecutionExportRepresentation) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *AuthenticationExecutionExportRepresentation) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetAutheticatorFlow + +`func (o *AuthenticationExecutionExportRepresentation) GetAutheticatorFlow() bool` + +GetAutheticatorFlow returns the AutheticatorFlow field if non-nil, zero value otherwise. + +### GetAutheticatorFlowOk + +`func (o *AuthenticationExecutionExportRepresentation) GetAutheticatorFlowOk() (*bool, bool)` + +GetAutheticatorFlowOk returns a tuple with the AutheticatorFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutheticatorFlow + +`func (o *AuthenticationExecutionExportRepresentation) SetAutheticatorFlow(v bool)` + +SetAutheticatorFlow sets AutheticatorFlow field to given value. + +### HasAutheticatorFlow + +`func (o *AuthenticationExecutionExportRepresentation) HasAutheticatorFlow() bool` + +HasAutheticatorFlow returns a boolean if a field has been set. + +### GetFlowAlias + +`func (o *AuthenticationExecutionExportRepresentation) GetFlowAlias() string` + +GetFlowAlias returns the FlowAlias field if non-nil, zero value otherwise. + +### GetFlowAliasOk + +`func (o *AuthenticationExecutionExportRepresentation) GetFlowAliasOk() (*string, bool)` + +GetFlowAliasOk returns a tuple with the FlowAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowAlias + +`func (o *AuthenticationExecutionExportRepresentation) SetFlowAlias(v string)` + +SetFlowAlias sets FlowAlias field to given value. + +### HasFlowAlias + +`func (o *AuthenticationExecutionExportRepresentation) HasFlowAlias() bool` + +HasFlowAlias returns a boolean if a field has been set. + +### GetUserSetupAllowed + +`func (o *AuthenticationExecutionExportRepresentation) GetUserSetupAllowed() bool` + +GetUserSetupAllowed returns the UserSetupAllowed field if non-nil, zero value otherwise. + +### GetUserSetupAllowedOk + +`func (o *AuthenticationExecutionExportRepresentation) GetUserSetupAllowedOk() (*bool, bool)` + +GetUserSetupAllowedOk returns a tuple with the UserSetupAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserSetupAllowed + +`func (o *AuthenticationExecutionExportRepresentation) SetUserSetupAllowed(v bool)` + +SetUserSetupAllowed sets UserSetupAllowed field to given value. + +### HasUserSetupAllowed + +`func (o *AuthenticationExecutionExportRepresentation) HasUserSetupAllowed() bool` + +HasUserSetupAllowed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationExecutionInfoRepresentation.md b/docs/AuthenticationExecutionInfoRepresentation.md new file mode 100644 index 0000000..7ee0c98 --- /dev/null +++ b/docs/AuthenticationExecutionInfoRepresentation.md @@ -0,0 +1,394 @@ +# AuthenticationExecutionInfoRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Requirement** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**RequirementChoices** | Pointer to **[]string** | | [optional] +**Configurable** | Pointer to **bool** | | [optional] +**AuthenticationFlow** | Pointer to **bool** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**AuthenticationConfig** | Pointer to **string** | | [optional] +**FlowId** | Pointer to **string** | | [optional] +**Level** | Pointer to **int32** | | [optional] +**Index** | Pointer to **int32** | | [optional] +**Priority** | Pointer to **int32** | | [optional] + +## Methods + +### NewAuthenticationExecutionInfoRepresentation + +`func NewAuthenticationExecutionInfoRepresentation() *AuthenticationExecutionInfoRepresentation` + +NewAuthenticationExecutionInfoRepresentation instantiates a new AuthenticationExecutionInfoRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticationExecutionInfoRepresentationWithDefaults + +`func NewAuthenticationExecutionInfoRepresentationWithDefaults() *AuthenticationExecutionInfoRepresentation` + +NewAuthenticationExecutionInfoRepresentationWithDefaults instantiates a new AuthenticationExecutionInfoRepresentation object +This 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 *AuthenticationExecutionInfoRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AuthenticationExecutionInfoRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetRequirement + +`func (o *AuthenticationExecutionInfoRepresentation) GetRequirement() string` + +GetRequirement returns the Requirement field if non-nil, zero value otherwise. + +### GetRequirementOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetRequirementOk() (*string, bool)` + +GetRequirementOk returns a tuple with the Requirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequirement + +`func (o *AuthenticationExecutionInfoRepresentation) SetRequirement(v string)` + +SetRequirement sets Requirement field to given value. + +### HasRequirement + +`func (o *AuthenticationExecutionInfoRepresentation) HasRequirement() bool` + +HasRequirement returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AuthenticationExecutionInfoRepresentation) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AuthenticationExecutionInfoRepresentation) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetAlias + +`func (o *AuthenticationExecutionInfoRepresentation) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *AuthenticationExecutionInfoRepresentation) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetDescription + +`func (o *AuthenticationExecutionInfoRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AuthenticationExecutionInfoRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetRequirementChoices + +`func (o *AuthenticationExecutionInfoRepresentation) GetRequirementChoices() []string` + +GetRequirementChoices returns the RequirementChoices field if non-nil, zero value otherwise. + +### GetRequirementChoicesOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetRequirementChoicesOk() (*[]string, bool)` + +GetRequirementChoicesOk returns a tuple with the RequirementChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequirementChoices + +`func (o *AuthenticationExecutionInfoRepresentation) SetRequirementChoices(v []string)` + +SetRequirementChoices sets RequirementChoices field to given value. + +### HasRequirementChoices + +`func (o *AuthenticationExecutionInfoRepresentation) HasRequirementChoices() bool` + +HasRequirementChoices returns a boolean if a field has been set. + +### GetConfigurable + +`func (o *AuthenticationExecutionInfoRepresentation) GetConfigurable() bool` + +GetConfigurable returns the Configurable field if non-nil, zero value otherwise. + +### GetConfigurableOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetConfigurableOk() (*bool, bool)` + +GetConfigurableOk returns a tuple with the Configurable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurable + +`func (o *AuthenticationExecutionInfoRepresentation) SetConfigurable(v bool)` + +SetConfigurable sets Configurable field to given value. + +### HasConfigurable + +`func (o *AuthenticationExecutionInfoRepresentation) HasConfigurable() bool` + +HasConfigurable returns a boolean if a field has been set. + +### GetAuthenticationFlow + +`func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationFlow() bool` + +GetAuthenticationFlow returns the AuthenticationFlow field if non-nil, zero value otherwise. + +### GetAuthenticationFlowOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationFlowOk() (*bool, bool)` + +GetAuthenticationFlowOk returns a tuple with the AuthenticationFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationFlow + +`func (o *AuthenticationExecutionInfoRepresentation) SetAuthenticationFlow(v bool)` + +SetAuthenticationFlow sets AuthenticationFlow field to given value. + +### HasAuthenticationFlow + +`func (o *AuthenticationExecutionInfoRepresentation) HasAuthenticationFlow() bool` + +HasAuthenticationFlow returns a boolean if a field has been set. + +### GetProviderId + +`func (o *AuthenticationExecutionInfoRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *AuthenticationExecutionInfoRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *AuthenticationExecutionInfoRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetAuthenticationConfig + +`func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationConfig() string` + +GetAuthenticationConfig returns the AuthenticationConfig field if non-nil, zero value otherwise. + +### GetAuthenticationConfigOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationConfigOk() (*string, bool)` + +GetAuthenticationConfigOk returns a tuple with the AuthenticationConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationConfig + +`func (o *AuthenticationExecutionInfoRepresentation) SetAuthenticationConfig(v string)` + +SetAuthenticationConfig sets AuthenticationConfig field to given value. + +### HasAuthenticationConfig + +`func (o *AuthenticationExecutionInfoRepresentation) HasAuthenticationConfig() bool` + +HasAuthenticationConfig returns a boolean if a field has been set. + +### GetFlowId + +`func (o *AuthenticationExecutionInfoRepresentation) GetFlowId() string` + +GetFlowId returns the FlowId field if non-nil, zero value otherwise. + +### GetFlowIdOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetFlowIdOk() (*string, bool)` + +GetFlowIdOk returns a tuple with the FlowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowId + +`func (o *AuthenticationExecutionInfoRepresentation) SetFlowId(v string)` + +SetFlowId sets FlowId field to given value. + +### HasFlowId + +`func (o *AuthenticationExecutionInfoRepresentation) HasFlowId() bool` + +HasFlowId returns a boolean if a field has been set. + +### GetLevel + +`func (o *AuthenticationExecutionInfoRepresentation) GetLevel() int32` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetLevel(v int32)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *AuthenticationExecutionInfoRepresentation) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + +### GetIndex + +`func (o *AuthenticationExecutionInfoRepresentation) GetIndex() int32` + +GetIndex returns the Index field if non-nil, zero value otherwise. + +### GetIndexOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetIndexOk() (*int32, bool)` + +GetIndexOk returns a tuple with the Index field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndex + +`func (o *AuthenticationExecutionInfoRepresentation) SetIndex(v int32)` + +SetIndex sets Index field to given value. + +### HasIndex + +`func (o *AuthenticationExecutionInfoRepresentation) HasIndex() bool` + +HasIndex returns a boolean if a field has been set. + +### GetPriority + +`func (o *AuthenticationExecutionInfoRepresentation) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *AuthenticationExecutionInfoRepresentation) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *AuthenticationExecutionInfoRepresentation) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *AuthenticationExecutionInfoRepresentation) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationExecutionRepresentation.md b/docs/AuthenticationExecutionRepresentation.md new file mode 100644 index 0000000..f22470d --- /dev/null +++ b/docs/AuthenticationExecutionRepresentation.md @@ -0,0 +1,264 @@ +# AuthenticationExecutionRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthenticatorConfig** | Pointer to **string** | | [optional] +**Authenticator** | Pointer to **string** | | [optional] +**AuthenticatorFlow** | Pointer to **bool** | | [optional] +**Requirement** | Pointer to **string** | | [optional] +**Priority** | Pointer to **int32** | | [optional] +**AutheticatorFlow** | Pointer to **bool** | | [optional] +**Id** | Pointer to **string** | | [optional] +**FlowId** | Pointer to **string** | | [optional] +**ParentFlow** | Pointer to **string** | | [optional] + +## Methods + +### NewAuthenticationExecutionRepresentation + +`func NewAuthenticationExecutionRepresentation() *AuthenticationExecutionRepresentation` + +NewAuthenticationExecutionRepresentation instantiates a new AuthenticationExecutionRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticationExecutionRepresentationWithDefaults + +`func NewAuthenticationExecutionRepresentationWithDefaults() *AuthenticationExecutionRepresentation` + +NewAuthenticationExecutionRepresentationWithDefaults instantiates a new AuthenticationExecutionRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthenticatorConfig + +`func (o *AuthenticationExecutionRepresentation) GetAuthenticatorConfig() string` + +GetAuthenticatorConfig returns the AuthenticatorConfig field if non-nil, zero value otherwise. + +### GetAuthenticatorConfigOk + +`func (o *AuthenticationExecutionRepresentation) GetAuthenticatorConfigOk() (*string, bool)` + +GetAuthenticatorConfigOk returns a tuple with the AuthenticatorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticatorConfig + +`func (o *AuthenticationExecutionRepresentation) SetAuthenticatorConfig(v string)` + +SetAuthenticatorConfig sets AuthenticatorConfig field to given value. + +### HasAuthenticatorConfig + +`func (o *AuthenticationExecutionRepresentation) HasAuthenticatorConfig() bool` + +HasAuthenticatorConfig returns a boolean if a field has been set. + +### GetAuthenticator + +`func (o *AuthenticationExecutionRepresentation) GetAuthenticator() string` + +GetAuthenticator returns the Authenticator field if non-nil, zero value otherwise. + +### GetAuthenticatorOk + +`func (o *AuthenticationExecutionRepresentation) GetAuthenticatorOk() (*string, bool)` + +GetAuthenticatorOk returns a tuple with the Authenticator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticator + +`func (o *AuthenticationExecutionRepresentation) SetAuthenticator(v string)` + +SetAuthenticator sets Authenticator field to given value. + +### HasAuthenticator + +`func (o *AuthenticationExecutionRepresentation) HasAuthenticator() bool` + +HasAuthenticator returns a boolean if a field has been set. + +### GetAuthenticatorFlow + +`func (o *AuthenticationExecutionRepresentation) GetAuthenticatorFlow() bool` + +GetAuthenticatorFlow returns the AuthenticatorFlow field if non-nil, zero value otherwise. + +### GetAuthenticatorFlowOk + +`func (o *AuthenticationExecutionRepresentation) GetAuthenticatorFlowOk() (*bool, bool)` + +GetAuthenticatorFlowOk returns a tuple with the AuthenticatorFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticatorFlow + +`func (o *AuthenticationExecutionRepresentation) SetAuthenticatorFlow(v bool)` + +SetAuthenticatorFlow sets AuthenticatorFlow field to given value. + +### HasAuthenticatorFlow + +`func (o *AuthenticationExecutionRepresentation) HasAuthenticatorFlow() bool` + +HasAuthenticatorFlow returns a boolean if a field has been set. + +### GetRequirement + +`func (o *AuthenticationExecutionRepresentation) GetRequirement() string` + +GetRequirement returns the Requirement field if non-nil, zero value otherwise. + +### GetRequirementOk + +`func (o *AuthenticationExecutionRepresentation) GetRequirementOk() (*string, bool)` + +GetRequirementOk returns a tuple with the Requirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequirement + +`func (o *AuthenticationExecutionRepresentation) SetRequirement(v string)` + +SetRequirement sets Requirement field to given value. + +### HasRequirement + +`func (o *AuthenticationExecutionRepresentation) HasRequirement() bool` + +HasRequirement returns a boolean if a field has been set. + +### GetPriority + +`func (o *AuthenticationExecutionRepresentation) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *AuthenticationExecutionRepresentation) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *AuthenticationExecutionRepresentation) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *AuthenticationExecutionRepresentation) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetAutheticatorFlow + +`func (o *AuthenticationExecutionRepresentation) GetAutheticatorFlow() bool` + +GetAutheticatorFlow returns the AutheticatorFlow field if non-nil, zero value otherwise. + +### GetAutheticatorFlowOk + +`func (o *AuthenticationExecutionRepresentation) GetAutheticatorFlowOk() (*bool, bool)` + +GetAutheticatorFlowOk returns a tuple with the AutheticatorFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutheticatorFlow + +`func (o *AuthenticationExecutionRepresentation) SetAutheticatorFlow(v bool)` + +SetAutheticatorFlow sets AutheticatorFlow field to given value. + +### HasAutheticatorFlow + +`func (o *AuthenticationExecutionRepresentation) HasAutheticatorFlow() bool` + +HasAutheticatorFlow returns a boolean if a field has been set. + +### GetId + +`func (o *AuthenticationExecutionRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AuthenticationExecutionRepresentation) 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 *AuthenticationExecutionRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AuthenticationExecutionRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetFlowId + +`func (o *AuthenticationExecutionRepresentation) GetFlowId() string` + +GetFlowId returns the FlowId field if non-nil, zero value otherwise. + +### GetFlowIdOk + +`func (o *AuthenticationExecutionRepresentation) GetFlowIdOk() (*string, bool)` + +GetFlowIdOk returns a tuple with the FlowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowId + +`func (o *AuthenticationExecutionRepresentation) SetFlowId(v string)` + +SetFlowId sets FlowId field to given value. + +### HasFlowId + +`func (o *AuthenticationExecutionRepresentation) HasFlowId() bool` + +HasFlowId returns a boolean if a field has been set. + +### GetParentFlow + +`func (o *AuthenticationExecutionRepresentation) GetParentFlow() string` + +GetParentFlow returns the ParentFlow field if non-nil, zero value otherwise. + +### GetParentFlowOk + +`func (o *AuthenticationExecutionRepresentation) GetParentFlowOk() (*string, bool)` + +GetParentFlowOk returns a tuple with the ParentFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentFlow + +`func (o *AuthenticationExecutionRepresentation) SetParentFlow(v string)` + +SetParentFlow sets ParentFlow field to given value. + +### HasParentFlow + +`func (o *AuthenticationExecutionRepresentation) HasParentFlow() bool` + +HasParentFlow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationFlowRepresentation.md b/docs/AuthenticationFlowRepresentation.md new file mode 100644 index 0000000..f6613c2 --- /dev/null +++ b/docs/AuthenticationFlowRepresentation.md @@ -0,0 +1,212 @@ +# AuthenticationFlowRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**TopLevel** | Pointer to **bool** | | [optional] +**BuiltIn** | Pointer to **bool** | | [optional] +**AuthenticationExecutions** | Pointer to [**[]AuthenticationExecutionExportRepresentation**](AuthenticationExecutionExportRepresentation.md) | | [optional] + +## Methods + +### NewAuthenticationFlowRepresentation + +`func NewAuthenticationFlowRepresentation() *AuthenticationFlowRepresentation` + +NewAuthenticationFlowRepresentation instantiates a new AuthenticationFlowRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticationFlowRepresentationWithDefaults + +`func NewAuthenticationFlowRepresentationWithDefaults() *AuthenticationFlowRepresentation` + +NewAuthenticationFlowRepresentationWithDefaults instantiates a new AuthenticationFlowRepresentation object +This 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 *AuthenticationFlowRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AuthenticationFlowRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAlias + +`func (o *AuthenticationFlowRepresentation) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *AuthenticationFlowRepresentation) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetDescription + +`func (o *AuthenticationFlowRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AuthenticationFlowRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetProviderId + +`func (o *AuthenticationFlowRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *AuthenticationFlowRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *AuthenticationFlowRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *AuthenticationFlowRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetTopLevel + +`func (o *AuthenticationFlowRepresentation) GetTopLevel() bool` + +GetTopLevel returns the TopLevel field if non-nil, zero value otherwise. + +### GetTopLevelOk + +`func (o *AuthenticationFlowRepresentation) GetTopLevelOk() (*bool, bool)` + +GetTopLevelOk returns a tuple with the TopLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopLevel + +`func (o *AuthenticationFlowRepresentation) SetTopLevel(v bool)` + +SetTopLevel sets TopLevel field to given value. + +### HasTopLevel + +`func (o *AuthenticationFlowRepresentation) HasTopLevel() bool` + +HasTopLevel returns a boolean if a field has been set. + +### GetBuiltIn + +`func (o *AuthenticationFlowRepresentation) GetBuiltIn() bool` + +GetBuiltIn returns the BuiltIn field if non-nil, zero value otherwise. + +### GetBuiltInOk + +`func (o *AuthenticationFlowRepresentation) GetBuiltInOk() (*bool, bool)` + +GetBuiltInOk returns a tuple with the BuiltIn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuiltIn + +`func (o *AuthenticationFlowRepresentation) SetBuiltIn(v bool)` + +SetBuiltIn sets BuiltIn field to given value. + +### HasBuiltIn + +`func (o *AuthenticationFlowRepresentation) HasBuiltIn() bool` + +HasBuiltIn returns a boolean if a field has been set. + +### GetAuthenticationExecutions + +`func (o *AuthenticationFlowRepresentation) GetAuthenticationExecutions() []AuthenticationExecutionExportRepresentation` + +GetAuthenticationExecutions returns the AuthenticationExecutions field if non-nil, zero value otherwise. + +### GetAuthenticationExecutionsOk + +`func (o *AuthenticationFlowRepresentation) GetAuthenticationExecutionsOk() (*[]AuthenticationExecutionExportRepresentation, bool)` + +GetAuthenticationExecutionsOk returns a tuple with the AuthenticationExecutions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationExecutions + +`func (o *AuthenticationFlowRepresentation) SetAuthenticationExecutions(v []AuthenticationExecutionExportRepresentation)` + +SetAuthenticationExecutions sets AuthenticationExecutions field to given value. + +### HasAuthenticationExecutions + +`func (o *AuthenticationFlowRepresentation) HasAuthenticationExecutions() bool` + +HasAuthenticationExecutions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationManagementAPI.md b/docs/AuthenticationManagementAPI.md new file mode 100644 index 0000000..a6a7ff2 --- /dev/null +++ b/docs/AuthenticationManagementAPI.md @@ -0,0 +1,2765 @@ +# \AuthenticationManagementAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmAuthenticationAuthenticatorProvidersGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationAuthenticatorProvidersGet) | **Get** /admin/realms/{realm}/authentication/authenticator-providers | Get authenticator providers Returns a stream of authenticator providers. +[**AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet) | **Get** /admin/realms/{realm}/authentication/client-authenticator-providers | Get client authenticator providers Returns a stream of client authenticator providers. +[**AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet) | **Get** /admin/realms/{realm}/authentication/config-description/{providerId} | Get authenticator provider's configuration description +[**AdminRealmsRealmAuthenticationConfigIdDelete**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationConfigIdDelete) | **Delete** /admin/realms/{realm}/authentication/config/{id} | Delete authenticator configuration +[**AdminRealmsRealmAuthenticationConfigIdGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationConfigIdGet) | **Get** /admin/realms/{realm}/authentication/config/{id} | Get authenticator configuration +[**AdminRealmsRealmAuthenticationConfigIdPut**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationConfigIdPut) | **Put** /admin/realms/{realm}/authentication/config/{id} | Update authenticator configuration +[**AdminRealmsRealmAuthenticationConfigPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationConfigPost) | **Post** /admin/realms/{realm}/authentication/config | Create new authenticator configuration +[**AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet) | **Get** /admin/realms/{realm}/authentication/executions/{executionId}/config/{id} | Get execution's configuration +[**AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost) | **Post** /admin/realms/{realm}/authentication/executions/{executionId}/config | Update execution with new configuration +[**AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete) | **Delete** /admin/realms/{realm}/authentication/executions/{executionId} | Delete execution +[**AdminRealmsRealmAuthenticationExecutionsExecutionIdGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationExecutionsExecutionIdGet) | **Get** /admin/realms/{realm}/authentication/executions/{executionId} | Get Single Execution +[**AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost) | **Post** /admin/realms/{realm}/authentication/executions/{executionId}/lower-priority | Lower execution's priority +[**AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost) | **Post** /admin/realms/{realm}/authentication/executions/{executionId}/raise-priority | Raise execution's priority +[**AdminRealmsRealmAuthenticationExecutionsPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationExecutionsPost) | **Post** /admin/realms/{realm}/authentication/executions | Add new authentication execution +[**AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost) | **Post** /admin/realms/{realm}/authentication/flows/{flowAlias}/copy | Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object +[**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost) | **Post** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution | Add new authentication execution to a flow +[**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost) | **Post** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow | Add new flow with new execution to existing flow +[**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet) | **Get** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions | Get authentication executions for a flow +[**AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut) | **Put** /admin/realms/{realm}/authentication/flows/{flowAlias}/executions | Update authentication executions of a Flow +[**AdminRealmsRealmAuthenticationFlowsGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsGet) | **Get** /admin/realms/{realm}/authentication/flows | Get authentication flows Returns a stream of authentication flows. +[**AdminRealmsRealmAuthenticationFlowsIdDelete**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsIdDelete) | **Delete** /admin/realms/{realm}/authentication/flows/{id} | Delete an authentication flow +[**AdminRealmsRealmAuthenticationFlowsIdGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsIdGet) | **Get** /admin/realms/{realm}/authentication/flows/{id} | Get authentication flow for id +[**AdminRealmsRealmAuthenticationFlowsIdPut**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsIdPut) | **Put** /admin/realms/{realm}/authentication/flows/{id} | Update an authentication flow +[**AdminRealmsRealmAuthenticationFlowsPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFlowsPost) | **Post** /admin/realms/{realm}/authentication/flows | Create a new authentication flow +[**AdminRealmsRealmAuthenticationFormActionProvidersGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFormActionProvidersGet) | **Get** /admin/realms/{realm}/authentication/form-action-providers | Get form action providers Returns a stream of form action providers. +[**AdminRealmsRealmAuthenticationFormProvidersGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationFormProvidersGet) | **Get** /admin/realms/{realm}/authentication/form-providers | Get form providers Returns a stream of form providers. +[**AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet) | **Get** /admin/realms/{realm}/authentication/per-client-config-description | Get configuration descriptions for all clients +[**AdminRealmsRealmAuthenticationRegisterRequiredActionPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRegisterRequiredActionPost) | **Post** /admin/realms/{realm}/authentication/register-required-action | Register a new required actions +[**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete) | **Delete** /admin/realms/{realm}/authentication/required-actions/{alias}/config | Delete RequiredAction configuration +[**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet) | **Get** /admin/realms/{realm}/authentication/required-actions/{alias}/config-description | Get RequiredAction provider configuration description +[**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet) | **Get** /admin/realms/{realm}/authentication/required-actions/{alias}/config | Get RequiredAction configuration +[**AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut) | **Put** /admin/realms/{realm}/authentication/required-actions/{alias}/config | Update RequiredAction configuration +[**AdminRealmsRealmAuthenticationRequiredActionsAliasDelete**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasDelete) | **Delete** /admin/realms/{realm}/authentication/required-actions/{alias} | Delete required action +[**AdminRealmsRealmAuthenticationRequiredActionsAliasGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasGet) | **Get** /admin/realms/{realm}/authentication/required-actions/{alias} | Get required action for alias +[**AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost) | **Post** /admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority | Lower required action's priority +[**AdminRealmsRealmAuthenticationRequiredActionsAliasPut**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasPut) | **Put** /admin/realms/{realm}/authentication/required-actions/{alias} | Update required action +[**AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost) | **Post** /admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority | Raise required action's priority +[**AdminRealmsRealmAuthenticationRequiredActionsGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationRequiredActionsGet) | **Get** /admin/realms/{realm}/authentication/required-actions | Get required actions Returns a stream of required actions. +[**AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet**](AuthenticationManagementAPI.md#AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet) | **Get** /admin/realms/{realm}/authentication/unregistered-required-actions | Get unregistered required actions Returns a stream of unregistered required actions. + + + +## AdminRealmsRealmAuthenticationAuthenticatorProvidersGet + +> []map[string]interface{} AdminRealmsRealmAuthenticationAuthenticatorProvidersGet(ctx, realm).Execute() + +Get authenticator providers Returns a stream of authenticator providers. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationAuthenticatorProvidersGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationAuthenticatorProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationAuthenticatorProvidersGet`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationAuthenticatorProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]map[string]interface{}**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet + +> []map[string]interface{} AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet(ctx, realm).Execute() + +Get client authenticator providers Returns a stream of client authenticator providers. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]map[string]interface{}**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet + +> AuthenticatorConfigInfoRepresentation AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet(ctx, realm, providerId).Execute() + +Get authenticator provider's configuration description + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + providerId := "providerId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet(context.Background(), realm, providerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet`: AuthenticatorConfigInfoRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**providerId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AuthenticatorConfigInfoRepresentation**](AuthenticatorConfigInfoRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationConfigIdDelete + +> AdminRealmsRealmAuthenticationConfigIdDelete(ctx, realm, id).Execute() + +Delete authenticator configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | Configuration id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdDelete(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | Configuration id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationConfigIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationConfigIdGet + +> AuthenticatorConfigRepresentation AdminRealmsRealmAuthenticationConfigIdGet(ctx, realm, id).Execute() + +Get authenticator configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | Configuration id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdGet(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationConfigIdGet`: AuthenticatorConfigRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | Configuration id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationConfigIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AuthenticatorConfigRepresentation**](AuthenticatorConfigRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationConfigIdPut + +> AdminRealmsRealmAuthenticationConfigIdPut(ctx, realm, id).AuthenticatorConfigRepresentation(authenticatorConfigRepresentation).Execute() + +Update authenticator configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | Configuration id + authenticatorConfigRepresentation := *openapiclient.NewAuthenticatorConfigRepresentation() // AuthenticatorConfigRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdPut(context.Background(), realm, id).AuthenticatorConfigRepresentation(authenticatorConfigRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | Configuration id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationConfigIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authenticatorConfigRepresentation** | [**AuthenticatorConfigRepresentation**](AuthenticatorConfigRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationConfigPost + +> AdminRealmsRealmAuthenticationConfigPost(ctx, realm).AuthenticatorConfigRepresentation(authenticatorConfigRepresentation).Execute() + +Create new authenticator configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + authenticatorConfigRepresentation := *openapiclient.NewAuthenticatorConfigRepresentation() // AuthenticatorConfigRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigPost(context.Background(), realm).AuthenticatorConfigRepresentation(authenticatorConfigRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationConfigPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authenticatorConfigRepresentation** | [**AuthenticatorConfigRepresentation**](AuthenticatorConfigRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet + +> AuthenticatorConfigRepresentation AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet(ctx, realm, executionId, id).Execute() + +Get execution's configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + executionId := "executionId_example" // string | Execution id + id := "id_example" // string | Configuration id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet(context.Background(), realm, executionId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet`: AuthenticatorConfigRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**executionId** | **string** | Execution id | +**id** | **string** | Configuration id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**AuthenticatorConfigRepresentation**](AuthenticatorConfigRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost + +> AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost(ctx, realm, executionId).AuthenticatorConfigRepresentation(authenticatorConfigRepresentation).Execute() + +Update execution with new configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + executionId := "executionId_example" // string | Execution id + authenticatorConfigRepresentation := *openapiclient.NewAuthenticatorConfigRepresentation() // AuthenticatorConfigRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost(context.Background(), realm, executionId).AuthenticatorConfigRepresentation(authenticatorConfigRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost``: %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. +**realm** | **string** | realm name (not id!) | +**executionId** | **string** | Execution id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authenticatorConfigRepresentation** | [**AuthenticatorConfigRepresentation**](AuthenticatorConfigRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete + +> AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete(ctx, realm, executionId).Execute() + +Delete execution + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + executionId := "executionId_example" // string | Execution id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete(context.Background(), realm, executionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**executionId** | **string** | Execution id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationExecutionsExecutionIdGet + +> AuthenticationExecutionRepresentation AdminRealmsRealmAuthenticationExecutionsExecutionIdGet(ctx, realm, executionId).Execute() + +Get Single Execution + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + executionId := "executionId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdGet(context.Background(), realm, executionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationExecutionsExecutionIdGet`: AuthenticationExecutionRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**executionId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AuthenticationExecutionRepresentation**](AuthenticationExecutionRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost + +> AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost(ctx, realm, executionId).Execute() + +Lower execution's priority + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + executionId := "executionId_example" // string | Execution id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost(context.Background(), realm, executionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost``: %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. +**realm** | **string** | realm name (not id!) | +**executionId** | **string** | Execution id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost + +> AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost(ctx, realm, executionId).Execute() + +Raise execution's priority + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + executionId := "executionId_example" // string | Execution id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost(context.Background(), realm, executionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost``: %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. +**realm** | **string** | realm name (not id!) | +**executionId** | **string** | Execution id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationExecutionsPost + +> AdminRealmsRealmAuthenticationExecutionsPost(ctx, realm).AuthenticationExecutionRepresentation(authenticationExecutionRepresentation).Execute() + +Add new authentication execution + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + authenticationExecutionRepresentation := *openapiclient.NewAuthenticationExecutionRepresentation() // AuthenticationExecutionRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsPost(context.Background(), realm).AuthenticationExecutionRepresentation(authenticationExecutionRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationExecutionsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authenticationExecutionRepresentation** | [**AuthenticationExecutionRepresentation**](AuthenticationExecutionRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost + +> AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost(ctx, realm, flowAlias).RequestBody(requestBody).Execute() + +Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + flowAlias := "flowAlias_example" // string | name of the existing authentication flow + requestBody := map[string]string{"key": "Inner_example"} // map[string]string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost(context.Background(), realm, flowAlias).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost``: %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. +**realm** | **string** | realm name (not id!) | +**flowAlias** | **string** | name of the existing authentication flow | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requestBody** | **map[string]string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost + +> AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost(ctx, realm, flowAlias).RequestBody(requestBody).Execute() + +Add new authentication execution to a flow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + flowAlias := "flowAlias_example" // string | Alias of parent flow + requestBody := map[string]interface{}{"key": interface{}(123)} // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost(context.Background(), realm, flowAlias).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost``: %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. +**realm** | **string** | realm name (not id!) | +**flowAlias** | **string** | Alias of parent flow | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requestBody** | **map[string]interface{}** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost + +> AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost(ctx, realm, flowAlias).RequestBody(requestBody).Execute() + +Add new flow with new execution to existing flow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + flowAlias := "flowAlias_example" // string | Alias of parent authentication flow + requestBody := map[string]interface{}{"key": interface{}(123)} // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost(context.Background(), realm, flowAlias).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost``: %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. +**realm** | **string** | realm name (not id!) | +**flowAlias** | **string** | Alias of parent authentication flow | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requestBody** | **map[string]interface{}** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet + +> []AuthenticationExecutionInfoRepresentation AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet(ctx, realm, flowAlias).Execute() + +Get authentication executions for a flow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + flowAlias := "flowAlias_example" // string | Flow alias + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet(context.Background(), realm, flowAlias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet`: []AuthenticationExecutionInfoRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**flowAlias** | **string** | Flow alias | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]AuthenticationExecutionInfoRepresentation**](AuthenticationExecutionInfoRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut + +> AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut(ctx, realm, flowAlias).AuthenticationExecutionInfoRepresentation(authenticationExecutionInfoRepresentation).Execute() + +Update authentication executions of a Flow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + flowAlias := "flowAlias_example" // string | Flow alias + authenticationExecutionInfoRepresentation := *openapiclient.NewAuthenticationExecutionInfoRepresentation() // AuthenticationExecutionInfoRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut(context.Background(), realm, flowAlias).AuthenticationExecutionInfoRepresentation(authenticationExecutionInfoRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut``: %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. +**realm** | **string** | realm name (not id!) | +**flowAlias** | **string** | Flow alias | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authenticationExecutionInfoRepresentation** | [**AuthenticationExecutionInfoRepresentation**](AuthenticationExecutionInfoRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFlowsGet + +> []AuthenticationFlowRepresentation AdminRealmsRealmAuthenticationFlowsGet(ctx, realm).Execute() + +Get authentication flows Returns a stream of authentication flows. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationFlowsGet`: []AuthenticationFlowRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]AuthenticationFlowRepresentation**](AuthenticationFlowRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationFlowsIdDelete + +> AdminRealmsRealmAuthenticationFlowsIdDelete(ctx, realm, id).Execute() + +Delete an authentication flow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | Flow id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdDelete(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | Flow id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFlowsIdGet + +> AuthenticationFlowRepresentation AdminRealmsRealmAuthenticationFlowsIdGet(ctx, realm, id).Execute() + +Get authentication flow for id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | Flow id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdGet(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationFlowsIdGet`: AuthenticationFlowRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | Flow id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AuthenticationFlowRepresentation**](AuthenticationFlowRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationFlowsIdPut + +> AdminRealmsRealmAuthenticationFlowsIdPut(ctx, realm, id).AuthenticationFlowRepresentation(authenticationFlowRepresentation).Execute() + +Update an authentication flow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + authenticationFlowRepresentation := *openapiclient.NewAuthenticationFlowRepresentation() // AuthenticationFlowRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdPut(context.Background(), realm, id).AuthenticationFlowRepresentation(authenticationFlowRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authenticationFlowRepresentation** | [**AuthenticationFlowRepresentation**](AuthenticationFlowRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFlowsPost + +> AdminRealmsRealmAuthenticationFlowsPost(ctx, realm).AuthenticationFlowRepresentation(authenticationFlowRepresentation).Execute() + +Create a new authentication flow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + authenticationFlowRepresentation := *openapiclient.NewAuthenticationFlowRepresentation() // AuthenticationFlowRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsPost(context.Background(), realm).AuthenticationFlowRepresentation(authenticationFlowRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFlowsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authenticationFlowRepresentation** | [**AuthenticationFlowRepresentation**](AuthenticationFlowRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationFormActionProvidersGet + +> []map[string]interface{} AdminRealmsRealmAuthenticationFormActionProvidersGet(ctx, realm).Execute() + +Get form action providers Returns a stream of form action providers. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormActionProvidersGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormActionProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationFormActionProvidersGet`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormActionProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]map[string]interface{}**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationFormProvidersGet + +> []map[string]interface{} AdminRealmsRealmAuthenticationFormProvidersGet(ctx, realm).Execute() + +Get form providers Returns a stream of form providers. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormProvidersGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationFormProvidersGet`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationFormProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]map[string]interface{}**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet + +> map[string][]ConfigPropertyRepresentation AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet(ctx, realm).Execute() + +Get configuration descriptions for all clients + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet`: map[string][]ConfigPropertyRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**map[string][]ConfigPropertyRepresentation**](array.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationRegisterRequiredActionPost + +> AdminRealmsRealmAuthenticationRegisterRequiredActionPost(ctx, realm).RequestBody(requestBody).Execute() + +Register a new required actions + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + requestBody := map[string]string{"key": "Inner_example"} // map[string]string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRegisterRequiredActionPost(context.Background(), realm).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRegisterRequiredActionPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **requestBody** | **map[string]string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete + +> AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete(ctx, realm, alias).Execute() + +Delete RequiredAction configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet + +> RequiredActionConfigInfoRepresentation AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet(ctx, realm, alias).Execute() + +Get RequiredAction provider configuration description + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet`: RequiredActionConfigInfoRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**RequiredActionConfigInfoRepresentation**](RequiredActionConfigInfoRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet + +> RequiredActionConfigRepresentation AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet(ctx, realm, alias).Execute() + +Get RequiredAction configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet`: RequiredActionConfigRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**RequiredActionConfigRepresentation**](RequiredActionConfigRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut + +> AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut(ctx, realm, alias).RequiredActionConfigRepresentation(requiredActionConfigRepresentation).Execute() + +Update RequiredAction configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + requiredActionConfigRepresentation := *openapiclient.NewRequiredActionConfigRepresentation() // RequiredActionConfigRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut(context.Background(), realm, alias).RequiredActionConfigRepresentation(requiredActionConfigRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requiredActionConfigRepresentation** | [**RequiredActionConfigRepresentation**](RequiredActionConfigRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasDelete + +> AdminRealmsRealmAuthenticationRequiredActionsAliasDelete(ctx, realm, alias).Execute() + +Delete required action + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasDelete(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasDelete``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasGet + +> RequiredActionProviderRepresentation AdminRealmsRealmAuthenticationRequiredActionsAliasGet(ctx, realm, alias).Execute() + +Get required action for alias + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationRequiredActionsAliasGet`: RequiredActionProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**RequiredActionProviderRepresentation**](RequiredActionProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost + +> AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost(ctx, realm, alias).Execute() + +Lower required action's priority + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasPut + +> AdminRealmsRealmAuthenticationRequiredActionsAliasPut(ctx, realm, alias).RequiredActionProviderRepresentation(requiredActionProviderRepresentation).Execute() + +Update required action + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + requiredActionProviderRepresentation := *openapiclient.NewRequiredActionProviderRepresentation() // RequiredActionProviderRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasPut(context.Background(), realm, alias).RequiredActionProviderRepresentation(requiredActionProviderRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasPut``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requiredActionProviderRepresentation** | [**RequiredActionProviderRepresentation**](RequiredActionProviderRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost + +> AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost(ctx, realm, alias).Execute() + +Raise required action's priority + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | Alias of required action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | Alias of required action | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAuthenticationRequiredActionsGet + +> []RequiredActionProviderRepresentation AdminRealmsRealmAuthenticationRequiredActionsGet(ctx, realm).Execute() + +Get required actions Returns a stream of required actions. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationRequiredActionsGet`: []RequiredActionProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationRequiredActionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]RequiredActionProviderRepresentation**](RequiredActionProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet + +> []map[string]string AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet(ctx, realm).Execute() + +Get unregistered required actions Returns a stream of unregistered required actions. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet`: []map[string]string + fmt.Fprintf(os.Stdout, "Response from `AuthenticationManagementAPI.AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]map[string]string**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AuthenticatorConfigInfoRepresentation.md b/docs/AuthenticatorConfigInfoRepresentation.md new file mode 100644 index 0000000..46b1471 --- /dev/null +++ b/docs/AuthenticatorConfigInfoRepresentation.md @@ -0,0 +1,134 @@ +# AuthenticatorConfigInfoRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**HelpText** | Pointer to **string** | | [optional] +**Properties** | Pointer to [**[]ConfigPropertyRepresentation**](ConfigPropertyRepresentation.md) | | [optional] + +## Methods + +### NewAuthenticatorConfigInfoRepresentation + +`func NewAuthenticatorConfigInfoRepresentation() *AuthenticatorConfigInfoRepresentation` + +NewAuthenticatorConfigInfoRepresentation instantiates a new AuthenticatorConfigInfoRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticatorConfigInfoRepresentationWithDefaults + +`func NewAuthenticatorConfigInfoRepresentationWithDefaults() *AuthenticatorConfigInfoRepresentation` + +NewAuthenticatorConfigInfoRepresentationWithDefaults instantiates a new AuthenticatorConfigInfoRepresentation object +This 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 *AuthenticatorConfigInfoRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AuthenticatorConfigInfoRepresentation) 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 *AuthenticatorConfigInfoRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AuthenticatorConfigInfoRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProviderId + +`func (o *AuthenticatorConfigInfoRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *AuthenticatorConfigInfoRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *AuthenticatorConfigInfoRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *AuthenticatorConfigInfoRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetHelpText + +`func (o *AuthenticatorConfigInfoRepresentation) GetHelpText() string` + +GetHelpText returns the HelpText field if non-nil, zero value otherwise. + +### GetHelpTextOk + +`func (o *AuthenticatorConfigInfoRepresentation) GetHelpTextOk() (*string, bool)` + +GetHelpTextOk returns a tuple with the HelpText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHelpText + +`func (o *AuthenticatorConfigInfoRepresentation) SetHelpText(v string)` + +SetHelpText sets HelpText field to given value. + +### HasHelpText + +`func (o *AuthenticatorConfigInfoRepresentation) HasHelpText() bool` + +HasHelpText returns a boolean if a field has been set. + +### GetProperties + +`func (o *AuthenticatorConfigInfoRepresentation) GetProperties() []ConfigPropertyRepresentation` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *AuthenticatorConfigInfoRepresentation) GetPropertiesOk() (*[]ConfigPropertyRepresentation, 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 *AuthenticatorConfigInfoRepresentation) SetProperties(v []ConfigPropertyRepresentation)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *AuthenticatorConfigInfoRepresentation) 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/docs/AuthenticatorConfigRepresentation.md b/docs/AuthenticatorConfigRepresentation.md new file mode 100644 index 0000000..d68c053 --- /dev/null +++ b/docs/AuthenticatorConfigRepresentation.md @@ -0,0 +1,108 @@ +# AuthenticatorConfigRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewAuthenticatorConfigRepresentation + +`func NewAuthenticatorConfigRepresentation() *AuthenticatorConfigRepresentation` + +NewAuthenticatorConfigRepresentation instantiates a new AuthenticatorConfigRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticatorConfigRepresentationWithDefaults + +`func NewAuthenticatorConfigRepresentationWithDefaults() *AuthenticatorConfigRepresentation` + +NewAuthenticatorConfigRepresentationWithDefaults instantiates a new AuthenticatorConfigRepresentation object +This 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 *AuthenticatorConfigRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AuthenticatorConfigRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAlias + +`func (o *AuthenticatorConfigRepresentation) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *AuthenticatorConfigRepresentation) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetConfig + +`func (o *AuthenticatorConfigRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *AuthenticatorConfigRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *AuthenticatorConfigRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *AuthenticatorConfigRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Authorization.md b/docs/Authorization.md new file mode 100644 index 0000000..c60f9c1 --- /dev/null +++ b/docs/Authorization.md @@ -0,0 +1,56 @@ +# Authorization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permissions** | Pointer to [**[]Permission**](Permission.md) | | [optional] + +## Methods + +### NewAuthorization + +`func NewAuthorization() *Authorization` + +NewAuthorization instantiates a new Authorization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthorizationWithDefaults + +`func NewAuthorizationWithDefaults() *Authorization` + +NewAuthorizationWithDefaults instantiates a new Authorization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPermissions + +`func (o *Authorization) GetPermissions() []Permission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *Authorization) GetPermissionsOk() (*[]Permission, 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 *Authorization) SetPermissions(v []Permission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *Authorization) 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/docs/BruteForceStrategy.md b/docs/BruteForceStrategy.md new file mode 100644 index 0000000..32e4d46 --- /dev/null +++ b/docs/BruteForceStrategy.md @@ -0,0 +1,13 @@ +# BruteForceStrategy + +## Enum + + +* `LINEAR` (value: `"LINEAR"`) + +* `MULTIPLE` (value: `"MULTIPLE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CertificateRepresentation.md b/docs/CertificateRepresentation.md new file mode 100644 index 0000000..2194369 --- /dev/null +++ b/docs/CertificateRepresentation.md @@ -0,0 +1,134 @@ +# CertificateRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivateKey** | Pointer to **string** | | [optional] +**PublicKey** | Pointer to **string** | | [optional] +**Certificate** | Pointer to **string** | | [optional] +**Kid** | Pointer to **string** | | [optional] + +## Methods + +### NewCertificateRepresentation + +`func NewCertificateRepresentation() *CertificateRepresentation` + +NewCertificateRepresentation instantiates a new CertificateRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateRepresentationWithDefaults + +`func NewCertificateRepresentationWithDefaults() *CertificateRepresentation` + +NewCertificateRepresentationWithDefaults instantiates a new CertificateRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrivateKey + +`func (o *CertificateRepresentation) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *CertificateRepresentation) 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 *CertificateRepresentation) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *CertificateRepresentation) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *CertificateRepresentation) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *CertificateRepresentation) 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 *CertificateRepresentation) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *CertificateRepresentation) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetCertificate + +`func (o *CertificateRepresentation) GetCertificate() string` + +GetCertificate returns the Certificate field if non-nil, zero value otherwise. + +### GetCertificateOk + +`func (o *CertificateRepresentation) 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 *CertificateRepresentation) SetCertificate(v string)` + +SetCertificate sets Certificate field to given value. + +### HasCertificate + +`func (o *CertificateRepresentation) HasCertificate() bool` + +HasCertificate returns a boolean if a field has been set. + +### GetKid + +`func (o *CertificateRepresentation) GetKid() string` + +GetKid returns the Kid field if non-nil, zero value otherwise. + +### GetKidOk + +`func (o *CertificateRepresentation) GetKidOk() (*string, bool)` + +GetKidOk returns a tuple with the Kid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKid + +`func (o *CertificateRepresentation) SetKid(v string)` + +SetKid sets Kid field to given value. + +### HasKid + +`func (o *CertificateRepresentation) HasKid() bool` + +HasKid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClaimRepresentation.md b/docs/ClaimRepresentation.md new file mode 100644 index 0000000..5b1c71f --- /dev/null +++ b/docs/ClaimRepresentation.md @@ -0,0 +1,290 @@ +# ClaimRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **bool** | | [optional] +**Username** | Pointer to **bool** | | [optional] +**Profile** | Pointer to **bool** | | [optional] +**Picture** | Pointer to **bool** | | [optional] +**Website** | Pointer to **bool** | | [optional] +**Email** | Pointer to **bool** | | [optional] +**Gender** | Pointer to **bool** | | [optional] +**Locale** | Pointer to **bool** | | [optional] +**Address** | Pointer to **bool** | | [optional] +**Phone** | Pointer to **bool** | | [optional] + +## Methods + +### NewClaimRepresentation + +`func NewClaimRepresentation() *ClaimRepresentation` + +NewClaimRepresentation instantiates a new ClaimRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClaimRepresentationWithDefaults + +`func NewClaimRepresentationWithDefaults() *ClaimRepresentation` + +NewClaimRepresentationWithDefaults instantiates a new ClaimRepresentation object +This 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 *ClaimRepresentation) GetName() bool` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClaimRepresentation) GetNameOk() (*bool, 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 *ClaimRepresentation) SetName(v bool)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClaimRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUsername + +`func (o *ClaimRepresentation) GetUsername() bool` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ClaimRepresentation) GetUsernameOk() (*bool, 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 *ClaimRepresentation) SetUsername(v bool)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ClaimRepresentation) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetProfile + +`func (o *ClaimRepresentation) GetProfile() bool` + +GetProfile returns the Profile field if non-nil, zero value otherwise. + +### GetProfileOk + +`func (o *ClaimRepresentation) GetProfileOk() (*bool, bool)` + +GetProfileOk returns a tuple with the Profile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfile + +`func (o *ClaimRepresentation) SetProfile(v bool)` + +SetProfile sets Profile field to given value. + +### HasProfile + +`func (o *ClaimRepresentation) HasProfile() bool` + +HasProfile returns a boolean if a field has been set. + +### GetPicture + +`func (o *ClaimRepresentation) GetPicture() bool` + +GetPicture returns the Picture field if non-nil, zero value otherwise. + +### GetPictureOk + +`func (o *ClaimRepresentation) GetPictureOk() (*bool, bool)` + +GetPictureOk returns a tuple with the Picture field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPicture + +`func (o *ClaimRepresentation) SetPicture(v bool)` + +SetPicture sets Picture field to given value. + +### HasPicture + +`func (o *ClaimRepresentation) HasPicture() bool` + +HasPicture returns a boolean if a field has been set. + +### GetWebsite + +`func (o *ClaimRepresentation) GetWebsite() bool` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *ClaimRepresentation) GetWebsiteOk() (*bool, bool)` + +GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsite + +`func (o *ClaimRepresentation) SetWebsite(v bool)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *ClaimRepresentation) HasWebsite() bool` + +HasWebsite returns a boolean if a field has been set. + +### GetEmail + +`func (o *ClaimRepresentation) GetEmail() bool` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ClaimRepresentation) GetEmailOk() (*bool, 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 *ClaimRepresentation) SetEmail(v bool)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *ClaimRepresentation) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetGender + +`func (o *ClaimRepresentation) GetGender() bool` + +GetGender returns the Gender field if non-nil, zero value otherwise. + +### GetGenderOk + +`func (o *ClaimRepresentation) GetGenderOk() (*bool, bool)` + +GetGenderOk returns a tuple with the Gender field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGender + +`func (o *ClaimRepresentation) SetGender(v bool)` + +SetGender sets Gender field to given value. + +### HasGender + +`func (o *ClaimRepresentation) HasGender() bool` + +HasGender returns a boolean if a field has been set. + +### GetLocale + +`func (o *ClaimRepresentation) GetLocale() bool` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *ClaimRepresentation) GetLocaleOk() (*bool, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *ClaimRepresentation) SetLocale(v bool)` + +SetLocale sets Locale field to given value. + +### HasLocale + +`func (o *ClaimRepresentation) HasLocale() bool` + +HasLocale returns a boolean if a field has been set. + +### GetAddress + +`func (o *ClaimRepresentation) GetAddress() bool` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *ClaimRepresentation) GetAddressOk() (*bool, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *ClaimRepresentation) SetAddress(v bool)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *ClaimRepresentation) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetPhone + +`func (o *ClaimRepresentation) GetPhone() bool` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *ClaimRepresentation) GetPhoneOk() (*bool, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *ClaimRepresentation) SetPhone(v bool)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *ClaimRepresentation) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientAttributeCertificateAPI.md b/docs/ClientAttributeCertificateAPI.md new file mode 100644 index 0000000..043e12b --- /dev/null +++ b/docs/ClientAttributeCertificateAPI.md @@ -0,0 +1,462 @@ +# \ClientAttributeCertificateAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost**](ClientAttributeCertificateAPI.md#AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download | Get a keystore file for the client, containing private key and public certificate +[**AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost**](ClientAttributeCertificateAPI.md#AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download | Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format. Only generated public certificate is saved in Keycloak DB - the private key is not. +[**AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost**](ClientAttributeCertificateAPI.md#AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate | Generate a new certificate with new key pair +[**AdminRealmsRealmClientsClientUuidCertificatesAttrGet**](ClientAttributeCertificateAPI.md#AdminRealmsRealmClientsClientUuidCertificatesAttrGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr} | Get key info +[**AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost**](ClientAttributeCertificateAPI.md#AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate | Upload only certificate, not private key +[**AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost**](ClientAttributeCertificateAPI.md#AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload | Upload certificate and eventually private key + + + +## AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost + +> *os.File AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost(ctx, realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute() + +Get a keystore file for the client, containing private key and public certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + attr := "attr_example" // string | + keyStoreConfig := *openapiclient.NewKeyStoreConfig() // KeyStoreConfig | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost(context.Background(), realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**attr** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **keyStoreConfig** | [**KeyStoreConfig**](KeyStoreConfig.md) | | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost + +> *os.File AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost(ctx, realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute() + +Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format. Only generated public certificate is saved in Keycloak DB - the private key is not. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + attr := "attr_example" // string | + keyStoreConfig := *openapiclient.NewKeyStoreConfig() // KeyStoreConfig | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost(context.Background(), realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**attr** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **keyStoreConfig** | [**KeyStoreConfig**](KeyStoreConfig.md) | | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost + +> CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost(ctx, realm, clientUuid, attr).Execute() + +Generate a new certificate with new key pair + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + attr := "attr_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost(context.Background(), realm, clientUuid, attr).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost`: CertificateRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**attr** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**CertificateRepresentation**](CertificateRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidCertificatesAttrGet + +> CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrGet(ctx, realm, clientUuid, attr).Execute() + +Get key info + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + attr := "attr_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGet(context.Background(), realm, clientUuid, attr).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidCertificatesAttrGet`: CertificateRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**attr** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**CertificateRepresentation**](CertificateRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost + +> CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost(ctx, realm, clientUuid, attr).Execute() + +Upload only certificate, not private key + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + attr := "attr_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost(context.Background(), realm, clientUuid, attr).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost`: CertificateRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**attr** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**CertificateRepresentation**](CertificateRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost + +> CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost(ctx, realm, clientUuid, attr).Execute() + +Upload certificate and eventually private key + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + attr := "attr_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost(context.Background(), realm, clientUuid, attr).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost`: CertificateRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**attr** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**CertificateRepresentation**](CertificateRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ClientInitialAccessAPI.md b/docs/ClientInitialAccessAPI.md new file mode 100644 index 0000000..5e6b0dc --- /dev/null +++ b/docs/ClientInitialAccessAPI.md @@ -0,0 +1,218 @@ +# \ClientInitialAccessAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientsInitialAccessGet**](ClientInitialAccessAPI.md#AdminRealmsRealmClientsInitialAccessGet) | **Get** /admin/realms/{realm}/clients-initial-access | +[**AdminRealmsRealmClientsInitialAccessIdDelete**](ClientInitialAccessAPI.md#AdminRealmsRealmClientsInitialAccessIdDelete) | **Delete** /admin/realms/{realm}/clients-initial-access/{id} | +[**AdminRealmsRealmClientsInitialAccessPost**](ClientInitialAccessAPI.md#AdminRealmsRealmClientsInitialAccessPost) | **Post** /admin/realms/{realm}/clients-initial-access | Create a new initial access token. + + + +## AdminRealmsRealmClientsInitialAccessGet + +> []ClientInitialAccessPresentation AdminRealmsRealmClientsInitialAccessGet(ctx, realm).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsInitialAccessGet`: []ClientInitialAccessPresentation + fmt.Fprintf(os.Stdout, "Response from `ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsInitialAccessGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ClientInitialAccessPresentation**](ClientInitialAccessPresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsInitialAccessIdDelete + +> AdminRealmsRealmClientsInitialAccessIdDelete(ctx, realm, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessIdDelete(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsInitialAccessIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsInitialAccessPost + +> ClientInitialAccessCreatePresentation AdminRealmsRealmClientsInitialAccessPost(ctx, realm).ClientInitialAccessCreatePresentation(clientInitialAccessCreatePresentation).Execute() + +Create a new initial access token. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientInitialAccessCreatePresentation := *openapiclient.NewClientInitialAccessCreatePresentation() // ClientInitialAccessCreatePresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessPost(context.Background(), realm).ClientInitialAccessCreatePresentation(clientInitialAccessCreatePresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsInitialAccessPost`: ClientInitialAccessCreatePresentation + fmt.Fprintf(os.Stdout, "Response from `ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsInitialAccessPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientInitialAccessCreatePresentation** | [**ClientInitialAccessCreatePresentation**](ClientInitialAccessCreatePresentation.md) | | + +### Return type + +[**ClientInitialAccessCreatePresentation**](ClientInitialAccessCreatePresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ClientInitialAccessCreatePresentation.md b/docs/ClientInitialAccessCreatePresentation.md new file mode 100644 index 0000000..e51a5b5 --- /dev/null +++ b/docs/ClientInitialAccessCreatePresentation.md @@ -0,0 +1,82 @@ +# ClientInitialAccessCreatePresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Expiration** | Pointer to **int32** | | [optional] +**Count** | Pointer to **int32** | | [optional] + +## Methods + +### NewClientInitialAccessCreatePresentation + +`func NewClientInitialAccessCreatePresentation() *ClientInitialAccessCreatePresentation` + +NewClientInitialAccessCreatePresentation instantiates a new ClientInitialAccessCreatePresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientInitialAccessCreatePresentationWithDefaults + +`func NewClientInitialAccessCreatePresentationWithDefaults() *ClientInitialAccessCreatePresentation` + +NewClientInitialAccessCreatePresentationWithDefaults instantiates a new ClientInitialAccessCreatePresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExpiration + +`func (o *ClientInitialAccessCreatePresentation) GetExpiration() int32` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *ClientInitialAccessCreatePresentation) GetExpirationOk() (*int32, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *ClientInitialAccessCreatePresentation) SetExpiration(v int32)` + +SetExpiration sets Expiration field to given value. + +### HasExpiration + +`func (o *ClientInitialAccessCreatePresentation) HasExpiration() bool` + +HasExpiration returns a boolean if a field has been set. + +### GetCount + +`func (o *ClientInitialAccessCreatePresentation) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ClientInitialAccessCreatePresentation) 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 *ClientInitialAccessCreatePresentation) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ClientInitialAccessCreatePresentation) 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/docs/ClientInitialAccessPresentation.md b/docs/ClientInitialAccessPresentation.md new file mode 100644 index 0000000..b3bbd24 --- /dev/null +++ b/docs/ClientInitialAccessPresentation.md @@ -0,0 +1,186 @@ +# ClientInitialAccessPresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Token** | Pointer to **string** | | [optional] +**Timestamp** | Pointer to **int32** | | [optional] +**Expiration** | Pointer to **int32** | | [optional] +**Count** | Pointer to **int32** | | [optional] +**RemainingCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewClientInitialAccessPresentation + +`func NewClientInitialAccessPresentation() *ClientInitialAccessPresentation` + +NewClientInitialAccessPresentation instantiates a new ClientInitialAccessPresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientInitialAccessPresentationWithDefaults + +`func NewClientInitialAccessPresentationWithDefaults() *ClientInitialAccessPresentation` + +NewClientInitialAccessPresentationWithDefaults instantiates a new ClientInitialAccessPresentation object +This 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 *ClientInitialAccessPresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ClientInitialAccessPresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetToken + +`func (o *ClientInitialAccessPresentation) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *ClientInitialAccessPresentation) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *ClientInitialAccessPresentation) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *ClientInitialAccessPresentation) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *ClientInitialAccessPresentation) GetTimestamp() int32` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *ClientInitialAccessPresentation) GetTimestampOk() (*int32, 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 *ClientInitialAccessPresentation) SetTimestamp(v int32)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *ClientInitialAccessPresentation) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetExpiration + +`func (o *ClientInitialAccessPresentation) GetExpiration() int32` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *ClientInitialAccessPresentation) GetExpirationOk() (*int32, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *ClientInitialAccessPresentation) SetExpiration(v int32)` + +SetExpiration sets Expiration field to given value. + +### HasExpiration + +`func (o *ClientInitialAccessPresentation) HasExpiration() bool` + +HasExpiration returns a boolean if a field has been set. + +### GetCount + +`func (o *ClientInitialAccessPresentation) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ClientInitialAccessPresentation) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetRemainingCount + +`func (o *ClientInitialAccessPresentation) GetRemainingCount() int32` + +GetRemainingCount returns the RemainingCount field if non-nil, zero value otherwise. + +### GetRemainingCountOk + +`func (o *ClientInitialAccessPresentation) GetRemainingCountOk() (*int32, bool)` + +GetRemainingCountOk returns a tuple with the RemainingCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemainingCount + +`func (o *ClientInitialAccessPresentation) SetRemainingCount(v int32)` + +SetRemainingCount sets RemainingCount field to given value. + +### HasRemainingCount + +`func (o *ClientInitialAccessPresentation) HasRemainingCount() bool` + +HasRemainingCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientMappingsRepresentation.md b/docs/ClientMappingsRepresentation.md new file mode 100644 index 0000000..615e79b --- /dev/null +++ b/docs/ClientMappingsRepresentation.md @@ -0,0 +1,108 @@ +# ClientMappingsRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Client** | Pointer to **string** | | [optional] +**Mappings** | Pointer to [**[]RoleRepresentation**](RoleRepresentation.md) | | [optional] + +## Methods + +### NewClientMappingsRepresentation + +`func NewClientMappingsRepresentation() *ClientMappingsRepresentation` + +NewClientMappingsRepresentation instantiates a new ClientMappingsRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientMappingsRepresentationWithDefaults + +`func NewClientMappingsRepresentationWithDefaults() *ClientMappingsRepresentation` + +NewClientMappingsRepresentationWithDefaults instantiates a new ClientMappingsRepresentation object +This 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 *ClientMappingsRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClientMappingsRepresentation) 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 *ClientMappingsRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ClientMappingsRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClient + +`func (o *ClientMappingsRepresentation) GetClient() string` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *ClientMappingsRepresentation) GetClientOk() (*string, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *ClientMappingsRepresentation) SetClient(v string)` + +SetClient sets Client field to given value. + +### HasClient + +`func (o *ClientMappingsRepresentation) HasClient() bool` + +HasClient returns a boolean if a field has been set. + +### GetMappings + +`func (o *ClientMappingsRepresentation) GetMappings() []RoleRepresentation` + +GetMappings returns the Mappings field if non-nil, zero value otherwise. + +### GetMappingsOk + +`func (o *ClientMappingsRepresentation) GetMappingsOk() (*[]RoleRepresentation, bool)` + +GetMappingsOk returns a tuple with the Mappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMappings + +`func (o *ClientMappingsRepresentation) SetMappings(v []RoleRepresentation)` + +SetMappings sets Mappings field to given value. + +### HasMappings + +`func (o *ClientMappingsRepresentation) HasMappings() bool` + +HasMappings returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientPoliciesRepresentation.md b/docs/ClientPoliciesRepresentation.md new file mode 100644 index 0000000..5b8fceb --- /dev/null +++ b/docs/ClientPoliciesRepresentation.md @@ -0,0 +1,82 @@ +# ClientPoliciesRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policies** | Pointer to [**[]ClientPolicyRepresentation**](ClientPolicyRepresentation.md) | | [optional] +**GlobalPolicies** | Pointer to [**[]ClientPolicyRepresentation**](ClientPolicyRepresentation.md) | | [optional] + +## Methods + +### NewClientPoliciesRepresentation + +`func NewClientPoliciesRepresentation() *ClientPoliciesRepresentation` + +NewClientPoliciesRepresentation instantiates a new ClientPoliciesRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientPoliciesRepresentationWithDefaults + +`func NewClientPoliciesRepresentationWithDefaults() *ClientPoliciesRepresentation` + +NewClientPoliciesRepresentationWithDefaults instantiates a new ClientPoliciesRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicies + +`func (o *ClientPoliciesRepresentation) GetPolicies() []ClientPolicyRepresentation` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *ClientPoliciesRepresentation) GetPoliciesOk() (*[]ClientPolicyRepresentation, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *ClientPoliciesRepresentation) SetPolicies(v []ClientPolicyRepresentation)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *ClientPoliciesRepresentation) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + +### GetGlobalPolicies + +`func (o *ClientPoliciesRepresentation) GetGlobalPolicies() []ClientPolicyRepresentation` + +GetGlobalPolicies returns the GlobalPolicies field if non-nil, zero value otherwise. + +### GetGlobalPoliciesOk + +`func (o *ClientPoliciesRepresentation) GetGlobalPoliciesOk() (*[]ClientPolicyRepresentation, bool)` + +GetGlobalPoliciesOk returns a tuple with the GlobalPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGlobalPolicies + +`func (o *ClientPoliciesRepresentation) SetGlobalPolicies(v []ClientPolicyRepresentation)` + +SetGlobalPolicies sets GlobalPolicies field to given value. + +### HasGlobalPolicies + +`func (o *ClientPoliciesRepresentation) HasGlobalPolicies() bool` + +HasGlobalPolicies returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientPolicyConditionRepresentation.md b/docs/ClientPolicyConditionRepresentation.md new file mode 100644 index 0000000..98d2d1d --- /dev/null +++ b/docs/ClientPolicyConditionRepresentation.md @@ -0,0 +1,82 @@ +# ClientPolicyConditionRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Condition** | Pointer to **string** | | [optional] +**Configuration** | Pointer to **[]string** | | [optional] + +## Methods + +### NewClientPolicyConditionRepresentation + +`func NewClientPolicyConditionRepresentation() *ClientPolicyConditionRepresentation` + +NewClientPolicyConditionRepresentation instantiates a new ClientPolicyConditionRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientPolicyConditionRepresentationWithDefaults + +`func NewClientPolicyConditionRepresentationWithDefaults() *ClientPolicyConditionRepresentation` + +NewClientPolicyConditionRepresentationWithDefaults instantiates a new ClientPolicyConditionRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCondition + +`func (o *ClientPolicyConditionRepresentation) GetCondition() string` + +GetCondition returns the Condition field if non-nil, zero value otherwise. + +### GetConditionOk + +`func (o *ClientPolicyConditionRepresentation) GetConditionOk() (*string, bool)` + +GetConditionOk returns a tuple with the Condition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondition + +`func (o *ClientPolicyConditionRepresentation) SetCondition(v string)` + +SetCondition sets Condition field to given value. + +### HasCondition + +`func (o *ClientPolicyConditionRepresentation) HasCondition() bool` + +HasCondition returns a boolean if a field has been set. + +### GetConfiguration + +`func (o *ClientPolicyConditionRepresentation) GetConfiguration() []string` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *ClientPolicyConditionRepresentation) GetConfigurationOk() (*[]string, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *ClientPolicyConditionRepresentation) SetConfiguration(v []string)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *ClientPolicyConditionRepresentation) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientPolicyExecutorRepresentation.md b/docs/ClientPolicyExecutorRepresentation.md new file mode 100644 index 0000000..c479525 --- /dev/null +++ b/docs/ClientPolicyExecutorRepresentation.md @@ -0,0 +1,82 @@ +# ClientPolicyExecutorRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Executor** | Pointer to **string** | | [optional] +**Configuration** | Pointer to **[]string** | | [optional] + +## Methods + +### NewClientPolicyExecutorRepresentation + +`func NewClientPolicyExecutorRepresentation() *ClientPolicyExecutorRepresentation` + +NewClientPolicyExecutorRepresentation instantiates a new ClientPolicyExecutorRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientPolicyExecutorRepresentationWithDefaults + +`func NewClientPolicyExecutorRepresentationWithDefaults() *ClientPolicyExecutorRepresentation` + +NewClientPolicyExecutorRepresentationWithDefaults instantiates a new ClientPolicyExecutorRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExecutor + +`func (o *ClientPolicyExecutorRepresentation) GetExecutor() string` + +GetExecutor returns the Executor field if non-nil, zero value otherwise. + +### GetExecutorOk + +`func (o *ClientPolicyExecutorRepresentation) GetExecutorOk() (*string, bool)` + +GetExecutorOk returns a tuple with the Executor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutor + +`func (o *ClientPolicyExecutorRepresentation) SetExecutor(v string)` + +SetExecutor sets Executor field to given value. + +### HasExecutor + +`func (o *ClientPolicyExecutorRepresentation) HasExecutor() bool` + +HasExecutor returns a boolean if a field has been set. + +### GetConfiguration + +`func (o *ClientPolicyExecutorRepresentation) GetConfiguration() []string` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *ClientPolicyExecutorRepresentation) GetConfigurationOk() (*[]string, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *ClientPolicyExecutorRepresentation) SetConfiguration(v []string)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *ClientPolicyExecutorRepresentation) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientPolicyRepresentation.md b/docs/ClientPolicyRepresentation.md new file mode 100644 index 0000000..2c3ce85 --- /dev/null +++ b/docs/ClientPolicyRepresentation.md @@ -0,0 +1,160 @@ +# ClientPolicyRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Conditions** | Pointer to [**[]ClientPolicyConditionRepresentation**](ClientPolicyConditionRepresentation.md) | | [optional] +**Profiles** | Pointer to **[]string** | | [optional] + +## Methods + +### NewClientPolicyRepresentation + +`func NewClientPolicyRepresentation() *ClientPolicyRepresentation` + +NewClientPolicyRepresentation instantiates a new ClientPolicyRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientPolicyRepresentationWithDefaults + +`func NewClientPolicyRepresentationWithDefaults() *ClientPolicyRepresentation` + +NewClientPolicyRepresentationWithDefaults instantiates a new ClientPolicyRepresentation object +This 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 *ClientPolicyRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClientPolicyRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ClientPolicyRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ClientPolicyRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEnabled + +`func (o *ClientPolicyRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ClientPolicyRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConditions + +`func (o *ClientPolicyRepresentation) GetConditions() []ClientPolicyConditionRepresentation` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ClientPolicyRepresentation) GetConditionsOk() (*[]ClientPolicyConditionRepresentation, 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 *ClientPolicyRepresentation) SetConditions(v []ClientPolicyConditionRepresentation)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ClientPolicyRepresentation) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetProfiles + +`func (o *ClientPolicyRepresentation) GetProfiles() []string` + +GetProfiles returns the Profiles field if non-nil, zero value otherwise. + +### GetProfilesOk + +`func (o *ClientPolicyRepresentation) GetProfilesOk() (*[]string, bool)` + +GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfiles + +`func (o *ClientPolicyRepresentation) SetProfiles(v []string)` + +SetProfiles sets Profiles field to given value. + +### HasProfiles + +`func (o *ClientPolicyRepresentation) HasProfiles() bool` + +HasProfiles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientProfileRepresentation.md b/docs/ClientProfileRepresentation.md new file mode 100644 index 0000000..b626cea --- /dev/null +++ b/docs/ClientProfileRepresentation.md @@ -0,0 +1,108 @@ +# ClientProfileRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Executors** | Pointer to [**[]ClientPolicyExecutorRepresentation**](ClientPolicyExecutorRepresentation.md) | | [optional] + +## Methods + +### NewClientProfileRepresentation + +`func NewClientProfileRepresentation() *ClientProfileRepresentation` + +NewClientProfileRepresentation instantiates a new ClientProfileRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientProfileRepresentationWithDefaults + +`func NewClientProfileRepresentationWithDefaults() *ClientProfileRepresentation` + +NewClientProfileRepresentationWithDefaults instantiates a new ClientProfileRepresentation object +This 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 *ClientProfileRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClientProfileRepresentation) 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 *ClientProfileRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClientProfileRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ClientProfileRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ClientProfileRepresentation) 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 *ClientProfileRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ClientProfileRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetExecutors + +`func (o *ClientProfileRepresentation) GetExecutors() []ClientPolicyExecutorRepresentation` + +GetExecutors returns the Executors field if non-nil, zero value otherwise. + +### GetExecutorsOk + +`func (o *ClientProfileRepresentation) GetExecutorsOk() (*[]ClientPolicyExecutorRepresentation, bool)` + +GetExecutorsOk returns a tuple with the Executors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutors + +`func (o *ClientProfileRepresentation) SetExecutors(v []ClientPolicyExecutorRepresentation)` + +SetExecutors sets Executors field to given value. + +### HasExecutors + +`func (o *ClientProfileRepresentation) HasExecutors() bool` + +HasExecutors returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientProfilesRepresentation.md b/docs/ClientProfilesRepresentation.md new file mode 100644 index 0000000..1d84874 --- /dev/null +++ b/docs/ClientProfilesRepresentation.md @@ -0,0 +1,82 @@ +# ClientProfilesRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Profiles** | Pointer to [**[]ClientProfileRepresentation**](ClientProfileRepresentation.md) | | [optional] +**GlobalProfiles** | Pointer to [**[]ClientProfileRepresentation**](ClientProfileRepresentation.md) | | [optional] + +## Methods + +### NewClientProfilesRepresentation + +`func NewClientProfilesRepresentation() *ClientProfilesRepresentation` + +NewClientProfilesRepresentation instantiates a new ClientProfilesRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientProfilesRepresentationWithDefaults + +`func NewClientProfilesRepresentationWithDefaults() *ClientProfilesRepresentation` + +NewClientProfilesRepresentationWithDefaults instantiates a new ClientProfilesRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProfiles + +`func (o *ClientProfilesRepresentation) GetProfiles() []ClientProfileRepresentation` + +GetProfiles returns the Profiles field if non-nil, zero value otherwise. + +### GetProfilesOk + +`func (o *ClientProfilesRepresentation) GetProfilesOk() (*[]ClientProfileRepresentation, bool)` + +GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfiles + +`func (o *ClientProfilesRepresentation) SetProfiles(v []ClientProfileRepresentation)` + +SetProfiles sets Profiles field to given value. + +### HasProfiles + +`func (o *ClientProfilesRepresentation) HasProfiles() bool` + +HasProfiles returns a boolean if a field has been set. + +### GetGlobalProfiles + +`func (o *ClientProfilesRepresentation) GetGlobalProfiles() []ClientProfileRepresentation` + +GetGlobalProfiles returns the GlobalProfiles field if non-nil, zero value otherwise. + +### GetGlobalProfilesOk + +`func (o *ClientProfilesRepresentation) GetGlobalProfilesOk() (*[]ClientProfileRepresentation, bool)` + +GetGlobalProfilesOk returns a tuple with the GlobalProfiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGlobalProfiles + +`func (o *ClientProfilesRepresentation) SetGlobalProfiles(v []ClientProfileRepresentation)` + +SetGlobalProfiles sets GlobalProfiles field to given value. + +### HasGlobalProfiles + +`func (o *ClientProfilesRepresentation) HasGlobalProfiles() bool` + +HasGlobalProfiles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientRegistrationPolicyAPI.md b/docs/ClientRegistrationPolicyAPI.md new file mode 100644 index 0000000..fd80fa8 --- /dev/null +++ b/docs/ClientRegistrationPolicyAPI.md @@ -0,0 +1,77 @@ +# \ClientRegistrationPolicyAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientRegistrationPolicyProvidersGet**](ClientRegistrationPolicyAPI.md#AdminRealmsRealmClientRegistrationPolicyProvidersGet) | **Get** /admin/realms/{realm}/client-registration-policy/providers | Base path for retrieve providers with the configProperties properly filled + + + +## AdminRealmsRealmClientRegistrationPolicyProvidersGet + +> []ComponentTypeRepresentation AdminRealmsRealmClientRegistrationPolicyProvidersGet(ctx, realm).Execute() + +Base path for retrieve providers with the configProperties properly filled + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientRegistrationPolicyAPI.AdminRealmsRealmClientRegistrationPolicyProvidersGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRegistrationPolicyAPI.AdminRealmsRealmClientRegistrationPolicyProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientRegistrationPolicyProvidersGet`: []ComponentTypeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientRegistrationPolicyAPI.AdminRealmsRealmClientRegistrationPolicyProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ComponentTypeRepresentation**](ComponentTypeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ClientRepresentation.md b/docs/ClientRepresentation.md new file mode 100644 index 0000000..445fd99 --- /dev/null +++ b/docs/ClientRepresentation.md @@ -0,0 +1,1174 @@ +# ClientRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**RootUrl** | Pointer to **string** | | [optional] +**AdminUrl** | Pointer to **string** | | [optional] +**BaseUrl** | Pointer to **string** | | [optional] +**SurrogateAuthRequired** | Pointer to **bool** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**AlwaysDisplayInConsole** | Pointer to **bool** | | [optional] +**ClientAuthenticatorType** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | | [optional] +**RegistrationAccessToken** | Pointer to **string** | | [optional] +**DefaultRoles** | Pointer to **[]string** | | [optional] +**RedirectUris** | Pointer to **[]string** | | [optional] +**WebOrigins** | Pointer to **[]string** | | [optional] +**NotBefore** | Pointer to **int32** | | [optional] +**BearerOnly** | Pointer to **bool** | | [optional] +**ConsentRequired** | Pointer to **bool** | | [optional] +**StandardFlowEnabled** | Pointer to **bool** | | [optional] +**ImplicitFlowEnabled** | Pointer to **bool** | | [optional] +**DirectAccessGrantsEnabled** | Pointer to **bool** | | [optional] +**ServiceAccountsEnabled** | Pointer to **bool** | | [optional] +**AuthorizationServicesEnabled** | Pointer to **bool** | | [optional] +**DirectGrantsOnly** | Pointer to **bool** | | [optional] +**PublicClient** | Pointer to **bool** | | [optional] +**FrontchannelLogout** | Pointer to **bool** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**Attributes** | Pointer to **map[string]string** | | [optional] +**AuthenticationFlowBindingOverrides** | Pointer to **map[string]string** | | [optional] +**FullScopeAllowed** | Pointer to **bool** | | [optional] +**NodeReRegistrationTimeout** | Pointer to **int32** | | [optional] +**RegisteredNodes** | Pointer to **map[string]int32** | | [optional] +**ProtocolMappers** | Pointer to [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | [optional] +**ClientTemplate** | Pointer to **string** | | [optional] +**UseTemplateConfig** | Pointer to **bool** | | [optional] +**UseTemplateScope** | Pointer to **bool** | | [optional] +**UseTemplateMappers** | Pointer to **bool** | | [optional] +**DefaultClientScopes** | Pointer to **[]string** | | [optional] +**OptionalClientScopes** | Pointer to **[]string** | | [optional] +**AuthorizationSettings** | Pointer to [**ResourceServerRepresentation**](ResourceServerRepresentation.md) | | [optional] +**Access** | Pointer to **map[string]bool** | | [optional] +**Origin** | Pointer to **string** | | [optional] + +## Methods + +### NewClientRepresentation + +`func NewClientRepresentation() *ClientRepresentation` + +NewClientRepresentation instantiates a new ClientRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientRepresentationWithDefaults + +`func NewClientRepresentationWithDefaults() *ClientRepresentation` + +NewClientRepresentationWithDefaults instantiates a new ClientRepresentation object +This 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 *ClientRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClientRepresentation) 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 *ClientRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ClientRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientId + +`func (o *ClientRepresentation) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ClientRepresentation) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ClientRepresentation) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ClientRepresentation) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetName + +`func (o *ClientRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClientRepresentation) 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 *ClientRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClientRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ClientRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ClientRepresentation) 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 *ClientRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ClientRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *ClientRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ClientRepresentation) 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 *ClientRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ClientRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetRootUrl + +`func (o *ClientRepresentation) GetRootUrl() string` + +GetRootUrl returns the RootUrl field if non-nil, zero value otherwise. + +### GetRootUrlOk + +`func (o *ClientRepresentation) GetRootUrlOk() (*string, bool)` + +GetRootUrlOk returns a tuple with the RootUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRootUrl + +`func (o *ClientRepresentation) SetRootUrl(v string)` + +SetRootUrl sets RootUrl field to given value. + +### HasRootUrl + +`func (o *ClientRepresentation) HasRootUrl() bool` + +HasRootUrl returns a boolean if a field has been set. + +### GetAdminUrl + +`func (o *ClientRepresentation) GetAdminUrl() string` + +GetAdminUrl returns the AdminUrl field if non-nil, zero value otherwise. + +### GetAdminUrlOk + +`func (o *ClientRepresentation) GetAdminUrlOk() (*string, bool)` + +GetAdminUrlOk returns a tuple with the AdminUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminUrl + +`func (o *ClientRepresentation) SetAdminUrl(v string)` + +SetAdminUrl sets AdminUrl field to given value. + +### HasAdminUrl + +`func (o *ClientRepresentation) HasAdminUrl() bool` + +HasAdminUrl returns a boolean if a field has been set. + +### GetBaseUrl + +`func (o *ClientRepresentation) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *ClientRepresentation) GetBaseUrlOk() (*string, bool)` + +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseUrl + +`func (o *ClientRepresentation) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *ClientRepresentation) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + +### GetSurrogateAuthRequired + +`func (o *ClientRepresentation) GetSurrogateAuthRequired() bool` + +GetSurrogateAuthRequired returns the SurrogateAuthRequired field if non-nil, zero value otherwise. + +### GetSurrogateAuthRequiredOk + +`func (o *ClientRepresentation) GetSurrogateAuthRequiredOk() (*bool, bool)` + +GetSurrogateAuthRequiredOk returns a tuple with the SurrogateAuthRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSurrogateAuthRequired + +`func (o *ClientRepresentation) SetSurrogateAuthRequired(v bool)` + +SetSurrogateAuthRequired sets SurrogateAuthRequired field to given value. + +### HasSurrogateAuthRequired + +`func (o *ClientRepresentation) HasSurrogateAuthRequired() bool` + +HasSurrogateAuthRequired returns a boolean if a field has been set. + +### GetEnabled + +`func (o *ClientRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ClientRepresentation) 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 *ClientRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ClientRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetAlwaysDisplayInConsole + +`func (o *ClientRepresentation) GetAlwaysDisplayInConsole() bool` + +GetAlwaysDisplayInConsole returns the AlwaysDisplayInConsole field if non-nil, zero value otherwise. + +### GetAlwaysDisplayInConsoleOk + +`func (o *ClientRepresentation) GetAlwaysDisplayInConsoleOk() (*bool, bool)` + +GetAlwaysDisplayInConsoleOk returns a tuple with the AlwaysDisplayInConsole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlwaysDisplayInConsole + +`func (o *ClientRepresentation) SetAlwaysDisplayInConsole(v bool)` + +SetAlwaysDisplayInConsole sets AlwaysDisplayInConsole field to given value. + +### HasAlwaysDisplayInConsole + +`func (o *ClientRepresentation) HasAlwaysDisplayInConsole() bool` + +HasAlwaysDisplayInConsole returns a boolean if a field has been set. + +### GetClientAuthenticatorType + +`func (o *ClientRepresentation) GetClientAuthenticatorType() string` + +GetClientAuthenticatorType returns the ClientAuthenticatorType field if non-nil, zero value otherwise. + +### GetClientAuthenticatorTypeOk + +`func (o *ClientRepresentation) GetClientAuthenticatorTypeOk() (*string, bool)` + +GetClientAuthenticatorTypeOk returns a tuple with the ClientAuthenticatorType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAuthenticatorType + +`func (o *ClientRepresentation) SetClientAuthenticatorType(v string)` + +SetClientAuthenticatorType sets ClientAuthenticatorType field to given value. + +### HasClientAuthenticatorType + +`func (o *ClientRepresentation) HasClientAuthenticatorType() bool` + +HasClientAuthenticatorType returns a boolean if a field has been set. + +### GetSecret + +`func (o *ClientRepresentation) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ClientRepresentation) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *ClientRepresentation) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ClientRepresentation) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetRegistrationAccessToken + +`func (o *ClientRepresentation) GetRegistrationAccessToken() string` + +GetRegistrationAccessToken returns the RegistrationAccessToken field if non-nil, zero value otherwise. + +### GetRegistrationAccessTokenOk + +`func (o *ClientRepresentation) GetRegistrationAccessTokenOk() (*string, bool)` + +GetRegistrationAccessTokenOk returns a tuple with the RegistrationAccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistrationAccessToken + +`func (o *ClientRepresentation) SetRegistrationAccessToken(v string)` + +SetRegistrationAccessToken sets RegistrationAccessToken field to given value. + +### HasRegistrationAccessToken + +`func (o *ClientRepresentation) HasRegistrationAccessToken() bool` + +HasRegistrationAccessToken returns a boolean if a field has been set. + +### GetDefaultRoles + +`func (o *ClientRepresentation) GetDefaultRoles() []string` + +GetDefaultRoles returns the DefaultRoles field if non-nil, zero value otherwise. + +### GetDefaultRolesOk + +`func (o *ClientRepresentation) GetDefaultRolesOk() (*[]string, bool)` + +GetDefaultRolesOk returns a tuple with the DefaultRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultRoles + +`func (o *ClientRepresentation) SetDefaultRoles(v []string)` + +SetDefaultRoles sets DefaultRoles field to given value. + +### HasDefaultRoles + +`func (o *ClientRepresentation) HasDefaultRoles() bool` + +HasDefaultRoles returns a boolean if a field has been set. + +### GetRedirectUris + +`func (o *ClientRepresentation) GetRedirectUris() []string` + +GetRedirectUris returns the RedirectUris field if non-nil, zero value otherwise. + +### GetRedirectUrisOk + +`func (o *ClientRepresentation) GetRedirectUrisOk() (*[]string, bool)` + +GetRedirectUrisOk returns a tuple with the RedirectUris field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirectUris + +`func (o *ClientRepresentation) SetRedirectUris(v []string)` + +SetRedirectUris sets RedirectUris field to given value. + +### HasRedirectUris + +`func (o *ClientRepresentation) HasRedirectUris() bool` + +HasRedirectUris returns a boolean if a field has been set. + +### GetWebOrigins + +`func (o *ClientRepresentation) GetWebOrigins() []string` + +GetWebOrigins returns the WebOrigins field if non-nil, zero value otherwise. + +### GetWebOriginsOk + +`func (o *ClientRepresentation) GetWebOriginsOk() (*[]string, bool)` + +GetWebOriginsOk returns a tuple with the WebOrigins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebOrigins + +`func (o *ClientRepresentation) SetWebOrigins(v []string)` + +SetWebOrigins sets WebOrigins field to given value. + +### HasWebOrigins + +`func (o *ClientRepresentation) HasWebOrigins() bool` + +HasWebOrigins returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *ClientRepresentation) GetNotBefore() int32` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *ClientRepresentation) GetNotBeforeOk() (*int32, 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 *ClientRepresentation) SetNotBefore(v int32)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *ClientRepresentation) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetBearerOnly + +`func (o *ClientRepresentation) GetBearerOnly() bool` + +GetBearerOnly returns the BearerOnly field if non-nil, zero value otherwise. + +### GetBearerOnlyOk + +`func (o *ClientRepresentation) GetBearerOnlyOk() (*bool, bool)` + +GetBearerOnlyOk returns a tuple with the BearerOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBearerOnly + +`func (o *ClientRepresentation) SetBearerOnly(v bool)` + +SetBearerOnly sets BearerOnly field to given value. + +### HasBearerOnly + +`func (o *ClientRepresentation) HasBearerOnly() bool` + +HasBearerOnly returns a boolean if a field has been set. + +### GetConsentRequired + +`func (o *ClientRepresentation) GetConsentRequired() bool` + +GetConsentRequired returns the ConsentRequired field if non-nil, zero value otherwise. + +### GetConsentRequiredOk + +`func (o *ClientRepresentation) GetConsentRequiredOk() (*bool, bool)` + +GetConsentRequiredOk returns a tuple with the ConsentRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsentRequired + +`func (o *ClientRepresentation) SetConsentRequired(v bool)` + +SetConsentRequired sets ConsentRequired field to given value. + +### HasConsentRequired + +`func (o *ClientRepresentation) HasConsentRequired() bool` + +HasConsentRequired returns a boolean if a field has been set. + +### GetStandardFlowEnabled + +`func (o *ClientRepresentation) GetStandardFlowEnabled() bool` + +GetStandardFlowEnabled returns the StandardFlowEnabled field if non-nil, zero value otherwise. + +### GetStandardFlowEnabledOk + +`func (o *ClientRepresentation) GetStandardFlowEnabledOk() (*bool, bool)` + +GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandardFlowEnabled + +`func (o *ClientRepresentation) SetStandardFlowEnabled(v bool)` + +SetStandardFlowEnabled sets StandardFlowEnabled field to given value. + +### HasStandardFlowEnabled + +`func (o *ClientRepresentation) HasStandardFlowEnabled() bool` + +HasStandardFlowEnabled returns a boolean if a field has been set. + +### GetImplicitFlowEnabled + +`func (o *ClientRepresentation) GetImplicitFlowEnabled() bool` + +GetImplicitFlowEnabled returns the ImplicitFlowEnabled field if non-nil, zero value otherwise. + +### GetImplicitFlowEnabledOk + +`func (o *ClientRepresentation) GetImplicitFlowEnabledOk() (*bool, bool)` + +GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImplicitFlowEnabled + +`func (o *ClientRepresentation) SetImplicitFlowEnabled(v bool)` + +SetImplicitFlowEnabled sets ImplicitFlowEnabled field to given value. + +### HasImplicitFlowEnabled + +`func (o *ClientRepresentation) HasImplicitFlowEnabled() bool` + +HasImplicitFlowEnabled returns a boolean if a field has been set. + +### GetDirectAccessGrantsEnabled + +`func (o *ClientRepresentation) GetDirectAccessGrantsEnabled() bool` + +GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field if non-nil, zero value otherwise. + +### GetDirectAccessGrantsEnabledOk + +`func (o *ClientRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool)` + +GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectAccessGrantsEnabled + +`func (o *ClientRepresentation) SetDirectAccessGrantsEnabled(v bool)` + +SetDirectAccessGrantsEnabled sets DirectAccessGrantsEnabled field to given value. + +### HasDirectAccessGrantsEnabled + +`func (o *ClientRepresentation) HasDirectAccessGrantsEnabled() bool` + +HasDirectAccessGrantsEnabled returns a boolean if a field has been set. + +### GetServiceAccountsEnabled + +`func (o *ClientRepresentation) GetServiceAccountsEnabled() bool` + +GetServiceAccountsEnabled returns the ServiceAccountsEnabled field if non-nil, zero value otherwise. + +### GetServiceAccountsEnabledOk + +`func (o *ClientRepresentation) GetServiceAccountsEnabledOk() (*bool, bool)` + +GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountsEnabled + +`func (o *ClientRepresentation) SetServiceAccountsEnabled(v bool)` + +SetServiceAccountsEnabled sets ServiceAccountsEnabled field to given value. + +### HasServiceAccountsEnabled + +`func (o *ClientRepresentation) HasServiceAccountsEnabled() bool` + +HasServiceAccountsEnabled returns a boolean if a field has been set. + +### GetAuthorizationServicesEnabled + +`func (o *ClientRepresentation) GetAuthorizationServicesEnabled() bool` + +GetAuthorizationServicesEnabled returns the AuthorizationServicesEnabled field if non-nil, zero value otherwise. + +### GetAuthorizationServicesEnabledOk + +`func (o *ClientRepresentation) GetAuthorizationServicesEnabledOk() (*bool, bool)` + +GetAuthorizationServicesEnabledOk returns a tuple with the AuthorizationServicesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationServicesEnabled + +`func (o *ClientRepresentation) SetAuthorizationServicesEnabled(v bool)` + +SetAuthorizationServicesEnabled sets AuthorizationServicesEnabled field to given value. + +### HasAuthorizationServicesEnabled + +`func (o *ClientRepresentation) HasAuthorizationServicesEnabled() bool` + +HasAuthorizationServicesEnabled returns a boolean if a field has been set. + +### GetDirectGrantsOnly + +`func (o *ClientRepresentation) GetDirectGrantsOnly() bool` + +GetDirectGrantsOnly returns the DirectGrantsOnly field if non-nil, zero value otherwise. + +### GetDirectGrantsOnlyOk + +`func (o *ClientRepresentation) GetDirectGrantsOnlyOk() (*bool, bool)` + +GetDirectGrantsOnlyOk returns a tuple with the DirectGrantsOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectGrantsOnly + +`func (o *ClientRepresentation) SetDirectGrantsOnly(v bool)` + +SetDirectGrantsOnly sets DirectGrantsOnly field to given value. + +### HasDirectGrantsOnly + +`func (o *ClientRepresentation) HasDirectGrantsOnly() bool` + +HasDirectGrantsOnly returns a boolean if a field has been set. + +### GetPublicClient + +`func (o *ClientRepresentation) GetPublicClient() bool` + +GetPublicClient returns the PublicClient field if non-nil, zero value otherwise. + +### GetPublicClientOk + +`func (o *ClientRepresentation) GetPublicClientOk() (*bool, bool)` + +GetPublicClientOk returns a tuple with the PublicClient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicClient + +`func (o *ClientRepresentation) SetPublicClient(v bool)` + +SetPublicClient sets PublicClient field to given value. + +### HasPublicClient + +`func (o *ClientRepresentation) HasPublicClient() bool` + +HasPublicClient returns a boolean if a field has been set. + +### GetFrontchannelLogout + +`func (o *ClientRepresentation) GetFrontchannelLogout() bool` + +GetFrontchannelLogout returns the FrontchannelLogout field if non-nil, zero value otherwise. + +### GetFrontchannelLogoutOk + +`func (o *ClientRepresentation) GetFrontchannelLogoutOk() (*bool, bool)` + +GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontchannelLogout + +`func (o *ClientRepresentation) SetFrontchannelLogout(v bool)` + +SetFrontchannelLogout sets FrontchannelLogout field to given value. + +### HasFrontchannelLogout + +`func (o *ClientRepresentation) HasFrontchannelLogout() bool` + +HasFrontchannelLogout returns a boolean if a field has been set. + +### GetProtocol + +`func (o *ClientRepresentation) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *ClientRepresentation) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *ClientRepresentation) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *ClientRepresentation) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetAttributes + +`func (o *ClientRepresentation) GetAttributes() map[string]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ClientRepresentation) GetAttributesOk() (*map[string]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ClientRepresentation) SetAttributes(v map[string]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *ClientRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetAuthenticationFlowBindingOverrides + +`func (o *ClientRepresentation) GetAuthenticationFlowBindingOverrides() map[string]string` + +GetAuthenticationFlowBindingOverrides returns the AuthenticationFlowBindingOverrides field if non-nil, zero value otherwise. + +### GetAuthenticationFlowBindingOverridesOk + +`func (o *ClientRepresentation) GetAuthenticationFlowBindingOverridesOk() (*map[string]string, bool)` + +GetAuthenticationFlowBindingOverridesOk returns a tuple with the AuthenticationFlowBindingOverrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationFlowBindingOverrides + +`func (o *ClientRepresentation) SetAuthenticationFlowBindingOverrides(v map[string]string)` + +SetAuthenticationFlowBindingOverrides sets AuthenticationFlowBindingOverrides field to given value. + +### HasAuthenticationFlowBindingOverrides + +`func (o *ClientRepresentation) HasAuthenticationFlowBindingOverrides() bool` + +HasAuthenticationFlowBindingOverrides returns a boolean if a field has been set. + +### GetFullScopeAllowed + +`func (o *ClientRepresentation) GetFullScopeAllowed() bool` + +GetFullScopeAllowed returns the FullScopeAllowed field if non-nil, zero value otherwise. + +### GetFullScopeAllowedOk + +`func (o *ClientRepresentation) GetFullScopeAllowedOk() (*bool, bool)` + +GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScopeAllowed + +`func (o *ClientRepresentation) SetFullScopeAllowed(v bool)` + +SetFullScopeAllowed sets FullScopeAllowed field to given value. + +### HasFullScopeAllowed + +`func (o *ClientRepresentation) HasFullScopeAllowed() bool` + +HasFullScopeAllowed returns a boolean if a field has been set. + +### GetNodeReRegistrationTimeout + +`func (o *ClientRepresentation) GetNodeReRegistrationTimeout() int32` + +GetNodeReRegistrationTimeout returns the NodeReRegistrationTimeout field if non-nil, zero value otherwise. + +### GetNodeReRegistrationTimeoutOk + +`func (o *ClientRepresentation) GetNodeReRegistrationTimeoutOk() (*int32, bool)` + +GetNodeReRegistrationTimeoutOk returns a tuple with the NodeReRegistrationTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeReRegistrationTimeout + +`func (o *ClientRepresentation) SetNodeReRegistrationTimeout(v int32)` + +SetNodeReRegistrationTimeout sets NodeReRegistrationTimeout field to given value. + +### HasNodeReRegistrationTimeout + +`func (o *ClientRepresentation) HasNodeReRegistrationTimeout() bool` + +HasNodeReRegistrationTimeout returns a boolean if a field has been set. + +### GetRegisteredNodes + +`func (o *ClientRepresentation) GetRegisteredNodes() map[string]int32` + +GetRegisteredNodes returns the RegisteredNodes field if non-nil, zero value otherwise. + +### GetRegisteredNodesOk + +`func (o *ClientRepresentation) GetRegisteredNodesOk() (*map[string]int32, bool)` + +GetRegisteredNodesOk returns a tuple with the RegisteredNodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredNodes + +`func (o *ClientRepresentation) SetRegisteredNodes(v map[string]int32)` + +SetRegisteredNodes sets RegisteredNodes field to given value. + +### HasRegisteredNodes + +`func (o *ClientRepresentation) HasRegisteredNodes() bool` + +HasRegisteredNodes returns a boolean if a field has been set. + +### GetProtocolMappers + +`func (o *ClientRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation` + +GetProtocolMappers returns the ProtocolMappers field if non-nil, zero value otherwise. + +### GetProtocolMappersOk + +`func (o *ClientRepresentation) GetProtocolMappersOk() (*[]ProtocolMapperRepresentation, bool)` + +GetProtocolMappersOk returns a tuple with the ProtocolMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMappers + +`func (o *ClientRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation)` + +SetProtocolMappers sets ProtocolMappers field to given value. + +### HasProtocolMappers + +`func (o *ClientRepresentation) HasProtocolMappers() bool` + +HasProtocolMappers returns a boolean if a field has been set. + +### GetClientTemplate + +`func (o *ClientRepresentation) GetClientTemplate() string` + +GetClientTemplate returns the ClientTemplate field if non-nil, zero value otherwise. + +### GetClientTemplateOk + +`func (o *ClientRepresentation) GetClientTemplateOk() (*string, bool)` + +GetClientTemplateOk returns a tuple with the ClientTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTemplate + +`func (o *ClientRepresentation) SetClientTemplate(v string)` + +SetClientTemplate sets ClientTemplate field to given value. + +### HasClientTemplate + +`func (o *ClientRepresentation) HasClientTemplate() bool` + +HasClientTemplate returns a boolean if a field has been set. + +### GetUseTemplateConfig + +`func (o *ClientRepresentation) GetUseTemplateConfig() bool` + +GetUseTemplateConfig returns the UseTemplateConfig field if non-nil, zero value otherwise. + +### GetUseTemplateConfigOk + +`func (o *ClientRepresentation) GetUseTemplateConfigOk() (*bool, bool)` + +GetUseTemplateConfigOk returns a tuple with the UseTemplateConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateConfig + +`func (o *ClientRepresentation) SetUseTemplateConfig(v bool)` + +SetUseTemplateConfig sets UseTemplateConfig field to given value. + +### HasUseTemplateConfig + +`func (o *ClientRepresentation) HasUseTemplateConfig() bool` + +HasUseTemplateConfig returns a boolean if a field has been set. + +### GetUseTemplateScope + +`func (o *ClientRepresentation) GetUseTemplateScope() bool` + +GetUseTemplateScope returns the UseTemplateScope field if non-nil, zero value otherwise. + +### GetUseTemplateScopeOk + +`func (o *ClientRepresentation) GetUseTemplateScopeOk() (*bool, bool)` + +GetUseTemplateScopeOk returns a tuple with the UseTemplateScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateScope + +`func (o *ClientRepresentation) SetUseTemplateScope(v bool)` + +SetUseTemplateScope sets UseTemplateScope field to given value. + +### HasUseTemplateScope + +`func (o *ClientRepresentation) HasUseTemplateScope() bool` + +HasUseTemplateScope returns a boolean if a field has been set. + +### GetUseTemplateMappers + +`func (o *ClientRepresentation) GetUseTemplateMappers() bool` + +GetUseTemplateMappers returns the UseTemplateMappers field if non-nil, zero value otherwise. + +### GetUseTemplateMappersOk + +`func (o *ClientRepresentation) GetUseTemplateMappersOk() (*bool, bool)` + +GetUseTemplateMappersOk returns a tuple with the UseTemplateMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateMappers + +`func (o *ClientRepresentation) SetUseTemplateMappers(v bool)` + +SetUseTemplateMappers sets UseTemplateMappers field to given value. + +### HasUseTemplateMappers + +`func (o *ClientRepresentation) HasUseTemplateMappers() bool` + +HasUseTemplateMappers returns a boolean if a field has been set. + +### GetDefaultClientScopes + +`func (o *ClientRepresentation) GetDefaultClientScopes() []string` + +GetDefaultClientScopes returns the DefaultClientScopes field if non-nil, zero value otherwise. + +### GetDefaultClientScopesOk + +`func (o *ClientRepresentation) GetDefaultClientScopesOk() (*[]string, bool)` + +GetDefaultClientScopesOk returns a tuple with the DefaultClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultClientScopes + +`func (o *ClientRepresentation) SetDefaultClientScopes(v []string)` + +SetDefaultClientScopes sets DefaultClientScopes field to given value. + +### HasDefaultClientScopes + +`func (o *ClientRepresentation) HasDefaultClientScopes() bool` + +HasDefaultClientScopes returns a boolean if a field has been set. + +### GetOptionalClientScopes + +`func (o *ClientRepresentation) GetOptionalClientScopes() []string` + +GetOptionalClientScopes returns the OptionalClientScopes field if non-nil, zero value otherwise. + +### GetOptionalClientScopesOk + +`func (o *ClientRepresentation) GetOptionalClientScopesOk() (*[]string, bool)` + +GetOptionalClientScopesOk returns a tuple with the OptionalClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptionalClientScopes + +`func (o *ClientRepresentation) SetOptionalClientScopes(v []string)` + +SetOptionalClientScopes sets OptionalClientScopes field to given value. + +### HasOptionalClientScopes + +`func (o *ClientRepresentation) HasOptionalClientScopes() bool` + +HasOptionalClientScopes returns a boolean if a field has been set. + +### GetAuthorizationSettings + +`func (o *ClientRepresentation) GetAuthorizationSettings() ResourceServerRepresentation` + +GetAuthorizationSettings returns the AuthorizationSettings field if non-nil, zero value otherwise. + +### GetAuthorizationSettingsOk + +`func (o *ClientRepresentation) GetAuthorizationSettingsOk() (*ResourceServerRepresentation, bool)` + +GetAuthorizationSettingsOk returns a tuple with the AuthorizationSettings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationSettings + +`func (o *ClientRepresentation) SetAuthorizationSettings(v ResourceServerRepresentation)` + +SetAuthorizationSettings sets AuthorizationSettings field to given value. + +### HasAuthorizationSettings + +`func (o *ClientRepresentation) HasAuthorizationSettings() bool` + +HasAuthorizationSettings returns a boolean if a field has been set. + +### GetAccess + +`func (o *ClientRepresentation) GetAccess() map[string]bool` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *ClientRepresentation) GetAccessOk() (*map[string]bool, 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 *ClientRepresentation) SetAccess(v map[string]bool)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *ClientRepresentation) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### GetOrigin + +`func (o *ClientRepresentation) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *ClientRepresentation) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *ClientRepresentation) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *ClientRepresentation) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientRoleMappingsAPI.md b/docs/ClientRoleMappingsAPI.md new file mode 100644 index 0000000..13ae2f3 --- /dev/null +++ b/docs/ClientRoleMappingsAPI.md @@ -0,0 +1,762 @@ +# \ClientRoleMappingsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet**](ClientRoleMappingsAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/available | Get available client-level roles that can be mapped to the user or group +[**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet**](ClientRoleMappingsAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/composite | Get effective client-level role mappings This recurses any composite roles +[**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete**](ClientRoleMappingsAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete) | **Delete** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id} | Delete client-level roles from user or group role mapping +[**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet**](ClientRoleMappingsAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id} | Get client-level role mappings for the user or group, and the app +[**AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost**](ClientRoleMappingsAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost) | **Post** /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id} | Add client-level roles to the user or group role mapping +[**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet**](ClientRoleMappingsAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/available | Get available client-level roles that can be mapped to the user or group +[**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet**](ClientRoleMappingsAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/composite | Get effective client-level role mappings This recurses any composite roles +[**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete**](ClientRoleMappingsAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete) | **Delete** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id} | Delete client-level roles from user or group role mapping +[**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet**](ClientRoleMappingsAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id} | Get client-level role mappings for the user or group, and the app +[**AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost**](ClientRoleMappingsAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost) | **Post** /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id} | Add client-level roles to the user or group role mapping + + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet + +> []RoleRepresentation AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet(ctx, realm, groupId, clientId).Execute() + +Get available client-level roles that can be mapped to the user or group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet(context.Background(), realm, groupId, clientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet + +> []RoleRepresentation AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet(ctx, realm, groupId, clientId).BriefRepresentation(briefRepresentation).Execute() + +Get effective client-level role mappings This recurses any composite roles + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet(context.Background(), realm, groupId, clientId).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete + +> AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete(ctx, realm, groupId, clientId).RoleRepresentation(roleRepresentation).Execute() + +Delete client-level roles from user or group role mapping + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete(context.Background(), realm, groupId, clientId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet + +> []RoleRepresentation AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet(ctx, realm, groupId, clientId).Execute() + +Get client-level role mappings for the user or group, and the app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet(context.Background(), realm, groupId, clientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost + +> AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost(ctx, realm, groupId, clientId).RoleRepresentation(roleRepresentation).Execute() + +Add client-level roles to the user or group role mapping + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost(context.Background(), realm, groupId, clientId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet + +> []RoleRepresentation AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet(ctx, realm, userId, clientId).Execute() + +Get available client-level roles that can be mapped to the user or group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet(context.Background(), realm, userId, clientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet + +> []RoleRepresentation AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet(ctx, realm, userId, clientId).BriefRepresentation(briefRepresentation).Execute() + +Get effective client-level role mappings This recurses any composite roles + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet(context.Background(), realm, userId, clientId).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete + +> AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete(ctx, realm, userId, clientId).RoleRepresentation(roleRepresentation).Execute() + +Delete client-level roles from user or group role mapping + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete(context.Background(), realm, userId, clientId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet + +> []RoleRepresentation AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet(ctx, realm, userId, clientId).Execute() + +Get client-level role mappings for the user or group, and the app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet(context.Background(), realm, userId, clientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost + +> AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost(ctx, realm, userId, clientId).RoleRepresentation(roleRepresentation).Execute() + +Add client-level roles to the user or group role mapping + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | client id (not clientId!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost(context.Background(), realm, userId, clientId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**clientId** | **string** | client id (not clientId!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/ClientScopeRepresentation.md b/docs/ClientScopeRepresentation.md new file mode 100644 index 0000000..b5a633c --- /dev/null +++ b/docs/ClientScopeRepresentation.md @@ -0,0 +1,186 @@ +# ClientScopeRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**Attributes** | Pointer to **map[string]string** | | [optional] +**ProtocolMappers** | Pointer to [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | [optional] + +## Methods + +### NewClientScopeRepresentation + +`func NewClientScopeRepresentation() *ClientScopeRepresentation` + +NewClientScopeRepresentation instantiates a new ClientScopeRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientScopeRepresentationWithDefaults + +`func NewClientScopeRepresentationWithDefaults() *ClientScopeRepresentation` + +NewClientScopeRepresentationWithDefaults instantiates a new ClientScopeRepresentation object +This 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 *ClientScopeRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClientScopeRepresentation) 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 *ClientScopeRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ClientScopeRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ClientScopeRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClientScopeRepresentation) 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 *ClientScopeRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClientScopeRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ClientScopeRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ClientScopeRepresentation) 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 *ClientScopeRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ClientScopeRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetProtocol + +`func (o *ClientScopeRepresentation) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *ClientScopeRepresentation) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *ClientScopeRepresentation) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *ClientScopeRepresentation) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetAttributes + +`func (o *ClientScopeRepresentation) GetAttributes() map[string]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ClientScopeRepresentation) GetAttributesOk() (*map[string]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ClientScopeRepresentation) SetAttributes(v map[string]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *ClientScopeRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetProtocolMappers + +`func (o *ClientScopeRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation` + +GetProtocolMappers returns the ProtocolMappers field if non-nil, zero value otherwise. + +### GetProtocolMappersOk + +`func (o *ClientScopeRepresentation) GetProtocolMappersOk() (*[]ProtocolMapperRepresentation, bool)` + +GetProtocolMappersOk returns a tuple with the ProtocolMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMappers + +`func (o *ClientScopeRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation)` + +SetProtocolMappers sets ProtocolMappers field to given value. + +### HasProtocolMappers + +`func (o *ClientScopeRepresentation) HasProtocolMappers() bool` + +HasProtocolMappers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientScopesAPI.md b/docs/ClientScopesAPI.md new file mode 100644 index 0000000..a00aa14 --- /dev/null +++ b/docs/ClientScopesAPI.md @@ -0,0 +1,712 @@ +# \ClientScopesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientScopesClientScopeIdDelete**](ClientScopesAPI.md#AdminRealmsRealmClientScopesClientScopeIdDelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id} | Delete the client scope +[**AdminRealmsRealmClientScopesClientScopeIdGet**](ClientScopesAPI.md#AdminRealmsRealmClientScopesClientScopeIdGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id} | Get representation of the client scope +[**AdminRealmsRealmClientScopesClientScopeIdPut**](ClientScopesAPI.md#AdminRealmsRealmClientScopesClientScopeIdPut) | **Put** /admin/realms/{realm}/client-scopes/{client-scope-id} | Update the client scope +[**AdminRealmsRealmClientScopesGet**](ClientScopesAPI.md#AdminRealmsRealmClientScopesGet) | **Get** /admin/realms/{realm}/client-scopes | Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm +[**AdminRealmsRealmClientScopesPost**](ClientScopesAPI.md#AdminRealmsRealmClientScopesPost) | **Post** /admin/realms/{realm}/client-scopes | Create a new client scope Client Scope’s name must be unique! +[**AdminRealmsRealmClientTemplatesClientScopeIdDelete**](ClientScopesAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdDelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id} | Delete the client scope +[**AdminRealmsRealmClientTemplatesClientScopeIdGet**](ClientScopesAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id} | Get representation of the client scope +[**AdminRealmsRealmClientTemplatesClientScopeIdPut**](ClientScopesAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdPut) | **Put** /admin/realms/{realm}/client-templates/{client-scope-id} | Update the client scope +[**AdminRealmsRealmClientTemplatesGet**](ClientScopesAPI.md#AdminRealmsRealmClientTemplatesGet) | **Get** /admin/realms/{realm}/client-templates | Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm +[**AdminRealmsRealmClientTemplatesPost**](ClientScopesAPI.md#AdminRealmsRealmClientTemplatesPost) | **Post** /admin/realms/{realm}/client-templates | Create a new client scope Client Scope’s name must be unique! + + + +## AdminRealmsRealmClientScopesClientScopeIdDelete + +> AdminRealmsRealmClientScopesClientScopeIdDelete(ctx, realm, clientScopeId).Execute() + +Delete the client scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdGet + +> ClientScopeRepresentation AdminRealmsRealmClientScopesClientScopeIdGet(ctx, realm, clientScopeId).Execute() + +Get representation of the client scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdGet`: ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdPut + +> AdminRealmsRealmClientScopesClientScopeIdPut(ctx, realm, clientScopeId).ClientScopeRepresentation(clientScopeRepresentation).Execute() + +Update the client scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + clientScopeRepresentation := *openapiclient.NewClientScopeRepresentation() // ClientScopeRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdPut(context.Background(), realm, clientScopeId).ClientScopeRepresentation(clientScopeRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **clientScopeRepresentation** | [**ClientScopeRepresentation**](ClientScopeRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesGet + +> []ClientScopeRepresentation AdminRealmsRealmClientScopesGet(ctx, realm).Execute() + +Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientScopesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesGet`: []ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientScopesAPI.AdminRealmsRealmClientScopesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesPost + +> AdminRealmsRealmClientScopesPost(ctx, realm).ClientScopeRepresentation(clientScopeRepresentation).Execute() + +Create a new client scope Client Scope’s name must be unique! + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeRepresentation := *openapiclient.NewClientScopeRepresentation() // ClientScopeRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesPost(context.Background(), realm).ClientScopeRepresentation(clientScopeRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientScopesPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientScopeRepresentation** | [**ClientScopeRepresentation**](ClientScopeRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdDelete + +> AdminRealmsRealmClientTemplatesClientScopeIdDelete(ctx, realm, clientScopeId).Execute() + +Delete the client scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdGet + +> ClientScopeRepresentation AdminRealmsRealmClientTemplatesClientScopeIdGet(ctx, realm, clientScopeId).Execute() + +Get representation of the client scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdGet`: ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdPut + +> AdminRealmsRealmClientTemplatesClientScopeIdPut(ctx, realm, clientScopeId).ClientScopeRepresentation(clientScopeRepresentation).Execute() + +Update the client scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + clientScopeRepresentation := *openapiclient.NewClientScopeRepresentation() // ClientScopeRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdPut(context.Background(), realm, clientScopeId).ClientScopeRepresentation(clientScopeRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **clientScopeRepresentation** | [**ClientScopeRepresentation**](ClientScopeRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesGet + +> []ClientScopeRepresentation AdminRealmsRealmClientTemplatesGet(ctx, realm).Execute() + +Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientTemplatesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesGet`: []ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientScopesAPI.AdminRealmsRealmClientTemplatesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesPost + +> AdminRealmsRealmClientTemplatesPost(ctx, realm).ClientScopeRepresentation(clientScopeRepresentation).Execute() + +Create a new client scope Client Scope’s name must be unique! + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeRepresentation := *openapiclient.NewClientScopeRepresentation() // ClientScopeRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesPost(context.Background(), realm).ClientScopeRepresentation(clientScopeRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientScopesAPI.AdminRealmsRealmClientTemplatesPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientScopeRepresentation** | [**ClientScopeRepresentation**](ClientScopeRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/ClientTemplateRepresentation.md b/docs/ClientTemplateRepresentation.md new file mode 100644 index 0000000..66296a0 --- /dev/null +++ b/docs/ClientTemplateRepresentation.md @@ -0,0 +1,420 @@ +# ClientTemplateRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**FullScopeAllowed** | Pointer to **bool** | | [optional] +**BearerOnly** | Pointer to **bool** | | [optional] +**ConsentRequired** | Pointer to **bool** | | [optional] +**StandardFlowEnabled** | Pointer to **bool** | | [optional] +**ImplicitFlowEnabled** | Pointer to **bool** | | [optional] +**DirectAccessGrantsEnabled** | Pointer to **bool** | | [optional] +**ServiceAccountsEnabled** | Pointer to **bool** | | [optional] +**PublicClient** | Pointer to **bool** | | [optional] +**FrontchannelLogout** | Pointer to **bool** | | [optional] +**Attributes** | Pointer to **map[string]string** | | [optional] +**ProtocolMappers** | Pointer to [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | [optional] + +## Methods + +### NewClientTemplateRepresentation + +`func NewClientTemplateRepresentation() *ClientTemplateRepresentation` + +NewClientTemplateRepresentation instantiates a new ClientTemplateRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientTemplateRepresentationWithDefaults + +`func NewClientTemplateRepresentationWithDefaults() *ClientTemplateRepresentation` + +NewClientTemplateRepresentationWithDefaults instantiates a new ClientTemplateRepresentation object +This 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 *ClientTemplateRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ClientTemplateRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ClientTemplateRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClientTemplateRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ClientTemplateRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ClientTemplateRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetProtocol + +`func (o *ClientTemplateRepresentation) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *ClientTemplateRepresentation) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *ClientTemplateRepresentation) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *ClientTemplateRepresentation) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetFullScopeAllowed + +`func (o *ClientTemplateRepresentation) GetFullScopeAllowed() bool` + +GetFullScopeAllowed returns the FullScopeAllowed field if non-nil, zero value otherwise. + +### GetFullScopeAllowedOk + +`func (o *ClientTemplateRepresentation) GetFullScopeAllowedOk() (*bool, bool)` + +GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScopeAllowed + +`func (o *ClientTemplateRepresentation) SetFullScopeAllowed(v bool)` + +SetFullScopeAllowed sets FullScopeAllowed field to given value. + +### HasFullScopeAllowed + +`func (o *ClientTemplateRepresentation) HasFullScopeAllowed() bool` + +HasFullScopeAllowed returns a boolean if a field has been set. + +### GetBearerOnly + +`func (o *ClientTemplateRepresentation) GetBearerOnly() bool` + +GetBearerOnly returns the BearerOnly field if non-nil, zero value otherwise. + +### GetBearerOnlyOk + +`func (o *ClientTemplateRepresentation) GetBearerOnlyOk() (*bool, bool)` + +GetBearerOnlyOk returns a tuple with the BearerOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBearerOnly + +`func (o *ClientTemplateRepresentation) SetBearerOnly(v bool)` + +SetBearerOnly sets BearerOnly field to given value. + +### HasBearerOnly + +`func (o *ClientTemplateRepresentation) HasBearerOnly() bool` + +HasBearerOnly returns a boolean if a field has been set. + +### GetConsentRequired + +`func (o *ClientTemplateRepresentation) GetConsentRequired() bool` + +GetConsentRequired returns the ConsentRequired field if non-nil, zero value otherwise. + +### GetConsentRequiredOk + +`func (o *ClientTemplateRepresentation) GetConsentRequiredOk() (*bool, bool)` + +GetConsentRequiredOk returns a tuple with the ConsentRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsentRequired + +`func (o *ClientTemplateRepresentation) SetConsentRequired(v bool)` + +SetConsentRequired sets ConsentRequired field to given value. + +### HasConsentRequired + +`func (o *ClientTemplateRepresentation) HasConsentRequired() bool` + +HasConsentRequired returns a boolean if a field has been set. + +### GetStandardFlowEnabled + +`func (o *ClientTemplateRepresentation) GetStandardFlowEnabled() bool` + +GetStandardFlowEnabled returns the StandardFlowEnabled field if non-nil, zero value otherwise. + +### GetStandardFlowEnabledOk + +`func (o *ClientTemplateRepresentation) GetStandardFlowEnabledOk() (*bool, bool)` + +GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandardFlowEnabled + +`func (o *ClientTemplateRepresentation) SetStandardFlowEnabled(v bool)` + +SetStandardFlowEnabled sets StandardFlowEnabled field to given value. + +### HasStandardFlowEnabled + +`func (o *ClientTemplateRepresentation) HasStandardFlowEnabled() bool` + +HasStandardFlowEnabled returns a boolean if a field has been set. + +### GetImplicitFlowEnabled + +`func (o *ClientTemplateRepresentation) GetImplicitFlowEnabled() bool` + +GetImplicitFlowEnabled returns the ImplicitFlowEnabled field if non-nil, zero value otherwise. + +### GetImplicitFlowEnabledOk + +`func (o *ClientTemplateRepresentation) GetImplicitFlowEnabledOk() (*bool, bool)` + +GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImplicitFlowEnabled + +`func (o *ClientTemplateRepresentation) SetImplicitFlowEnabled(v bool)` + +SetImplicitFlowEnabled sets ImplicitFlowEnabled field to given value. + +### HasImplicitFlowEnabled + +`func (o *ClientTemplateRepresentation) HasImplicitFlowEnabled() bool` + +HasImplicitFlowEnabled returns a boolean if a field has been set. + +### GetDirectAccessGrantsEnabled + +`func (o *ClientTemplateRepresentation) GetDirectAccessGrantsEnabled() bool` + +GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field if non-nil, zero value otherwise. + +### GetDirectAccessGrantsEnabledOk + +`func (o *ClientTemplateRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool)` + +GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectAccessGrantsEnabled + +`func (o *ClientTemplateRepresentation) SetDirectAccessGrantsEnabled(v bool)` + +SetDirectAccessGrantsEnabled sets DirectAccessGrantsEnabled field to given value. + +### HasDirectAccessGrantsEnabled + +`func (o *ClientTemplateRepresentation) HasDirectAccessGrantsEnabled() bool` + +HasDirectAccessGrantsEnabled returns a boolean if a field has been set. + +### GetServiceAccountsEnabled + +`func (o *ClientTemplateRepresentation) GetServiceAccountsEnabled() bool` + +GetServiceAccountsEnabled returns the ServiceAccountsEnabled field if non-nil, zero value otherwise. + +### GetServiceAccountsEnabledOk + +`func (o *ClientTemplateRepresentation) GetServiceAccountsEnabledOk() (*bool, bool)` + +GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountsEnabled + +`func (o *ClientTemplateRepresentation) SetServiceAccountsEnabled(v bool)` + +SetServiceAccountsEnabled sets ServiceAccountsEnabled field to given value. + +### HasServiceAccountsEnabled + +`func (o *ClientTemplateRepresentation) HasServiceAccountsEnabled() bool` + +HasServiceAccountsEnabled returns a boolean if a field has been set. + +### GetPublicClient + +`func (o *ClientTemplateRepresentation) GetPublicClient() bool` + +GetPublicClient returns the PublicClient field if non-nil, zero value otherwise. + +### GetPublicClientOk + +`func (o *ClientTemplateRepresentation) GetPublicClientOk() (*bool, bool)` + +GetPublicClientOk returns a tuple with the PublicClient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicClient + +`func (o *ClientTemplateRepresentation) SetPublicClient(v bool)` + +SetPublicClient sets PublicClient field to given value. + +### HasPublicClient + +`func (o *ClientTemplateRepresentation) HasPublicClient() bool` + +HasPublicClient returns a boolean if a field has been set. + +### GetFrontchannelLogout + +`func (o *ClientTemplateRepresentation) GetFrontchannelLogout() bool` + +GetFrontchannelLogout returns the FrontchannelLogout field if non-nil, zero value otherwise. + +### GetFrontchannelLogoutOk + +`func (o *ClientTemplateRepresentation) GetFrontchannelLogoutOk() (*bool, bool)` + +GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontchannelLogout + +`func (o *ClientTemplateRepresentation) SetFrontchannelLogout(v bool)` + +SetFrontchannelLogout sets FrontchannelLogout field to given value. + +### HasFrontchannelLogout + +`func (o *ClientTemplateRepresentation) HasFrontchannelLogout() bool` + +HasFrontchannelLogout returns a boolean if a field has been set. + +### GetAttributes + +`func (o *ClientTemplateRepresentation) GetAttributes() map[string]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ClientTemplateRepresentation) GetAttributesOk() (*map[string]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ClientTemplateRepresentation) SetAttributes(v map[string]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *ClientTemplateRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetProtocolMappers + +`func (o *ClientTemplateRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation` + +GetProtocolMappers returns the ProtocolMappers field if non-nil, zero value otherwise. + +### GetProtocolMappersOk + +`func (o *ClientTemplateRepresentation) GetProtocolMappersOk() (*[]ProtocolMapperRepresentation, bool)` + +GetProtocolMappersOk returns a tuple with the ProtocolMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMappers + +`func (o *ClientTemplateRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation)` + +SetProtocolMappers sets ProtocolMappers field to given value. + +### HasProtocolMappers + +`func (o *ClientTemplateRepresentation) HasProtocolMappers() bool` + +HasProtocolMappers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientTypeRepresentation.md b/docs/ClientTypeRepresentation.md new file mode 100644 index 0000000..fd5cda6 --- /dev/null +++ b/docs/ClientTypeRepresentation.md @@ -0,0 +1,134 @@ +# ClientTypeRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Provider** | Pointer to **string** | | [optional] +**Parent** | Pointer to **string** | | [optional] +**Config** | Pointer to [**map[string]PropertyConfig**](PropertyConfig.md) | | [optional] + +## Methods + +### NewClientTypeRepresentation + +`func NewClientTypeRepresentation() *ClientTypeRepresentation` + +NewClientTypeRepresentation instantiates a new ClientTypeRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientTypeRepresentationWithDefaults + +`func NewClientTypeRepresentationWithDefaults() *ClientTypeRepresentation` + +NewClientTypeRepresentationWithDefaults instantiates a new ClientTypeRepresentation object +This 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 *ClientTypeRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClientTypeRepresentation) 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 *ClientTypeRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClientTypeRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProvider + +`func (o *ClientTypeRepresentation) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ClientTypeRepresentation) GetProviderOk() (*string, 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 *ClientTypeRepresentation) SetProvider(v string)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *ClientTypeRepresentation) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### GetParent + +`func (o *ClientTypeRepresentation) GetParent() string` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *ClientTypeRepresentation) GetParentOk() (*string, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *ClientTypeRepresentation) SetParent(v string)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *ClientTypeRepresentation) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### GetConfig + +`func (o *ClientTypeRepresentation) GetConfig() map[string]PropertyConfig` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ClientTypeRepresentation) GetConfigOk() (*map[string]PropertyConfig, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ClientTypeRepresentation) SetConfig(v map[string]PropertyConfig)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *ClientTypeRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientTypesRepresentation.md b/docs/ClientTypesRepresentation.md new file mode 100644 index 0000000..7605123 --- /dev/null +++ b/docs/ClientTypesRepresentation.md @@ -0,0 +1,82 @@ +# ClientTypesRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientTypes** | Pointer to [**[]ClientTypeRepresentation**](ClientTypeRepresentation.md) | | [optional] +**GlobalClientTypes** | Pointer to [**[]ClientTypeRepresentation**](ClientTypeRepresentation.md) | | [optional] + +## Methods + +### NewClientTypesRepresentation + +`func NewClientTypesRepresentation() *ClientTypesRepresentation` + +NewClientTypesRepresentation instantiates a new ClientTypesRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientTypesRepresentationWithDefaults + +`func NewClientTypesRepresentationWithDefaults() *ClientTypesRepresentation` + +NewClientTypesRepresentationWithDefaults instantiates a new ClientTypesRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientTypes + +`func (o *ClientTypesRepresentation) GetClientTypes() []ClientTypeRepresentation` + +GetClientTypes returns the ClientTypes field if non-nil, zero value otherwise. + +### GetClientTypesOk + +`func (o *ClientTypesRepresentation) GetClientTypesOk() (*[]ClientTypeRepresentation, bool)` + +GetClientTypesOk returns a tuple with the ClientTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTypes + +`func (o *ClientTypesRepresentation) SetClientTypes(v []ClientTypeRepresentation)` + +SetClientTypes sets ClientTypes field to given value. + +### HasClientTypes + +`func (o *ClientTypesRepresentation) HasClientTypes() bool` + +HasClientTypes returns a boolean if a field has been set. + +### GetGlobalClientTypes + +`func (o *ClientTypesRepresentation) GetGlobalClientTypes() []ClientTypeRepresentation` + +GetGlobalClientTypes returns the GlobalClientTypes field if non-nil, zero value otherwise. + +### GetGlobalClientTypesOk + +`func (o *ClientTypesRepresentation) GetGlobalClientTypesOk() (*[]ClientTypeRepresentation, bool)` + +GetGlobalClientTypesOk returns a tuple with the GlobalClientTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGlobalClientTypes + +`func (o *ClientTypesRepresentation) SetGlobalClientTypes(v []ClientTypeRepresentation)` + +SetGlobalClientTypes sets GlobalClientTypes field to given value. + +### HasGlobalClientTypes + +`func (o *ClientTypesRepresentation) HasGlobalClientTypes() bool` + +HasGlobalClientTypes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClientsAPI.md b/docs/ClientsAPI.md new file mode 100644 index 0000000..02913f6 --- /dev/null +++ b/docs/ClientsAPI.md @@ -0,0 +1,2506 @@ +# \ClientsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientsClientUuidClientSecretGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidClientSecretGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/client-secret | Get the client secret +[**AdminRealmsRealmClientsClientUuidClientSecretPost**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidClientSecretPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/client-secret | Generate a new secret for the client +[**AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated | Invalidate the rotated secret for the client +[**AdminRealmsRealmClientsClientUuidClientSecretRotatedGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidClientSecretRotatedGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated | Get the rotated client secret +[**AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId} | +[**AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId} | +[**AdminRealmsRealmClientsClientUuidDefaultClientScopesGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidDefaultClientScopesGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes | Get default client scopes. Only name and ids are returned. +[**AdminRealmsRealmClientsClientUuidDelete**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid} | Delete the client +[**AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-access-token | Create JSON with payload of example access token +[**AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-id-token | Create JSON with payload of example id token +[**AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-userinfo | Create JSON with payload of example user info +[**AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/protocol-mappers | Return list of all protocol mappers, which will be used when generating tokens issued for particular client. +[**AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted | Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. +[**AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted | Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him. +[**AdminRealmsRealmClientsClientUuidGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidGet) | **Get** /admin/realms/{realm}/clients/{client-uuid} | Get representation of the client +[**AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/installation/providers/{providerId} | +[**AdminRealmsRealmClientsClientUuidManagementPermissionsGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidManagementPermissionsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmClientsClientUuidManagementPermissionsPut**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidManagementPermissionsPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmClientsClientUuidNodesNodeDelete**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidNodesNodeDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/nodes/{node} | Unregister a cluster node from the client +[**AdminRealmsRealmClientsClientUuidNodesPost**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidNodesPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/nodes | Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak +[**AdminRealmsRealmClientsClientUuidOfflineSessionCountGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidOfflineSessionCountGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/offline-session-count | Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } +[**AdminRealmsRealmClientsClientUuidOfflineSessionsGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidOfflineSessionsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/offline-sessions | Get offline sessions for client Returns a list of offline user sessions associated with this client +[**AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId} | +[**AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId} | +[**AdminRealmsRealmClientsClientUuidOptionalClientScopesGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidOptionalClientScopesGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes | Get optional client scopes. Only name and ids are returned. +[**AdminRealmsRealmClientsClientUuidPushRevocationPost**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidPushRevocationPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/push-revocation | Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. +[**AdminRealmsRealmClientsClientUuidPut**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidPut) | **Put** /admin/realms/{realm}/clients/{client-uuid} | Update the client +[**AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/registration-access-token | Generate a new registration access token for the client +[**AdminRealmsRealmClientsClientUuidServiceAccountUserGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidServiceAccountUserGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/service-account-user | Get a user dedicated to the service account +[**AdminRealmsRealmClientsClientUuidSessionCountGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidSessionCountGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/session-count | Get application session count Returns a number of user sessions associated with this client { \"count\": number } +[**AdminRealmsRealmClientsClientUuidTestNodesAvailableGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidTestNodesAvailableGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/test-nodes-available | Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. +[**AdminRealmsRealmClientsClientUuidUserSessionsGet**](ClientsAPI.md#AdminRealmsRealmClientsClientUuidUserSessionsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/user-sessions | Get user sessions for client Returns a list of user sessions associated with this client +[**AdminRealmsRealmClientsGet**](ClientsAPI.md#AdminRealmsRealmClientsGet) | **Get** /admin/realms/{realm}/clients | Get clients belonging to the realm. +[**AdminRealmsRealmClientsPost**](ClientsAPI.md#AdminRealmsRealmClientsPost) | **Post** /admin/realms/{realm}/clients | Create a new client Client’s client_id must be unique! + + + +## AdminRealmsRealmClientsClientUuidClientSecretGet + +> CredentialRepresentation AdminRealmsRealmClientsClientUuidClientSecretGet(ctx, realm, clientUuid).Execute() + +Get the client secret + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidClientSecretGet`: CredentialRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**CredentialRepresentation**](CredentialRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidClientSecretPost + +> CredentialRepresentation AdminRealmsRealmClientsClientUuidClientSecretPost(ctx, realm, clientUuid).Execute() + +Generate a new secret for the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretPost(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidClientSecretPost`: CredentialRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**CredentialRepresentation**](CredentialRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete + +> AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete(ctx, realm, clientUuid).Execute() + +Invalidate the rotated secret for the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidClientSecretRotatedGet + +> CredentialRepresentation AdminRealmsRealmClientsClientUuidClientSecretRotatedGet(ctx, realm, clientUuid).Execute() + +Get the rotated client secret + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidClientSecretRotatedGet`: CredentialRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**CredentialRepresentation**](CredentialRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete + +> AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete(ctx, realm, clientUuid, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete(context.Background(), realm, clientUuid, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut + +> AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut(ctx, realm, clientUuid, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut(context.Background(), realm, clientUuid, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidDefaultClientScopesGet + +> []ClientScopeRepresentation AdminRealmsRealmClientsClientUuidDefaultClientScopesGet(ctx, realm, clientUuid).Execute() + +Get default client scopes. Only name and ids are returned. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidDefaultClientScopesGet`: []ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidDelete + +> AdminRealmsRealmClientsClientUuidDelete(ctx, realm, clientUuid).Execute() + +Delete the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDelete(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet + +> AccessToken AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet(ctx, realm, clientUuid).Scope(scope).UserId(userId).Execute() + +Create JSON with payload of example access token + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scope := "scope_example" // string | (optional) + userId := "userId_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet(context.Background(), realm, clientUuid).Scope(scope).UserId(userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet`: AccessToken + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **scope** | **string** | | + **userId** | **string** | | + +### Return type + +[**AccessToken**](AccessToken.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet + +> IDToken AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet(ctx, realm, clientUuid).Scope(scope).UserId(userId).Execute() + +Create JSON with payload of example id token + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scope := "scope_example" // string | (optional) + userId := "userId_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet(context.Background(), realm, clientUuid).Scope(scope).UserId(userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet`: IDToken + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **scope** | **string** | | + **userId** | **string** | | + +### Return type + +[**IDToken**](IDToken.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet + +> map[string]interface{} AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet(ctx, realm, clientUuid).Scope(scope).UserId(userId).Execute() + +Create JSON with payload of example user info + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scope := "scope_example" // string | (optional) + userId := "userId_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet(context.Background(), realm, clientUuid).Scope(scope).UserId(userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **scope** | **string** | | + **userId** | **string** | | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet + +> []ProtocolMapperEvaluationRepresentation AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet(ctx, realm, clientUuid).Scope(scope).Execute() + +Return list of all protocol mappers, which will be used when generating tokens issued for particular client. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scope := "scope_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet(context.Background(), realm, clientUuid).Scope(scope).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet`: []ProtocolMapperEvaluationRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **scope** | **string** | | + +### Return type + +[**[]ProtocolMapperEvaluationRepresentation**](ProtocolMapperEvaluationRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(ctx, realm, clientUuid, roleContainerId).Scope(scope).Execute() + +Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleContainerId := "roleContainerId_example" // string | either realm name OR client UUID + scope := "scope_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(context.Background(), realm, clientUuid, roleContainerId).Scope(scope).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleContainerId** | **string** | either realm name OR client UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **scope** | **string** | | + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(ctx, realm, clientUuid, roleContainerId).Scope(scope).Execute() + +Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleContainerId := "roleContainerId_example" // string | either realm name OR client UUID + scope := "scope_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(context.Background(), realm, clientUuid, roleContainerId).Scope(scope).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleContainerId** | **string** | either realm name OR client UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **scope** | **string** | | + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidGet + +> ClientRepresentation AdminRealmsRealmClientsClientUuidGet(ctx, realm, clientUuid).Execute() + +Get representation of the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidGet`: ClientRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ClientRepresentation**](ClientRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet + +> AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet(ctx, realm, clientUuid, providerId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + providerId := "providerId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet(context.Background(), realm, clientUuid, providerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**providerId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidManagementPermissionsGet + +> ManagementPermissionReference AdminRealmsRealmClientsClientUuidManagementPermissionsGet(ctx, realm, clientUuid).Execute() + +Return object stating whether client Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidManagementPermissionsGet`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidManagementPermissionsPut + +> ManagementPermissionReference AdminRealmsRealmClientsClientUuidManagementPermissionsPut(ctx, realm, clientUuid).ManagementPermissionReference(managementPermissionReference).Execute() + +Return object stating whether client Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsPut(context.Background(), realm, clientUuid).ManagementPermissionReference(managementPermissionReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidManagementPermissionsPut`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **managementPermissionReference** | [**ManagementPermissionReference**](ManagementPermissionReference.md) | | + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidNodesNodeDelete + +> AdminRealmsRealmClientsClientUuidNodesNodeDelete(ctx, realm, clientUuid, node).Execute() + +Unregister a cluster node from the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + node := "node_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidNodesNodeDelete(context.Background(), realm, clientUuid, node).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidNodesNodeDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**node** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidNodesPost + +> AdminRealmsRealmClientsClientUuidNodesPost(ctx, realm, clientUuid).RequestBody(requestBody).Execute() + +Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + requestBody := map[string]string{"key": "Inner_example"} // map[string]string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidNodesPost(context.Background(), realm, clientUuid).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidNodesPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidNodesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requestBody** | **map[string]string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidOfflineSessionCountGet + +> map[string]int64 AdminRealmsRealmClientsClientUuidOfflineSessionCountGet(ctx, realm, clientUuid).Execute() + +Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidOfflineSessionCountGet`: map[string]int64 + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]int64** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidOfflineSessionsGet + +> []UserSessionRepresentation AdminRealmsRealmClientsClientUuidOfflineSessionsGet(ctx, realm, clientUuid).First(first).Max(max).Execute() + +Get offline sessions for client Returns a list of offline user sessions associated with this client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + first := int32(56) // int32 | Paging offset (optional) + max := int32(56) // int32 | Maximum results size (defaults to 100) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionsGet(context.Background(), realm, clientUuid).First(first).Max(max).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidOfflineSessionsGet`: []UserSessionRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **first** | **int32** | Paging offset | + **max** | **int32** | Maximum results size (defaults to 100) | + +### Return type + +[**[]UserSessionRepresentation**](UserSessionRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete + +> AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete(ctx, realm, clientUuid, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete(context.Background(), realm, clientUuid, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut + +> AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut(ctx, realm, clientUuid, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut(context.Background(), realm, clientUuid, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidOptionalClientScopesGet + +> []ClientScopeRepresentation AdminRealmsRealmClientsClientUuidOptionalClientScopesGet(ctx, realm, clientUuid).Execute() + +Get optional client scopes. Only name and ids are returned. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidOptionalClientScopesGet`: []ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidPushRevocationPost + +> GlobalRequestResult AdminRealmsRealmClientsClientUuidPushRevocationPost(ctx, realm, clientUuid).Execute() + +Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidPushRevocationPost(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidPushRevocationPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidPushRevocationPost`: GlobalRequestResult + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidPushRevocationPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GlobalRequestResult**](GlobalRequestResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidPut + +> AdminRealmsRealmClientsClientUuidPut(ctx, realm, clientUuid).ClientRepresentation(clientRepresentation).Execute() + +Update the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + clientRepresentation := *openapiclient.NewClientRepresentation() // ClientRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidPut(context.Background(), realm, clientUuid).ClientRepresentation(clientRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **clientRepresentation** | [**ClientRepresentation**](ClientRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost + +> ClientRepresentation AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost(ctx, realm, clientUuid).Execute() + +Generate a new registration access token for the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost`: ClientRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ClientRepresentation**](ClientRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidServiceAccountUserGet + +> UserRepresentation AdminRealmsRealmClientsClientUuidServiceAccountUserGet(ctx, realm, clientUuid).Execute() + +Get a user dedicated to the service account + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidServiceAccountUserGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidServiceAccountUserGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidServiceAccountUserGet`: UserRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidServiceAccountUserGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**UserRepresentation**](UserRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidSessionCountGet + +> map[string]int64 AdminRealmsRealmClientsClientUuidSessionCountGet(ctx, realm, clientUuid).Execute() + +Get application session count Returns a number of user sessions associated with this client { \"count\": number } + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidSessionCountGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidSessionCountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidSessionCountGet`: map[string]int64 + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidSessionCountGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidSessionCountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]int64** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidTestNodesAvailableGet + +> GlobalRequestResult AdminRealmsRealmClientsClientUuidTestNodesAvailableGet(ctx, realm, clientUuid).Execute() + +Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidTestNodesAvailableGet`: GlobalRequestResult + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GlobalRequestResult**](GlobalRequestResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidUserSessionsGet + +> []UserSessionRepresentation AdminRealmsRealmClientsClientUuidUserSessionsGet(ctx, realm, clientUuid).First(first).Max(max).Execute() + +Get user sessions for client Returns a list of user sessions associated with this client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + first := int32(56) // int32 | Paging offset (optional) + max := int32(56) // int32 | Maximum results size (defaults to 100) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidUserSessionsGet(context.Background(), realm, clientUuid).First(first).Max(max).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidUserSessionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidUserSessionsGet`: []UserSessionRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidUserSessionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **first** | **int32** | Paging offset | + **max** | **int32** | Maximum results size (defaults to 100) | + +### Return type + +[**[]UserSessionRepresentation**](UserSessionRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsGet + +> []ClientRepresentation AdminRealmsRealmClientsGet(ctx, realm).ClientId(clientId).First(first).Max(max).Q(q).Search(search).ViewableOnly(viewableOnly).Execute() + +Get clients belonging to the realm. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientId := "clientId_example" // string | filter by clientId (optional) + first := int32(56) // int32 | the first result (optional) + max := int32(56) // int32 | the max results to return (optional) + q := "q_example" // string | (optional) + search := true // bool | whether this is a search query or a getClientById query (optional) (default to false) + viewableOnly := true // bool | filter clients that cannot be viewed in full by admin (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsGet(context.Background(), realm).ClientId(clientId).First(first).Max(max).Q(q).Search(search).ViewableOnly(viewableOnly).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsGet`: []ClientRepresentation + fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientId** | **string** | filter by clientId | + **first** | **int32** | the first result | + **max** | **int32** | the max results to return | + **q** | **string** | | + **search** | **bool** | whether this is a search query or a getClientById query | [default to false] + **viewableOnly** | **bool** | filter clients that cannot be viewed in full by admin | [default to false] + +### Return type + +[**[]ClientRepresentation**](ClientRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsPost + +> AdminRealmsRealmClientsPost(ctx, realm).ClientRepresentation(clientRepresentation).Execute() + +Create a new client Client’s client_id must be unique! + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientRepresentation := *openapiclient.NewClientRepresentation() // ClientRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsPost(context.Background(), realm).ClientRepresentation(clientRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientRepresentation** | [**ClientRepresentation**](ClientRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/ComponentAPI.md b/docs/ComponentAPI.md new file mode 100644 index 0000000..765a268 --- /dev/null +++ b/docs/ComponentAPI.md @@ -0,0 +1,440 @@ +# \ComponentAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmComponentsGet**](ComponentAPI.md#AdminRealmsRealmComponentsGet) | **Get** /admin/realms/{realm}/components | +[**AdminRealmsRealmComponentsIdDelete**](ComponentAPI.md#AdminRealmsRealmComponentsIdDelete) | **Delete** /admin/realms/{realm}/components/{id} | +[**AdminRealmsRealmComponentsIdGet**](ComponentAPI.md#AdminRealmsRealmComponentsIdGet) | **Get** /admin/realms/{realm}/components/{id} | +[**AdminRealmsRealmComponentsIdPut**](ComponentAPI.md#AdminRealmsRealmComponentsIdPut) | **Put** /admin/realms/{realm}/components/{id} | +[**AdminRealmsRealmComponentsIdSubComponentTypesGet**](ComponentAPI.md#AdminRealmsRealmComponentsIdSubComponentTypesGet) | **Get** /admin/realms/{realm}/components/{id}/sub-component-types | List of subcomponent types that are available to configure for a particular parent component. +[**AdminRealmsRealmComponentsPost**](ComponentAPI.md#AdminRealmsRealmComponentsPost) | **Post** /admin/realms/{realm}/components | + + + +## AdminRealmsRealmComponentsGet + +> []ComponentRepresentation AdminRealmsRealmComponentsGet(ctx, realm).Name(name).Parent(parent).Type_(type_).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + name := "name_example" // string | (optional) + parent := "parent_example" // string | (optional) + type_ := "type__example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsGet(context.Background(), realm).Name(name).Parent(parent).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentAPI.AdminRealmsRealmComponentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmComponentsGet`: []ComponentRepresentation + fmt.Fprintf(os.Stdout, "Response from `ComponentAPI.AdminRealmsRealmComponentsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmComponentsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **name** | **string** | | + **parent** | **string** | | + **type_** | **string** | | + +### Return type + +[**[]ComponentRepresentation**](ComponentRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmComponentsIdDelete + +> AdminRealmsRealmComponentsIdDelete(ctx, realm, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdDelete(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentAPI.AdminRealmsRealmComponentsIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmComponentsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmComponentsIdGet + +> ComponentRepresentation AdminRealmsRealmComponentsIdGet(ctx, realm, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdGet(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentAPI.AdminRealmsRealmComponentsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmComponentsIdGet`: ComponentRepresentation + fmt.Fprintf(os.Stdout, "Response from `ComponentAPI.AdminRealmsRealmComponentsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmComponentsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ComponentRepresentation**](ComponentRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmComponentsIdPut + +> AdminRealmsRealmComponentsIdPut(ctx, realm, id).ComponentRepresentation(componentRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + componentRepresentation := *openapiclient.NewComponentRepresentation() // ComponentRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdPut(context.Background(), realm, id).ComponentRepresentation(componentRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentAPI.AdminRealmsRealmComponentsIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmComponentsIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **componentRepresentation** | [**ComponentRepresentation**](ComponentRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmComponentsIdSubComponentTypesGet + +> []ComponentTypeRepresentation AdminRealmsRealmComponentsIdSubComponentTypesGet(ctx, realm, id).Type_(type_).Execute() + +List of subcomponent types that are available to configure for a particular parent component. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + type_ := "type__example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdSubComponentTypesGet(context.Background(), realm, id).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentAPI.AdminRealmsRealmComponentsIdSubComponentTypesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmComponentsIdSubComponentTypesGet`: []ComponentTypeRepresentation + fmt.Fprintf(os.Stdout, "Response from `ComponentAPI.AdminRealmsRealmComponentsIdSubComponentTypesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **type_** | **string** | | + +### Return type + +[**[]ComponentTypeRepresentation**](ComponentTypeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmComponentsPost + +> AdminRealmsRealmComponentsPost(ctx, realm).ComponentRepresentation(componentRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + componentRepresentation := *openapiclient.NewComponentRepresentation() // ComponentRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsPost(context.Background(), realm).ComponentRepresentation(componentRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentAPI.AdminRealmsRealmComponentsPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmComponentsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **componentRepresentation** | [**ComponentRepresentation**](ComponentRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/ComponentExportRepresentation.md b/docs/ComponentExportRepresentation.md new file mode 100644 index 0000000..a1024df --- /dev/null +++ b/docs/ComponentExportRepresentation.md @@ -0,0 +1,186 @@ +# ComponentExportRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**SubType** | Pointer to **string** | | [optional] +**SubComponents** | Pointer to [**map[string][]ComponentExportRepresentation**](array.md) | | [optional] +**Config** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewComponentExportRepresentation + +`func NewComponentExportRepresentation() *ComponentExportRepresentation` + +NewComponentExportRepresentation instantiates a new ComponentExportRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentExportRepresentationWithDefaults + +`func NewComponentExportRepresentationWithDefaults() *ComponentExportRepresentation` + +NewComponentExportRepresentationWithDefaults instantiates a new ComponentExportRepresentation object +This 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 *ComponentExportRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComponentExportRepresentation) 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 *ComponentExportRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComponentExportRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ComponentExportRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentExportRepresentation) 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 *ComponentExportRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComponentExportRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProviderId + +`func (o *ComponentExportRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *ComponentExportRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *ComponentExportRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *ComponentExportRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetSubType + +`func (o *ComponentExportRepresentation) GetSubType() string` + +GetSubType returns the SubType field if non-nil, zero value otherwise. + +### GetSubTypeOk + +`func (o *ComponentExportRepresentation) GetSubTypeOk() (*string, bool)` + +GetSubTypeOk returns a tuple with the SubType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubType + +`func (o *ComponentExportRepresentation) SetSubType(v string)` + +SetSubType sets SubType field to given value. + +### HasSubType + +`func (o *ComponentExportRepresentation) HasSubType() bool` + +HasSubType returns a boolean if a field has been set. + +### GetSubComponents + +`func (o *ComponentExportRepresentation) GetSubComponents() map[string][]ComponentExportRepresentation` + +GetSubComponents returns the SubComponents field if non-nil, zero value otherwise. + +### GetSubComponentsOk + +`func (o *ComponentExportRepresentation) GetSubComponentsOk() (*map[string][]ComponentExportRepresentation, bool)` + +GetSubComponentsOk returns a tuple with the SubComponents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubComponents + +`func (o *ComponentExportRepresentation) SetSubComponents(v map[string][]ComponentExportRepresentation)` + +SetSubComponents sets SubComponents field to given value. + +### HasSubComponents + +`func (o *ComponentExportRepresentation) HasSubComponents() bool` + +HasSubComponents returns a boolean if a field has been set. + +### GetConfig + +`func (o *ComponentExportRepresentation) GetConfig() map[string][]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ComponentExportRepresentation) GetConfigOk() (*map[string][]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ComponentExportRepresentation) SetConfig(v map[string][]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *ComponentExportRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComponentRepresentation.md b/docs/ComponentRepresentation.md new file mode 100644 index 0000000..12f64c4 --- /dev/null +++ b/docs/ComponentRepresentation.md @@ -0,0 +1,212 @@ +# ComponentRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**ProviderType** | Pointer to **string** | | [optional] +**ParentId** | Pointer to **string** | | [optional] +**SubType** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewComponentRepresentation + +`func NewComponentRepresentation() *ComponentRepresentation` + +NewComponentRepresentation instantiates a new ComponentRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentRepresentationWithDefaults + +`func NewComponentRepresentationWithDefaults() *ComponentRepresentation` + +NewComponentRepresentationWithDefaults instantiates a new ComponentRepresentation object +This 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 *ComponentRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComponentRepresentation) 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 *ComponentRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComponentRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ComponentRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentRepresentation) 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 *ComponentRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComponentRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProviderId + +`func (o *ComponentRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *ComponentRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *ComponentRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *ComponentRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetProviderType + +`func (o *ComponentRepresentation) GetProviderType() string` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *ComponentRepresentation) GetProviderTypeOk() (*string, 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 *ComponentRepresentation) SetProviderType(v string)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *ComponentRepresentation) HasProviderType() bool` + +HasProviderType returns a boolean if a field has been set. + +### GetParentId + +`func (o *ComponentRepresentation) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *ComponentRepresentation) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentId + +`func (o *ComponentRepresentation) SetParentId(v string)` + +SetParentId sets ParentId field to given value. + +### HasParentId + +`func (o *ComponentRepresentation) HasParentId() bool` + +HasParentId returns a boolean if a field has been set. + +### GetSubType + +`func (o *ComponentRepresentation) GetSubType() string` + +GetSubType returns the SubType field if non-nil, zero value otherwise. + +### GetSubTypeOk + +`func (o *ComponentRepresentation) GetSubTypeOk() (*string, bool)` + +GetSubTypeOk returns a tuple with the SubType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubType + +`func (o *ComponentRepresentation) SetSubType(v string)` + +SetSubType sets SubType field to given value. + +### HasSubType + +`func (o *ComponentRepresentation) HasSubType() bool` + +HasSubType returns a boolean if a field has been set. + +### GetConfig + +`func (o *ComponentRepresentation) GetConfig() map[string][]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ComponentRepresentation) GetConfigOk() (*map[string][]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ComponentRepresentation) SetConfig(v map[string][]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *ComponentRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComponentTypeRepresentation.md b/docs/ComponentTypeRepresentation.md new file mode 100644 index 0000000..b27dc0b --- /dev/null +++ b/docs/ComponentTypeRepresentation.md @@ -0,0 +1,134 @@ +# ComponentTypeRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**HelpText** | Pointer to **string** | | [optional] +**Properties** | Pointer to [**[]ConfigPropertyRepresentation**](ConfigPropertyRepresentation.md) | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewComponentTypeRepresentation + +`func NewComponentTypeRepresentation() *ComponentTypeRepresentation` + +NewComponentTypeRepresentation instantiates a new ComponentTypeRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentTypeRepresentationWithDefaults + +`func NewComponentTypeRepresentationWithDefaults() *ComponentTypeRepresentation` + +NewComponentTypeRepresentationWithDefaults instantiates a new ComponentTypeRepresentation object +This 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 *ComponentTypeRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComponentTypeRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetHelpText + +`func (o *ComponentTypeRepresentation) GetHelpText() string` + +GetHelpText returns the HelpText field if non-nil, zero value otherwise. + +### GetHelpTextOk + +`func (o *ComponentTypeRepresentation) GetHelpTextOk() (*string, bool)` + +GetHelpTextOk returns a tuple with the HelpText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHelpText + +`func (o *ComponentTypeRepresentation) SetHelpText(v string)` + +SetHelpText sets HelpText field to given value. + +### HasHelpText + +`func (o *ComponentTypeRepresentation) HasHelpText() bool` + +HasHelpText returns a boolean if a field has been set. + +### GetProperties + +`func (o *ComponentTypeRepresentation) GetProperties() []ConfigPropertyRepresentation` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ComponentTypeRepresentation) GetPropertiesOk() (*[]ConfigPropertyRepresentation, 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 *ComponentTypeRepresentation) SetProperties(v []ConfigPropertyRepresentation)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ComponentTypeRepresentation) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComponentTypeRepresentation) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComponentTypeRepresentation) 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/docs/Composites.md b/docs/Composites.md new file mode 100644 index 0000000..a044995 --- /dev/null +++ b/docs/Composites.md @@ -0,0 +1,108 @@ +# Composites + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Realm** | Pointer to **[]string** | | [optional] +**Client** | Pointer to **map[string][]string** | | [optional] +**Application** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewComposites + +`func NewComposites() *Composites` + +NewComposites instantiates a new Composites object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCompositesWithDefaults + +`func NewCompositesWithDefaults() *Composites` + +NewCompositesWithDefaults instantiates a new Composites object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRealm + +`func (o *Composites) GetRealm() []string` + +GetRealm returns the Realm field if non-nil, zero value otherwise. + +### GetRealmOk + +`func (o *Composites) GetRealmOk() (*[]string, bool)` + +GetRealmOk returns a tuple with the Realm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealm + +`func (o *Composites) SetRealm(v []string)` + +SetRealm sets Realm field to given value. + +### HasRealm + +`func (o *Composites) HasRealm() bool` + +HasRealm returns a boolean if a field has been set. + +### GetClient + +`func (o *Composites) GetClient() map[string][]string` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *Composites) GetClientOk() (*map[string][]string, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *Composites) SetClient(v map[string][]string)` + +SetClient sets Client field to given value. + +### HasClient + +`func (o *Composites) HasClient() bool` + +HasClient returns a boolean if a field has been set. + +### GetApplication + +`func (o *Composites) GetApplication() map[string][]string` + +GetApplication returns the Application field if non-nil, zero value otherwise. + +### GetApplicationOk + +`func (o *Composites) GetApplicationOk() (*map[string][]string, bool)` + +GetApplicationOk returns a tuple with the Application field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplication + +`func (o *Composites) SetApplication(v map[string][]string)` + +SetApplication sets Application field to given value. + +### HasApplication + +`func (o *Composites) HasApplication() bool` + +HasApplication returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigPropertyRepresentation.md b/docs/ConfigPropertyRepresentation.md new file mode 100644 index 0000000..b3cd8f5 --- /dev/null +++ b/docs/ConfigPropertyRepresentation.md @@ -0,0 +1,274 @@ +# ConfigPropertyRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Label** | Pointer to **string** | | [optional] +**HelpText** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **interface{}** | | [optional] +**Options** | Pointer to **[]string** | | [optional] +**Secret** | Pointer to **bool** | | [optional] +**Required** | Pointer to **bool** | | [optional] +**ReadOnly** | Pointer to **bool** | | [optional] + +## Methods + +### NewConfigPropertyRepresentation + +`func NewConfigPropertyRepresentation() *ConfigPropertyRepresentation` + +NewConfigPropertyRepresentation instantiates a new ConfigPropertyRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertyRepresentationWithDefaults + +`func NewConfigPropertyRepresentationWithDefaults() *ConfigPropertyRepresentation` + +NewConfigPropertyRepresentationWithDefaults instantiates a new ConfigPropertyRepresentation object +This 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 *ConfigPropertyRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConfigPropertyRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetLabel + +`func (o *ConfigPropertyRepresentation) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ConfigPropertyRepresentation) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ConfigPropertyRepresentation) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ConfigPropertyRepresentation) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetHelpText + +`func (o *ConfigPropertyRepresentation) GetHelpText() string` + +GetHelpText returns the HelpText field if non-nil, zero value otherwise. + +### GetHelpTextOk + +`func (o *ConfigPropertyRepresentation) GetHelpTextOk() (*string, bool)` + +GetHelpTextOk returns a tuple with the HelpText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHelpText + +`func (o *ConfigPropertyRepresentation) SetHelpText(v string)` + +SetHelpText sets HelpText field to given value. + +### HasHelpText + +`func (o *ConfigPropertyRepresentation) HasHelpText() bool` + +HasHelpText returns a boolean if a field has been set. + +### GetType + +`func (o *ConfigPropertyRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ConfigPropertyRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ConfigPropertyRepresentation) GetDefaultValue() interface{}` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ConfigPropertyRepresentation) GetDefaultValueOk() (*interface{}, 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 *ConfigPropertyRepresentation) SetDefaultValue(v interface{})` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ConfigPropertyRepresentation) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *ConfigPropertyRepresentation) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *ConfigPropertyRepresentation) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetOptions + +`func (o *ConfigPropertyRepresentation) GetOptions() []string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetOptions(v []string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *ConfigPropertyRepresentation) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetSecret + +`func (o *ConfigPropertyRepresentation) GetSecret() bool` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ConfigPropertyRepresentation) GetSecretOk() (*bool, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *ConfigPropertyRepresentation) SetSecret(v bool)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ConfigPropertyRepresentation) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetRequired + +`func (o *ConfigPropertyRepresentation) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *ConfigPropertyRepresentation) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetReadOnly + +`func (o *ConfigPropertyRepresentation) GetReadOnly() bool` + +GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise. + +### GetReadOnlyOk + +`func (o *ConfigPropertyRepresentation) GetReadOnlyOk() (*bool, bool)` + +GetReadOnlyOk returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadOnly + +`func (o *ConfigPropertyRepresentation) SetReadOnly(v bool)` + +SetReadOnly sets ReadOnly field to given value. + +### HasReadOnly + +`func (o *ConfigPropertyRepresentation) HasReadOnly() bool` + +HasReadOnly returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Confirmation.md b/docs/Confirmation.md new file mode 100644 index 0000000..ae564c8 --- /dev/null +++ b/docs/Confirmation.md @@ -0,0 +1,82 @@ +# Confirmation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**X5tS256** | Pointer to **string** | | [optional] +**Jkt** | Pointer to **string** | | [optional] + +## Methods + +### NewConfirmation + +`func NewConfirmation() *Confirmation` + +NewConfirmation instantiates a new Confirmation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfirmationWithDefaults + +`func NewConfirmationWithDefaults() *Confirmation` + +NewConfirmationWithDefaults instantiates a new Confirmation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetX5tS256 + +`func (o *Confirmation) GetX5tS256() string` + +GetX5tS256 returns the X5tS256 field if non-nil, zero value otherwise. + +### GetX5tS256Ok + +`func (o *Confirmation) GetX5tS256Ok() (*string, bool)` + +GetX5tS256Ok returns a tuple with the X5tS256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX5tS256 + +`func (o *Confirmation) SetX5tS256(v string)` + +SetX5tS256 sets X5tS256 field to given value. + +### HasX5tS256 + +`func (o *Confirmation) HasX5tS256() bool` + +HasX5tS256 returns a boolean if a field has been set. + +### GetJkt + +`func (o *Confirmation) GetJkt() string` + +GetJkt returns the Jkt field if non-nil, zero value otherwise. + +### GetJktOk + +`func (o *Confirmation) GetJktOk() (*string, bool)` + +GetJktOk returns a tuple with the Jkt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJkt + +`func (o *Confirmation) SetJkt(v string)` + +SetJkt sets Jkt field to given value. + +### HasJkt + +`func (o *Confirmation) HasJkt() bool` + +HasJkt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CredentialRepresentation.md b/docs/CredentialRepresentation.md new file mode 100644 index 0000000..2d8d360 --- /dev/null +++ b/docs/CredentialRepresentation.md @@ -0,0 +1,498 @@ +# CredentialRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UserLabel** | Pointer to **string** | | [optional] +**CreatedDate** | Pointer to **int64** | | [optional] +**SecretData** | Pointer to **string** | | [optional] +**CredentialData** | Pointer to **string** | | [optional] +**Priority** | Pointer to **int32** | | [optional] +**Value** | Pointer to **string** | | [optional] +**Temporary** | Pointer to **bool** | | [optional] +**Device** | Pointer to **string** | | [optional] +**HashedSaltedValue** | Pointer to **string** | | [optional] +**Salt** | Pointer to **string** | | [optional] +**HashIterations** | Pointer to **int32** | | [optional] +**Counter** | Pointer to **int32** | | [optional] +**Algorithm** | Pointer to **string** | | [optional] +**Digits** | Pointer to **int32** | | [optional] +**Period** | Pointer to **int32** | | [optional] +**Config** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewCredentialRepresentation + +`func NewCredentialRepresentation() *CredentialRepresentation` + +NewCredentialRepresentation instantiates a new CredentialRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCredentialRepresentationWithDefaults + +`func NewCredentialRepresentationWithDefaults() *CredentialRepresentation` + +NewCredentialRepresentationWithDefaults instantiates a new CredentialRepresentation object +This 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 *CredentialRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CredentialRepresentation) 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 *CredentialRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CredentialRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetType + +`func (o *CredentialRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CredentialRepresentation) 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 *CredentialRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CredentialRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUserLabel + +`func (o *CredentialRepresentation) GetUserLabel() string` + +GetUserLabel returns the UserLabel field if non-nil, zero value otherwise. + +### GetUserLabelOk + +`func (o *CredentialRepresentation) GetUserLabelOk() (*string, bool)` + +GetUserLabelOk returns a tuple with the UserLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserLabel + +`func (o *CredentialRepresentation) SetUserLabel(v string)` + +SetUserLabel sets UserLabel field to given value. + +### HasUserLabel + +`func (o *CredentialRepresentation) HasUserLabel() bool` + +HasUserLabel returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *CredentialRepresentation) GetCreatedDate() int64` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *CredentialRepresentation) GetCreatedDateOk() (*int64, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *CredentialRepresentation) SetCreatedDate(v int64)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *CredentialRepresentation) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetSecretData + +`func (o *CredentialRepresentation) GetSecretData() string` + +GetSecretData returns the SecretData field if non-nil, zero value otherwise. + +### GetSecretDataOk + +`func (o *CredentialRepresentation) GetSecretDataOk() (*string, bool)` + +GetSecretDataOk returns a tuple with the SecretData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretData + +`func (o *CredentialRepresentation) SetSecretData(v string)` + +SetSecretData sets SecretData field to given value. + +### HasSecretData + +`func (o *CredentialRepresentation) HasSecretData() bool` + +HasSecretData returns a boolean if a field has been set. + +### GetCredentialData + +`func (o *CredentialRepresentation) GetCredentialData() string` + +GetCredentialData returns the CredentialData field if non-nil, zero value otherwise. + +### GetCredentialDataOk + +`func (o *CredentialRepresentation) GetCredentialDataOk() (*string, bool)` + +GetCredentialDataOk returns a tuple with the CredentialData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialData + +`func (o *CredentialRepresentation) SetCredentialData(v string)` + +SetCredentialData sets CredentialData field to given value. + +### HasCredentialData + +`func (o *CredentialRepresentation) HasCredentialData() bool` + +HasCredentialData returns a boolean if a field has been set. + +### GetPriority + +`func (o *CredentialRepresentation) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CredentialRepresentation) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CredentialRepresentation) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CredentialRepresentation) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetValue + +`func (o *CredentialRepresentation) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CredentialRepresentation) 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 *CredentialRepresentation) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CredentialRepresentation) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetTemporary + +`func (o *CredentialRepresentation) GetTemporary() bool` + +GetTemporary returns the Temporary field if non-nil, zero value otherwise. + +### GetTemporaryOk + +`func (o *CredentialRepresentation) GetTemporaryOk() (*bool, bool)` + +GetTemporaryOk returns a tuple with the Temporary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemporary + +`func (o *CredentialRepresentation) SetTemporary(v bool)` + +SetTemporary sets Temporary field to given value. + +### HasTemporary + +`func (o *CredentialRepresentation) HasTemporary() bool` + +HasTemporary returns a boolean if a field has been set. + +### GetDevice + +`func (o *CredentialRepresentation) GetDevice() string` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *CredentialRepresentation) GetDeviceOk() (*string, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *CredentialRepresentation) SetDevice(v string)` + +SetDevice sets Device field to given value. + +### HasDevice + +`func (o *CredentialRepresentation) HasDevice() bool` + +HasDevice returns a boolean if a field has been set. + +### GetHashedSaltedValue + +`func (o *CredentialRepresentation) GetHashedSaltedValue() string` + +GetHashedSaltedValue returns the HashedSaltedValue field if non-nil, zero value otherwise. + +### GetHashedSaltedValueOk + +`func (o *CredentialRepresentation) GetHashedSaltedValueOk() (*string, bool)` + +GetHashedSaltedValueOk returns a tuple with the HashedSaltedValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashedSaltedValue + +`func (o *CredentialRepresentation) SetHashedSaltedValue(v string)` + +SetHashedSaltedValue sets HashedSaltedValue field to given value. + +### HasHashedSaltedValue + +`func (o *CredentialRepresentation) HasHashedSaltedValue() bool` + +HasHashedSaltedValue returns a boolean if a field has been set. + +### GetSalt + +`func (o *CredentialRepresentation) GetSalt() string` + +GetSalt returns the Salt field if non-nil, zero value otherwise. + +### GetSaltOk + +`func (o *CredentialRepresentation) GetSaltOk() (*string, bool)` + +GetSaltOk returns a tuple with the Salt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalt + +`func (o *CredentialRepresentation) SetSalt(v string)` + +SetSalt sets Salt field to given value. + +### HasSalt + +`func (o *CredentialRepresentation) HasSalt() bool` + +HasSalt returns a boolean if a field has been set. + +### GetHashIterations + +`func (o *CredentialRepresentation) GetHashIterations() int32` + +GetHashIterations returns the HashIterations field if non-nil, zero value otherwise. + +### GetHashIterationsOk + +`func (o *CredentialRepresentation) GetHashIterationsOk() (*int32, bool)` + +GetHashIterationsOk returns a tuple with the HashIterations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashIterations + +`func (o *CredentialRepresentation) SetHashIterations(v int32)` + +SetHashIterations sets HashIterations field to given value. + +### HasHashIterations + +`func (o *CredentialRepresentation) HasHashIterations() bool` + +HasHashIterations returns a boolean if a field has been set. + +### GetCounter + +`func (o *CredentialRepresentation) GetCounter() int32` + +GetCounter returns the Counter field if non-nil, zero value otherwise. + +### GetCounterOk + +`func (o *CredentialRepresentation) GetCounterOk() (*int32, bool)` + +GetCounterOk returns a tuple with the Counter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCounter + +`func (o *CredentialRepresentation) SetCounter(v int32)` + +SetCounter sets Counter field to given value. + +### HasCounter + +`func (o *CredentialRepresentation) HasCounter() bool` + +HasCounter returns a boolean if a field has been set. + +### GetAlgorithm + +`func (o *CredentialRepresentation) GetAlgorithm() string` + +GetAlgorithm returns the Algorithm field if non-nil, zero value otherwise. + +### GetAlgorithmOk + +`func (o *CredentialRepresentation) GetAlgorithmOk() (*string, bool)` + +GetAlgorithmOk returns a tuple with the Algorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlgorithm + +`func (o *CredentialRepresentation) SetAlgorithm(v string)` + +SetAlgorithm sets Algorithm field to given value. + +### HasAlgorithm + +`func (o *CredentialRepresentation) HasAlgorithm() bool` + +HasAlgorithm returns a boolean if a field has been set. + +### GetDigits + +`func (o *CredentialRepresentation) GetDigits() int32` + +GetDigits returns the Digits field if non-nil, zero value otherwise. + +### GetDigitsOk + +`func (o *CredentialRepresentation) GetDigitsOk() (*int32, bool)` + +GetDigitsOk returns a tuple with the Digits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDigits + +`func (o *CredentialRepresentation) SetDigits(v int32)` + +SetDigits sets Digits field to given value. + +### HasDigits + +`func (o *CredentialRepresentation) HasDigits() bool` + +HasDigits returns a boolean if a field has been set. + +### GetPeriod + +`func (o *CredentialRepresentation) GetPeriod() int32` + +GetPeriod returns the Period field if non-nil, zero value otherwise. + +### GetPeriodOk + +`func (o *CredentialRepresentation) GetPeriodOk() (*int32, bool)` + +GetPeriodOk returns a tuple with the Period field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeriod + +`func (o *CredentialRepresentation) SetPeriod(v int32)` + +SetPeriod sets Period field to given value. + +### HasPeriod + +`func (o *CredentialRepresentation) HasPeriod() bool` + +HasPeriod returns a boolean if a field has been set. + +### GetConfig + +`func (o *CredentialRepresentation) GetConfig() map[string][]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CredentialRepresentation) GetConfigOk() (*map[string][]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CredentialRepresentation) SetConfig(v map[string][]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *CredentialRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DecisionEffect.md b/docs/DecisionEffect.md new file mode 100644 index 0000000..4d1824f --- /dev/null +++ b/docs/DecisionEffect.md @@ -0,0 +1,13 @@ +# DecisionEffect + +## Enum + + +* `PERMIT` (value: `"PERMIT"`) + +* `DENY` (value: `"DENY"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DecisionStrategy.md b/docs/DecisionStrategy.md new file mode 100644 index 0000000..f1b701f --- /dev/null +++ b/docs/DecisionStrategy.md @@ -0,0 +1,15 @@ +# DecisionStrategy + +## Enum + + +* `AFFIRMATIVE` (value: `"AFFIRMATIVE"`) + +* `UNANIMOUS` (value: `"UNANIMOUS"`) + +* `CONSENSUS` (value: `"CONSENSUS"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultAPI.md b/docs/DefaultAPI.md new file mode 100644 index 0000000..acd518f --- /dev/null +++ b/docs/DefaultAPI.md @@ -0,0 +1,2529 @@ +# \DefaultAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/import | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/providers | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/search | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/providers | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/search | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerPut**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/attributes | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/permissions | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/scopes | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/search | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/permissions | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/resources | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search | +[**AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet**](DefaultAPI.md#AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings | + + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerGet + +> ResourceServerRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerGet(ctx, realm, clientUuid).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerGet`: ResourceServerRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ResourceServerRepresentation**](ResourceServerRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost(ctx, realm, clientUuid).ResourceServerRepresentation(resourceServerRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceServerRepresentation := *openapiclient.NewResourceServerRepresentation() // ResourceServerRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost(context.Background(), realm, clientUuid).ResourceServerRepresentation(resourceServerRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **resourceServerRepresentation** | [**ResourceServerRepresentation**](ResourceServerRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost + +> PolicyEvaluationResponse AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost(ctx, realm, clientUuid).PolicyEvaluationRequest(policyEvaluationRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + policyEvaluationRequest := *openapiclient.NewPolicyEvaluationRequest() // PolicyEvaluationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost(context.Background(), realm, clientUuid).PolicyEvaluationRequest(policyEvaluationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost`: PolicyEvaluationResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **policyEvaluationRequest** | [**PolicyEvaluationRequest**](PolicyEvaluationRequest.md) | | + +### Return type + +[**PolicyEvaluationResponse**](PolicyEvaluationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet + +> []AbstractPolicyRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet(ctx, realm, clientUuid).Fields(fields).First(first).Max(max).Name(name).Owner(owner).Permission(permission).PolicyId(policyId).Resource(resource).Scope(scope).Type_(type_).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + fields := "fields_example" // string | (optional) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + permission := true // bool | (optional) + policyId := "policyId_example" // string | (optional) + resource := "resource_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet(context.Background(), realm, clientUuid).Fields(fields).First(first).Max(max).Name(name).Owner(owner).Permission(permission).PolicyId(policyId).Resource(resource).Scope(scope).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet`: []AbstractPolicyRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **string** | | + **first** | **int32** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **permission** | **bool** | | + **policyId** | **string** | | + **resource** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + +### Return type + +[**[]AbstractPolicyRepresentation**](AbstractPolicyRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost(ctx, realm, clientUuid).Body(body).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + body := "body_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost(context.Background(), realm, clientUuid).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet + +> []PolicyProviderRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet(ctx, realm, clientUuid).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet`: []PolicyProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]PolicyProviderRepresentation**](PolicyProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet + +> AbstractPolicyRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet(ctx, realm, clientUuid).Fields(fields).Name(name).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + fields := "fields_example" // string | (optional) + name := "name_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet(context.Background(), realm, clientUuid).Fields(fields).Name(name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet`: AbstractPolicyRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **string** | | + **name** | **string** | | + +### Return type + +[**AbstractPolicyRepresentation**](AbstractPolicyRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost + +> PolicyEvaluationResponse AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost(ctx, realm, clientUuid).PolicyEvaluationRequest(policyEvaluationRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + policyEvaluationRequest := *openapiclient.NewPolicyEvaluationRequest() // PolicyEvaluationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost(context.Background(), realm, clientUuid).PolicyEvaluationRequest(policyEvaluationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost`: PolicyEvaluationResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **policyEvaluationRequest** | [**PolicyEvaluationRequest**](PolicyEvaluationRequest.md) | | + +### Return type + +[**PolicyEvaluationResponse**](PolicyEvaluationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet + +> []AbstractPolicyRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet(ctx, realm, clientUuid).Fields(fields).First(first).Max(max).Name(name).Owner(owner).Permission(permission).PolicyId(policyId).Resource(resource).Scope(scope).Type_(type_).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + fields := "fields_example" // string | (optional) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + permission := true // bool | (optional) + policyId := "policyId_example" // string | (optional) + resource := "resource_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet(context.Background(), realm, clientUuid).Fields(fields).First(first).Max(max).Name(name).Owner(owner).Permission(permission).PolicyId(policyId).Resource(resource).Scope(scope).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet`: []AbstractPolicyRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **string** | | + **first** | **int32** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **permission** | **bool** | | + **policyId** | **string** | | + **resource** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + +### Return type + +[**[]AbstractPolicyRepresentation**](AbstractPolicyRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost(ctx, realm, clientUuid).Body(body).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + body := "body_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost(context.Background(), realm, clientUuid).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet + +> []PolicyProviderRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet(ctx, realm, clientUuid).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet`: []PolicyProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]PolicyProviderRepresentation**](PolicyProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet + +> AbstractPolicyRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet(ctx, realm, clientUuid).Fields(fields).Name(name).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + fields := "fields_example" // string | (optional) + name := "name_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet(context.Background(), realm, clientUuid).Fields(fields).Name(name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet`: AbstractPolicyRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **string** | | + **name** | **string** | | + +### Return type + +[**AbstractPolicyRepresentation**](AbstractPolicyRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerPut + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerPut(ctx, realm, clientUuid).ResourceServerRepresentation(resourceServerRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceServerRepresentation := *openapiclient.NewResourceServerRepresentation() // ResourceServerRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPut(context.Background(), realm, clientUuid).ResourceServerRepresentation(resourceServerRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **resourceServerRepresentation** | [**ResourceServerRepresentation**](ResourceServerRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet + +> []ResourceRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet(ctx, realm, clientUuid).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet(context.Background(), realm, clientUuid).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet`: []ResourceRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + +### Return type + +[**[]ResourceRepresentation**](ResourceRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost + +> ResourceRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost(ctx, realm, clientUuid).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).ResourceRepresentation(resourceRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + resourceRepresentation := *openapiclient.NewResourceRepresentation() // ResourceRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost(context.Background(), realm, clientUuid).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).ResourceRepresentation(resourceRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost`: ResourceRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + **resourceRepresentation** | [**ResourceRepresentation**](ResourceRepresentation.md) | | + +### Return type + +[**ResourceRepresentation**](ResourceRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet(ctx, realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceId := "resourceId_example" // string | + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet(context.Background(), realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**resourceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete(ctx, realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceId := "resourceId_example" // string | + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete(context.Background(), realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**resourceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet + +> ResourceRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet(ctx, realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceId := "resourceId_example" // string | + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet(context.Background(), realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet`: ResourceRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**resourceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + +### Return type + +[**ResourceRepresentation**](ResourceRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet + +> []PolicyRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet(ctx, realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceId := "resourceId_example" // string | + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet(context.Background(), realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet`: []PolicyRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**resourceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + +### Return type + +[**[]PolicyRepresentation**](PolicyRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut(ctx, realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).ResourceRepresentation(resourceRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceId := "resourceId_example" // string | + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + resourceRepresentation := *openapiclient.NewResourceRepresentation() // ResourceRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut(context.Background(), realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).ResourceRepresentation(resourceRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**resourceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + **resourceRepresentation** | [**ResourceRepresentation**](ResourceRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet + +> []ScopeRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet(ctx, realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + resourceId := "resourceId_example" // string | + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet(context.Background(), realm, clientUuid, resourceId).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Name(name).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet`: []ScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**resourceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **name** | **string** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + +### Return type + +[**[]ScopeRepresentation**](ScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet + +> ResourceRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet(ctx, realm, clientUuid).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Name(name).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + id := "id_example" // string | (optional) + deep := true // bool | (optional) + exactName := true // bool | (optional) + first := int32(56) // int32 | (optional) + matchingUri := true // bool | (optional) + max := int32(56) // int32 | (optional) + owner := "owner_example" // string | (optional) + scope := "scope_example" // string | (optional) + type_ := "type__example" // string | (optional) + uri := "uri_example" // string | (optional) + name := "name_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet(context.Background(), realm, clientUuid).Id(id).Deep(deep).ExactName(exactName).First(first).MatchingUri(matchingUri).Max(max).Owner(owner).Scope(scope).Type_(type_).Uri(uri).Name(name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet`: ResourceRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **id** | **string** | | + **deep** | **bool** | | + **exactName** | **bool** | | + **first** | **int32** | | + **matchingUri** | **bool** | | + **max** | **int32** | | + **owner** | **string** | | + **scope** | **string** | | + **type_** | **string** | | + **uri** | **string** | | + **name** | **string** | | + +### Return type + +[**ResourceRepresentation**](ResourceRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet + +> []ScopeRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet(ctx, realm, clientUuid).First(first).Max(max).Name(name).ScopeId(scopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + scopeId := "scopeId_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet(context.Background(), realm, clientUuid).First(first).Max(max).Name(name).ScopeId(scopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet`: []ScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **first** | **int32** | | + **max** | **int32** | | + **name** | **string** | | + **scopeId** | **string** | | + +### Return type + +[**[]ScopeRepresentation**](ScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost(ctx, realm, clientUuid).ScopeRepresentation(scopeRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scopeRepresentation := *openapiclient.NewScopeRepresentation() // ScopeRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost(context.Background(), realm, clientUuid).ScopeRepresentation(scopeRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **scopeRepresentation** | [**ScopeRepresentation**](ScopeRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete(ctx, realm, clientUuid, scopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scopeId := "scopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete(context.Background(), realm, clientUuid, scopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**scopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet + +> ScopeRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet(ctx, realm, clientUuid, scopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scopeId := "scopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet(context.Background(), realm, clientUuid, scopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet`: ScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**scopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**ScopeRepresentation**](ScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet + +> []PolicyRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet(ctx, realm, clientUuid, scopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scopeId := "scopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet(context.Background(), realm, clientUuid, scopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet`: []PolicyRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**scopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]PolicyRepresentation**](PolicyRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut + +> AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut(ctx, realm, clientUuid, scopeId).ScopeRepresentation(scopeRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scopeId := "scopeId_example" // string | + scopeRepresentation := *openapiclient.NewScopeRepresentation() // ScopeRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut(context.Background(), realm, clientUuid, scopeId).ScopeRepresentation(scopeRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**scopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **scopeRepresentation** | [**ScopeRepresentation**](ScopeRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet + +> []ResourceRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet(ctx, realm, clientUuid, scopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + scopeId := "scopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet(context.Background(), realm, clientUuid, scopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet`: []ResourceRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**scopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]ResourceRepresentation**](ResourceRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet + +> []ScopeRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet(ctx, realm, clientUuid).Name(name).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + name := "name_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet(context.Background(), realm, clientUuid).Name(name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet`: []ScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **name** | **string** | | + +### Return type + +[**[]ScopeRepresentation**](ScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet + +> ResourceServerRepresentation AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet(ctx, realm, clientUuid).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet`: ResourceServerRepresentation + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ResourceServerRepresentation**](ResourceServerRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/EnforcementMode.md b/docs/EnforcementMode.md new file mode 100644 index 0000000..6d1b390 --- /dev/null +++ b/docs/EnforcementMode.md @@ -0,0 +1,15 @@ +# EnforcementMode + +## Enum + + +* `PERMISSIVE` (value: `"PERMISSIVE"`) + +* `ENFORCING` (value: `"ENFORCING"`) + +* `DISABLED` (value: `"DISABLED"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EvaluationResultRepresentation.md b/docs/EvaluationResultRepresentation.md new file mode 100644 index 0000000..d7aaefc --- /dev/null +++ b/docs/EvaluationResultRepresentation.md @@ -0,0 +1,160 @@ +# EvaluationResultRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resource** | Pointer to [**ResourceRepresentation**](ResourceRepresentation.md) | | [optional] +**Scopes** | Pointer to [**[]ScopeRepresentation**](ScopeRepresentation.md) | | [optional] +**Policies** | Pointer to [**[]PolicyResultRepresentation**](PolicyResultRepresentation.md) | | [optional] +**Status** | Pointer to [**DecisionEffect**](DecisionEffect.md) | | [optional] +**AllowedScopes** | Pointer to [**[]ScopeRepresentation**](ScopeRepresentation.md) | | [optional] + +## Methods + +### NewEvaluationResultRepresentation + +`func NewEvaluationResultRepresentation() *EvaluationResultRepresentation` + +NewEvaluationResultRepresentation instantiates a new EvaluationResultRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEvaluationResultRepresentationWithDefaults + +`func NewEvaluationResultRepresentationWithDefaults() *EvaluationResultRepresentation` + +NewEvaluationResultRepresentationWithDefaults instantiates a new EvaluationResultRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResource + +`func (o *EvaluationResultRepresentation) GetResource() ResourceRepresentation` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *EvaluationResultRepresentation) GetResourceOk() (*ResourceRepresentation, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *EvaluationResultRepresentation) SetResource(v ResourceRepresentation)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *EvaluationResultRepresentation) HasResource() bool` + +HasResource returns a boolean if a field has been set. + +### GetScopes + +`func (o *EvaluationResultRepresentation) GetScopes() []ScopeRepresentation` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *EvaluationResultRepresentation) GetScopesOk() (*[]ScopeRepresentation, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *EvaluationResultRepresentation) SetScopes(v []ScopeRepresentation)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *EvaluationResultRepresentation) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetPolicies + +`func (o *EvaluationResultRepresentation) GetPolicies() []PolicyResultRepresentation` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *EvaluationResultRepresentation) GetPoliciesOk() (*[]PolicyResultRepresentation, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *EvaluationResultRepresentation) SetPolicies(v []PolicyResultRepresentation)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *EvaluationResultRepresentation) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + +### GetStatus + +`func (o *EvaluationResultRepresentation) GetStatus() DecisionEffect` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *EvaluationResultRepresentation) GetStatusOk() (*DecisionEffect, 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 *EvaluationResultRepresentation) SetStatus(v DecisionEffect)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *EvaluationResultRepresentation) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAllowedScopes + +`func (o *EvaluationResultRepresentation) GetAllowedScopes() []ScopeRepresentation` + +GetAllowedScopes returns the AllowedScopes field if non-nil, zero value otherwise. + +### GetAllowedScopesOk + +`func (o *EvaluationResultRepresentation) GetAllowedScopesOk() (*[]ScopeRepresentation, bool)` + +GetAllowedScopesOk returns a tuple with the AllowedScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedScopes + +`func (o *EvaluationResultRepresentation) SetAllowedScopes(v []ScopeRepresentation)` + +SetAllowedScopes sets AllowedScopes field to given value. + +### HasAllowedScopes + +`func (o *EvaluationResultRepresentation) HasAllowedScopes() bool` + +HasAllowedScopes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventRepresentation.md b/docs/EventRepresentation.md new file mode 100644 index 0000000..60af393 --- /dev/null +++ b/docs/EventRepresentation.md @@ -0,0 +1,264 @@ +# EventRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Time** | Pointer to **int64** | | [optional] +**Type** | Pointer to **string** | | [optional] +**RealmId** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**UserId** | Pointer to **string** | | [optional] +**SessionId** | Pointer to **string** | | [optional] +**IpAddress** | Pointer to **string** | | [optional] +**Error** | Pointer to **string** | | [optional] +**Details** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewEventRepresentation + +`func NewEventRepresentation() *EventRepresentation` + +NewEventRepresentation instantiates a new EventRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventRepresentationWithDefaults + +`func NewEventRepresentationWithDefaults() *EventRepresentation` + +NewEventRepresentationWithDefaults instantiates a new EventRepresentation object +This 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 *EventRepresentation) GetTime() int64` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *EventRepresentation) GetTimeOk() (*int64, 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 *EventRepresentation) SetTime(v int64)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *EventRepresentation) HasTime() bool` + +HasTime returns a boolean if a field has been set. + +### GetType + +`func (o *EventRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *EventRepresentation) 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 *EventRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *EventRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetRealmId + +`func (o *EventRepresentation) GetRealmId() string` + +GetRealmId returns the RealmId field if non-nil, zero value otherwise. + +### GetRealmIdOk + +`func (o *EventRepresentation) GetRealmIdOk() (*string, bool)` + +GetRealmIdOk returns a tuple with the RealmId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmId + +`func (o *EventRepresentation) SetRealmId(v string)` + +SetRealmId sets RealmId field to given value. + +### HasRealmId + +`func (o *EventRepresentation) HasRealmId() bool` + +HasRealmId returns a boolean if a field has been set. + +### GetClientId + +`func (o *EventRepresentation) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *EventRepresentation) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *EventRepresentation) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *EventRepresentation) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetUserId + +`func (o *EventRepresentation) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *EventRepresentation) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *EventRepresentation) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *EventRepresentation) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetSessionId + +`func (o *EventRepresentation) GetSessionId() string` + +GetSessionId returns the SessionId field if non-nil, zero value otherwise. + +### GetSessionIdOk + +`func (o *EventRepresentation) GetSessionIdOk() (*string, bool)` + +GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionId + +`func (o *EventRepresentation) SetSessionId(v string)` + +SetSessionId sets SessionId field to given value. + +### HasSessionId + +`func (o *EventRepresentation) HasSessionId() bool` + +HasSessionId returns a boolean if a field has been set. + +### GetIpAddress + +`func (o *EventRepresentation) GetIpAddress() string` + +GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. + +### GetIpAddressOk + +`func (o *EventRepresentation) 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 *EventRepresentation) SetIpAddress(v string)` + +SetIpAddress sets IpAddress field to given value. + +### HasIpAddress + +`func (o *EventRepresentation) HasIpAddress() bool` + +HasIpAddress returns a boolean if a field has been set. + +### GetError + +`func (o *EventRepresentation) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *EventRepresentation) 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 *EventRepresentation) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *EventRepresentation) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetDetails + +`func (o *EventRepresentation) GetDetails() map[string]string` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *EventRepresentation) GetDetailsOk() (*map[string]string, 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 *EventRepresentation) SetDetails(v map[string]string)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *EventRepresentation) 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/docs/FederatedIdentityRepresentation.md b/docs/FederatedIdentityRepresentation.md new file mode 100644 index 0000000..16e68bf --- /dev/null +++ b/docs/FederatedIdentityRepresentation.md @@ -0,0 +1,108 @@ +# FederatedIdentityRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IdentityProvider** | Pointer to **string** | | [optional] +**UserId** | Pointer to **string** | | [optional] +**UserName** | Pointer to **string** | | [optional] + +## Methods + +### NewFederatedIdentityRepresentation + +`func NewFederatedIdentityRepresentation() *FederatedIdentityRepresentation` + +NewFederatedIdentityRepresentation instantiates a new FederatedIdentityRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFederatedIdentityRepresentationWithDefaults + +`func NewFederatedIdentityRepresentationWithDefaults() *FederatedIdentityRepresentation` + +NewFederatedIdentityRepresentationWithDefaults instantiates a new FederatedIdentityRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentityProvider + +`func (o *FederatedIdentityRepresentation) GetIdentityProvider() string` + +GetIdentityProvider returns the IdentityProvider field if non-nil, zero value otherwise. + +### GetIdentityProviderOk + +`func (o *FederatedIdentityRepresentation) GetIdentityProviderOk() (*string, bool)` + +GetIdentityProviderOk returns a tuple with the IdentityProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityProvider + +`func (o *FederatedIdentityRepresentation) SetIdentityProvider(v string)` + +SetIdentityProvider sets IdentityProvider field to given value. + +### HasIdentityProvider + +`func (o *FederatedIdentityRepresentation) HasIdentityProvider() bool` + +HasIdentityProvider returns a boolean if a field has been set. + +### GetUserId + +`func (o *FederatedIdentityRepresentation) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *FederatedIdentityRepresentation) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *FederatedIdentityRepresentation) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *FederatedIdentityRepresentation) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetUserName + +`func (o *FederatedIdentityRepresentation) GetUserName() string` + +GetUserName returns the UserName field if non-nil, zero value otherwise. + +### GetUserNameOk + +`func (o *FederatedIdentityRepresentation) 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 *FederatedIdentityRepresentation) SetUserName(v string)` + +SetUserName sets UserName field to given value. + +### HasUserName + +`func (o *FederatedIdentityRepresentation) HasUserName() bool` + +HasUserName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GlobalRequestResult.md b/docs/GlobalRequestResult.md new file mode 100644 index 0000000..7548456 --- /dev/null +++ b/docs/GlobalRequestResult.md @@ -0,0 +1,82 @@ +# GlobalRequestResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SuccessRequests** | Pointer to **[]string** | | [optional] +**FailedRequests** | Pointer to **[]string** | | [optional] + +## Methods + +### NewGlobalRequestResult + +`func NewGlobalRequestResult() *GlobalRequestResult` + +NewGlobalRequestResult instantiates a new GlobalRequestResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGlobalRequestResultWithDefaults + +`func NewGlobalRequestResultWithDefaults() *GlobalRequestResult` + +NewGlobalRequestResultWithDefaults instantiates a new GlobalRequestResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccessRequests + +`func (o *GlobalRequestResult) GetSuccessRequests() []string` + +GetSuccessRequests returns the SuccessRequests field if non-nil, zero value otherwise. + +### GetSuccessRequestsOk + +`func (o *GlobalRequestResult) GetSuccessRequestsOk() (*[]string, bool)` + +GetSuccessRequestsOk returns a tuple with the SuccessRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccessRequests + +`func (o *GlobalRequestResult) SetSuccessRequests(v []string)` + +SetSuccessRequests sets SuccessRequests field to given value. + +### HasSuccessRequests + +`func (o *GlobalRequestResult) HasSuccessRequests() bool` + +HasSuccessRequests returns a boolean if a field has been set. + +### GetFailedRequests + +`func (o *GlobalRequestResult) GetFailedRequests() []string` + +GetFailedRequests returns the FailedRequests field if non-nil, zero value otherwise. + +### GetFailedRequestsOk + +`func (o *GlobalRequestResult) GetFailedRequestsOk() (*[]string, bool)` + +GetFailedRequestsOk returns a tuple with the FailedRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedRequests + +`func (o *GlobalRequestResult) SetFailedRequests(v []string)` + +SetFailedRequests sets FailedRequests field to given value. + +### HasFailedRequests + +`func (o *GlobalRequestResult) HasFailedRequests() bool` + +HasFailedRequests returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupRepresentation.md b/docs/GroupRepresentation.md new file mode 100644 index 0000000..0ccf423 --- /dev/null +++ b/docs/GroupRepresentation.md @@ -0,0 +1,290 @@ +# GroupRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Path** | Pointer to **string** | | [optional] +**ParentId** | Pointer to **string** | | [optional] +**SubGroupCount** | Pointer to **int64** | | [optional] +**SubGroups** | Pointer to [**[]GroupRepresentation**](GroupRepresentation.md) | | [optional] +**Attributes** | Pointer to **map[string][]string** | | [optional] +**RealmRoles** | Pointer to **[]string** | | [optional] +**ClientRoles** | Pointer to **map[string][]string** | | [optional] +**Access** | Pointer to **map[string]bool** | | [optional] + +## Methods + +### NewGroupRepresentation + +`func NewGroupRepresentation() *GroupRepresentation` + +NewGroupRepresentation instantiates a new GroupRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGroupRepresentationWithDefaults + +`func NewGroupRepresentationWithDefaults() *GroupRepresentation` + +NewGroupRepresentationWithDefaults instantiates a new GroupRepresentation object +This 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 *GroupRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GroupRepresentation) 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 *GroupRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *GroupRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *GroupRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GroupRepresentation) 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 *GroupRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GroupRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPath + +`func (o *GroupRepresentation) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *GroupRepresentation) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *GroupRepresentation) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *GroupRepresentation) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetParentId + +`func (o *GroupRepresentation) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *GroupRepresentation) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentId + +`func (o *GroupRepresentation) SetParentId(v string)` + +SetParentId sets ParentId field to given value. + +### HasParentId + +`func (o *GroupRepresentation) HasParentId() bool` + +HasParentId returns a boolean if a field has been set. + +### GetSubGroupCount + +`func (o *GroupRepresentation) GetSubGroupCount() int64` + +GetSubGroupCount returns the SubGroupCount field if non-nil, zero value otherwise. + +### GetSubGroupCountOk + +`func (o *GroupRepresentation) GetSubGroupCountOk() (*int64, bool)` + +GetSubGroupCountOk returns a tuple with the SubGroupCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubGroupCount + +`func (o *GroupRepresentation) SetSubGroupCount(v int64)` + +SetSubGroupCount sets SubGroupCount field to given value. + +### HasSubGroupCount + +`func (o *GroupRepresentation) HasSubGroupCount() bool` + +HasSubGroupCount returns a boolean if a field has been set. + +### GetSubGroups + +`func (o *GroupRepresentation) GetSubGroups() []GroupRepresentation` + +GetSubGroups returns the SubGroups field if non-nil, zero value otherwise. + +### GetSubGroupsOk + +`func (o *GroupRepresentation) GetSubGroupsOk() (*[]GroupRepresentation, bool)` + +GetSubGroupsOk returns a tuple with the SubGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubGroups + +`func (o *GroupRepresentation) SetSubGroups(v []GroupRepresentation)` + +SetSubGroups sets SubGroups field to given value. + +### HasSubGroups + +`func (o *GroupRepresentation) HasSubGroups() bool` + +HasSubGroups returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GroupRepresentation) GetAttributes() map[string][]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GroupRepresentation) GetAttributesOk() (*map[string][]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GroupRepresentation) SetAttributes(v map[string][]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GroupRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRealmRoles + +`func (o *GroupRepresentation) GetRealmRoles() []string` + +GetRealmRoles returns the RealmRoles field if non-nil, zero value otherwise. + +### GetRealmRolesOk + +`func (o *GroupRepresentation) GetRealmRolesOk() (*[]string, bool)` + +GetRealmRolesOk returns a tuple with the RealmRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmRoles + +`func (o *GroupRepresentation) SetRealmRoles(v []string)` + +SetRealmRoles sets RealmRoles field to given value. + +### HasRealmRoles + +`func (o *GroupRepresentation) HasRealmRoles() bool` + +HasRealmRoles returns a boolean if a field has been set. + +### GetClientRoles + +`func (o *GroupRepresentation) GetClientRoles() map[string][]string` + +GetClientRoles returns the ClientRoles field if non-nil, zero value otherwise. + +### GetClientRolesOk + +`func (o *GroupRepresentation) GetClientRolesOk() (*map[string][]string, bool)` + +GetClientRolesOk returns a tuple with the ClientRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientRoles + +`func (o *GroupRepresentation) SetClientRoles(v map[string][]string)` + +SetClientRoles sets ClientRoles field to given value. + +### HasClientRoles + +`func (o *GroupRepresentation) HasClientRoles() bool` + +HasClientRoles returns a boolean if a field has been set. + +### GetAccess + +`func (o *GroupRepresentation) GetAccess() map[string]bool` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *GroupRepresentation) GetAccessOk() (*map[string]bool, 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 *GroupRepresentation) SetAccess(v map[string]bool)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *GroupRepresentation) 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/docs/GroupsAPI.md b/docs/GroupsAPI.md new file mode 100644 index 0000000..2fc6f6a --- /dev/null +++ b/docs/GroupsAPI.md @@ -0,0 +1,829 @@ +# \GroupsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmGroupsCountGet**](GroupsAPI.md#AdminRealmsRealmGroupsCountGet) | **Get** /admin/realms/{realm}/groups/count | Returns the groups counts. +[**AdminRealmsRealmGroupsGet**](GroupsAPI.md#AdminRealmsRealmGroupsGet) | **Get** /admin/realms/{realm}/groups | Get group hierarchy. Only name and ids are returned. +[**AdminRealmsRealmGroupsGroupIdChildrenGet**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdChildrenGet) | **Get** /admin/realms/{realm}/groups/{group-id}/children | Return a paginated list of subgroups that have a parent group corresponding to the group on the URL +[**AdminRealmsRealmGroupsGroupIdChildrenPost**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdChildrenPost) | **Post** /admin/realms/{realm}/groups/{group-id}/children | Set or create child. +[**AdminRealmsRealmGroupsGroupIdDelete**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdDelete) | **Delete** /admin/realms/{realm}/groups/{group-id} | +[**AdminRealmsRealmGroupsGroupIdGet**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdGet) | **Get** /admin/realms/{realm}/groups/{group-id} | +[**AdminRealmsRealmGroupsGroupIdManagementPermissionsGet**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdManagementPermissionsGet) | **Get** /admin/realms/{realm}/groups/{group-id}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmGroupsGroupIdManagementPermissionsPut**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdManagementPermissionsPut) | **Put** /admin/realms/{realm}/groups/{group-id}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmGroupsGroupIdMembersGet**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdMembersGet) | **Get** /admin/realms/{realm}/groups/{group-id}/members | Get users Returns a stream of users, filtered according to query parameters +[**AdminRealmsRealmGroupsGroupIdPut**](GroupsAPI.md#AdminRealmsRealmGroupsGroupIdPut) | **Put** /admin/realms/{realm}/groups/{group-id} | Update group, ignores subgroups. +[**AdminRealmsRealmGroupsPost**](GroupsAPI.md#AdminRealmsRealmGroupsPost) | **Post** /admin/realms/{realm}/groups | create or add a top level realm groupSet or create child. + + + +## AdminRealmsRealmGroupsCountGet + +> map[string]int64 AdminRealmsRealmGroupsCountGet(ctx, realm).Search(search).Top(top).Execute() + +Returns the groups counts. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + search := "search_example" // string | (optional) + top := true // bool | (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsCountGet(context.Background(), realm).Search(search).Top(top).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsCountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsCountGet`: map[string]int64 + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.AdminRealmsRealmGroupsCountGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsCountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **search** | **string** | | + **top** | **bool** | | [default to false] + +### Return type + +**map[string]int64** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGet + +> []GroupRepresentation AdminRealmsRealmGroupsGet(ctx, realm).BriefRepresentation(briefRepresentation).Exact(exact).First(first).Max(max).PopulateHierarchy(populateHierarchy).Q(q).Search(search).Execute() + +Get group hierarchy. Only name and ids are returned. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + briefRepresentation := true // bool | (optional) (default to true) + exact := true // bool | (optional) (default to false) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + populateHierarchy := true // bool | (optional) (default to true) + q := "q_example" // string | (optional) + search := "search_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGet(context.Background(), realm).BriefRepresentation(briefRepresentation).Exact(exact).First(first).Max(max).PopulateHierarchy(populateHierarchy).Q(q).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGet`: []GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.AdminRealmsRealmGroupsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **briefRepresentation** | **bool** | | [default to true] + **exact** | **bool** | | [default to false] + **first** | **int32** | | + **max** | **int32** | | + **populateHierarchy** | **bool** | | [default to true] + **q** | **string** | | + **search** | **string** | | + +### Return type + +[**[]GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdChildrenGet + +> []GroupRepresentation AdminRealmsRealmGroupsGroupIdChildrenGet(ctx, realm, groupId).BriefRepresentation(briefRepresentation).Exact(exact).First(first).Max(max).Search(search).Execute() + +Return a paginated list of subgroups that have a parent group corresponding to the group on the URL + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + briefRepresentation := true // bool | Boolean which defines whether brief groups representations are returned or not (default: false) (optional) (default to false) + exact := true // bool | Boolean which defines whether the params \"search\" must match exactly or not (optional) + first := int32(56) // int32 | The position of the first result to be returned (pagination offset). (optional) + max := int32(56) // int32 | The maximum number of results that are to be returned. Defaults to 10 (optional) + search := "search_example" // string | A String representing either an exact group name or a partial name (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdChildrenGet(context.Background(), realm, groupId).BriefRepresentation(briefRepresentation).Exact(exact).First(first).Max(max).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdChildrenGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdChildrenGet`: []GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.AdminRealmsRealmGroupsGroupIdChildrenGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdChildrenGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | Boolean which defines whether brief groups representations are returned or not (default: false) | [default to false] + **exact** | **bool** | Boolean which defines whether the params \"search\" must match exactly or not | + **first** | **int32** | The position of the first result to be returned (pagination offset). | + **max** | **int32** | The maximum number of results that are to be returned. Defaults to 10 | + **search** | **string** | A String representing either an exact group name or a partial name | + +### Return type + +[**[]GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdChildrenPost + +> AdminRealmsRealmGroupsGroupIdChildrenPost(ctx, realm, groupId).GroupRepresentation(groupRepresentation).Execute() + +Set or create child. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + groupRepresentation := *openapiclient.NewGroupRepresentation() // GroupRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdChildrenPost(context.Background(), realm, groupId).GroupRepresentation(groupRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdChildrenPost``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdChildrenPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **groupRepresentation** | [**GroupRepresentation**](GroupRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmGroupsGroupIdDelete + +> AdminRealmsRealmGroupsGroupIdDelete(ctx, realm, groupId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdDelete(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmGroupsGroupIdGet + +> GroupRepresentation AdminRealmsRealmGroupsGroupIdGet(ctx, realm, groupId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdGet(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdGet`: GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.AdminRealmsRealmGroupsGroupIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdManagementPermissionsGet + +> ManagementPermissionReference AdminRealmsRealmGroupsGroupIdManagementPermissionsGet(ctx, realm, groupId).Execute() + +Return object stating whether client Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsGet(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdManagementPermissionsGet`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdManagementPermissionsPut + +> ManagementPermissionReference AdminRealmsRealmGroupsGroupIdManagementPermissionsPut(ctx, realm, groupId).ManagementPermissionReference(managementPermissionReference).Execute() + +Return object stating whether client Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsPut(context.Background(), realm, groupId).ManagementPermissionReference(managementPermissionReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdManagementPermissionsPut`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **managementPermissionReference** | [**ManagementPermissionReference**](ManagementPermissionReference.md) | | + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdMembersGet + +> []UserRepresentation AdminRealmsRealmGroupsGroupIdMembersGet(ctx, realm, groupId).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + +Get users Returns a stream of users, filtered according to query parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + briefRepresentation := true // bool | Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) (optional) + first := int32(56) // int32 | Pagination offset (optional) + max := int32(56) // int32 | Maximum results size (defaults to 100) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdMembersGet(context.Background(), realm, groupId).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdMembersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdMembersGet`: []UserRepresentation + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.AdminRealmsRealmGroupsGroupIdMembersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdMembersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) | + **first** | **int32** | Pagination offset | + **max** | **int32** | Maximum results size (defaults to 100) | + +### Return type + +[**[]UserRepresentation**](UserRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdPut + +> AdminRealmsRealmGroupsGroupIdPut(ctx, realm, groupId).GroupRepresentation(groupRepresentation).Execute() + +Update group, ignores subgroups. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + groupRepresentation := *openapiclient.NewGroupRepresentation() // GroupRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdPut(context.Background(), realm, groupId).GroupRepresentation(groupRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsGroupIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **groupRepresentation** | [**GroupRepresentation**](GroupRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmGroupsPost + +> AdminRealmsRealmGroupsPost(ctx, realm).GroupRepresentation(groupRepresentation).Execute() + +create or add a top level realm groupSet or create child. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupRepresentation := *openapiclient.NewGroupRepresentation() // GroupRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsPost(context.Background(), realm).GroupRepresentation(groupRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.AdminRealmsRealmGroupsPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **groupRepresentation** | [**GroupRepresentation**](GroupRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/IDToken.md b/docs/IDToken.md new file mode 100644 index 0000000..43968a1 --- /dev/null +++ b/docs/IDToken.md @@ -0,0 +1,966 @@ +# IDToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jti** | Pointer to **string** | | [optional] +**Exp** | Pointer to **int64** | | [optional] +**Nbf** | Pointer to **int64** | | [optional] +**Iat** | Pointer to **int64** | | [optional] +**Iss** | Pointer to **string** | | [optional] +**Sub** | Pointer to **string** | | [optional] +**Typ** | Pointer to **string** | | [optional] +**Azp** | Pointer to **string** | | [optional] +**OtherClaims** | Pointer to **map[string]interface{}** | | [optional] +**Nonce** | Pointer to **string** | | [optional] +**AuthTime** | Pointer to **int64** | | [optional] +**Sid** | Pointer to **string** | | [optional] +**AtHash** | Pointer to **string** | | [optional] +**CHash** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**GivenName** | Pointer to **string** | | [optional] +**FamilyName** | Pointer to **string** | | [optional] +**MiddleName** | Pointer to **string** | | [optional] +**Nickname** | Pointer to **string** | | [optional] +**PreferredUsername** | Pointer to **string** | | [optional] +**Profile** | Pointer to **string** | | [optional] +**Picture** | Pointer to **string** | | [optional] +**Website** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**EmailVerified** | Pointer to **bool** | | [optional] +**Gender** | Pointer to **string** | | [optional] +**Birthdate** | Pointer to **string** | | [optional] +**Zoneinfo** | Pointer to **string** | | [optional] +**Locale** | Pointer to **string** | | [optional] +**PhoneNumber** | Pointer to **string** | | [optional] +**PhoneNumberVerified** | Pointer to **bool** | | [optional] +**Address** | Pointer to [**AddressClaimSet**](AddressClaimSet.md) | | [optional] +**UpdatedAt** | Pointer to **int64** | | [optional] +**ClaimsLocales** | Pointer to **string** | | [optional] +**Acr** | Pointer to **string** | | [optional] +**SHash** | Pointer to **string** | | [optional] + +## Methods + +### NewIDToken + +`func NewIDToken() *IDToken` + +NewIDToken instantiates a new IDToken object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIDTokenWithDefaults + +`func NewIDTokenWithDefaults() *IDToken` + +NewIDTokenWithDefaults instantiates a new IDToken object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJti + +`func (o *IDToken) GetJti() string` + +GetJti returns the Jti field if non-nil, zero value otherwise. + +### GetJtiOk + +`func (o *IDToken) GetJtiOk() (*string, bool)` + +GetJtiOk returns a tuple with the Jti field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJti + +`func (o *IDToken) SetJti(v string)` + +SetJti sets Jti field to given value. + +### HasJti + +`func (o *IDToken) HasJti() bool` + +HasJti returns a boolean if a field has been set. + +### GetExp + +`func (o *IDToken) GetExp() int64` + +GetExp returns the Exp field if non-nil, zero value otherwise. + +### GetExpOk + +`func (o *IDToken) GetExpOk() (*int64, bool)` + +GetExpOk returns a tuple with the Exp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExp + +`func (o *IDToken) SetExp(v int64)` + +SetExp sets Exp field to given value. + +### HasExp + +`func (o *IDToken) HasExp() bool` + +HasExp returns a boolean if a field has been set. + +### GetNbf + +`func (o *IDToken) GetNbf() int64` + +GetNbf returns the Nbf field if non-nil, zero value otherwise. + +### GetNbfOk + +`func (o *IDToken) GetNbfOk() (*int64, bool)` + +GetNbfOk returns a tuple with the Nbf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNbf + +`func (o *IDToken) SetNbf(v int64)` + +SetNbf sets Nbf field to given value. + +### HasNbf + +`func (o *IDToken) HasNbf() bool` + +HasNbf returns a boolean if a field has been set. + +### GetIat + +`func (o *IDToken) GetIat() int64` + +GetIat returns the Iat field if non-nil, zero value otherwise. + +### GetIatOk + +`func (o *IDToken) GetIatOk() (*int64, bool)` + +GetIatOk returns a tuple with the Iat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIat + +`func (o *IDToken) SetIat(v int64)` + +SetIat sets Iat field to given value. + +### HasIat + +`func (o *IDToken) HasIat() bool` + +HasIat returns a boolean if a field has been set. + +### GetIss + +`func (o *IDToken) GetIss() string` + +GetIss returns the Iss field if non-nil, zero value otherwise. + +### GetIssOk + +`func (o *IDToken) GetIssOk() (*string, bool)` + +GetIssOk returns a tuple with the Iss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIss + +`func (o *IDToken) SetIss(v string)` + +SetIss sets Iss field to given value. + +### HasIss + +`func (o *IDToken) HasIss() bool` + +HasIss returns a boolean if a field has been set. + +### GetSub + +`func (o *IDToken) GetSub() string` + +GetSub returns the Sub field if non-nil, zero value otherwise. + +### GetSubOk + +`func (o *IDToken) GetSubOk() (*string, bool)` + +GetSubOk returns a tuple with the Sub field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSub + +`func (o *IDToken) SetSub(v string)` + +SetSub sets Sub field to given value. + +### HasSub + +`func (o *IDToken) HasSub() bool` + +HasSub returns a boolean if a field has been set. + +### GetTyp + +`func (o *IDToken) GetTyp() string` + +GetTyp returns the Typ field if non-nil, zero value otherwise. + +### GetTypOk + +`func (o *IDToken) GetTypOk() (*string, bool)` + +GetTypOk returns a tuple with the Typ field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTyp + +`func (o *IDToken) SetTyp(v string)` + +SetTyp sets Typ field to given value. + +### HasTyp + +`func (o *IDToken) HasTyp() bool` + +HasTyp returns a boolean if a field has been set. + +### GetAzp + +`func (o *IDToken) GetAzp() string` + +GetAzp returns the Azp field if non-nil, zero value otherwise. + +### GetAzpOk + +`func (o *IDToken) GetAzpOk() (*string, bool)` + +GetAzpOk returns a tuple with the Azp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzp + +`func (o *IDToken) SetAzp(v string)` + +SetAzp sets Azp field to given value. + +### HasAzp + +`func (o *IDToken) HasAzp() bool` + +HasAzp returns a boolean if a field has been set. + +### GetOtherClaims + +`func (o *IDToken) GetOtherClaims() map[string]interface{}` + +GetOtherClaims returns the OtherClaims field if non-nil, zero value otherwise. + +### GetOtherClaimsOk + +`func (o *IDToken) GetOtherClaimsOk() (*map[string]interface{}, bool)` + +GetOtherClaimsOk returns a tuple with the OtherClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtherClaims + +`func (o *IDToken) SetOtherClaims(v map[string]interface{})` + +SetOtherClaims sets OtherClaims field to given value. + +### HasOtherClaims + +`func (o *IDToken) HasOtherClaims() bool` + +HasOtherClaims returns a boolean if a field has been set. + +### GetNonce + +`func (o *IDToken) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *IDToken) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *IDToken) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *IDToken) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetAuthTime + +`func (o *IDToken) GetAuthTime() int64` + +GetAuthTime returns the AuthTime field if non-nil, zero value otherwise. + +### GetAuthTimeOk + +`func (o *IDToken) GetAuthTimeOk() (*int64, bool)` + +GetAuthTimeOk returns a tuple with the AuthTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthTime + +`func (o *IDToken) SetAuthTime(v int64)` + +SetAuthTime sets AuthTime field to given value. + +### HasAuthTime + +`func (o *IDToken) HasAuthTime() bool` + +HasAuthTime returns a boolean if a field has been set. + +### GetSid + +`func (o *IDToken) GetSid() string` + +GetSid returns the Sid field if non-nil, zero value otherwise. + +### GetSidOk + +`func (o *IDToken) 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 *IDToken) SetSid(v string)` + +SetSid sets Sid field to given value. + +### HasSid + +`func (o *IDToken) HasSid() bool` + +HasSid returns a boolean if a field has been set. + +### GetAtHash + +`func (o *IDToken) GetAtHash() string` + +GetAtHash returns the AtHash field if non-nil, zero value otherwise. + +### GetAtHashOk + +`func (o *IDToken) GetAtHashOk() (*string, bool)` + +GetAtHashOk returns a tuple with the AtHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAtHash + +`func (o *IDToken) SetAtHash(v string)` + +SetAtHash sets AtHash field to given value. + +### HasAtHash + +`func (o *IDToken) HasAtHash() bool` + +HasAtHash returns a boolean if a field has been set. + +### GetCHash + +`func (o *IDToken) GetCHash() string` + +GetCHash returns the CHash field if non-nil, zero value otherwise. + +### GetCHashOk + +`func (o *IDToken) GetCHashOk() (*string, bool)` + +GetCHashOk returns a tuple with the CHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCHash + +`func (o *IDToken) SetCHash(v string)` + +SetCHash sets CHash field to given value. + +### HasCHash + +`func (o *IDToken) HasCHash() bool` + +HasCHash returns a boolean if a field has been set. + +### GetName + +`func (o *IDToken) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IDToken) 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 *IDToken) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IDToken) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetGivenName + +`func (o *IDToken) GetGivenName() string` + +GetGivenName returns the GivenName field if non-nil, zero value otherwise. + +### GetGivenNameOk + +`func (o *IDToken) GetGivenNameOk() (*string, bool)` + +GetGivenNameOk returns a tuple with the GivenName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGivenName + +`func (o *IDToken) SetGivenName(v string)` + +SetGivenName sets GivenName field to given value. + +### HasGivenName + +`func (o *IDToken) HasGivenName() bool` + +HasGivenName returns a boolean if a field has been set. + +### GetFamilyName + +`func (o *IDToken) GetFamilyName() string` + +GetFamilyName returns the FamilyName field if non-nil, zero value otherwise. + +### GetFamilyNameOk + +`func (o *IDToken) GetFamilyNameOk() (*string, bool)` + +GetFamilyNameOk returns a tuple with the FamilyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamilyName + +`func (o *IDToken) SetFamilyName(v string)` + +SetFamilyName sets FamilyName field to given value. + +### HasFamilyName + +`func (o *IDToken) HasFamilyName() bool` + +HasFamilyName returns a boolean if a field has been set. + +### GetMiddleName + +`func (o *IDToken) GetMiddleName() string` + +GetMiddleName returns the MiddleName field if non-nil, zero value otherwise. + +### GetMiddleNameOk + +`func (o *IDToken) GetMiddleNameOk() (*string, bool)` + +GetMiddleNameOk returns a tuple with the MiddleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiddleName + +`func (o *IDToken) SetMiddleName(v string)` + +SetMiddleName sets MiddleName field to given value. + +### HasMiddleName + +`func (o *IDToken) HasMiddleName() bool` + +HasMiddleName returns a boolean if a field has been set. + +### GetNickname + +`func (o *IDToken) GetNickname() string` + +GetNickname returns the Nickname field if non-nil, zero value otherwise. + +### GetNicknameOk + +`func (o *IDToken) GetNicknameOk() (*string, bool)` + +GetNicknameOk returns a tuple with the Nickname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNickname + +`func (o *IDToken) SetNickname(v string)` + +SetNickname sets Nickname field to given value. + +### HasNickname + +`func (o *IDToken) HasNickname() bool` + +HasNickname returns a boolean if a field has been set. + +### GetPreferredUsername + +`func (o *IDToken) GetPreferredUsername() string` + +GetPreferredUsername returns the PreferredUsername field if non-nil, zero value otherwise. + +### GetPreferredUsernameOk + +`func (o *IDToken) GetPreferredUsernameOk() (*string, bool)` + +GetPreferredUsernameOk returns a tuple with the PreferredUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredUsername + +`func (o *IDToken) SetPreferredUsername(v string)` + +SetPreferredUsername sets PreferredUsername field to given value. + +### HasPreferredUsername + +`func (o *IDToken) HasPreferredUsername() bool` + +HasPreferredUsername returns a boolean if a field has been set. + +### GetProfile + +`func (o *IDToken) GetProfile() string` + +GetProfile returns the Profile field if non-nil, zero value otherwise. + +### GetProfileOk + +`func (o *IDToken) GetProfileOk() (*string, bool)` + +GetProfileOk returns a tuple with the Profile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfile + +`func (o *IDToken) SetProfile(v string)` + +SetProfile sets Profile field to given value. + +### HasProfile + +`func (o *IDToken) HasProfile() bool` + +HasProfile returns a boolean if a field has been set. + +### GetPicture + +`func (o *IDToken) GetPicture() string` + +GetPicture returns the Picture field if non-nil, zero value otherwise. + +### GetPictureOk + +`func (o *IDToken) GetPictureOk() (*string, bool)` + +GetPictureOk returns a tuple with the Picture field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPicture + +`func (o *IDToken) SetPicture(v string)` + +SetPicture sets Picture field to given value. + +### HasPicture + +`func (o *IDToken) HasPicture() bool` + +HasPicture returns a boolean if a field has been set. + +### GetWebsite + +`func (o *IDToken) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *IDToken) GetWebsiteOk() (*string, bool)` + +GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsite + +`func (o *IDToken) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *IDToken) HasWebsite() bool` + +HasWebsite returns a boolean if a field has been set. + +### GetEmail + +`func (o *IDToken) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *IDToken) 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 *IDToken) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *IDToken) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetEmailVerified + +`func (o *IDToken) GetEmailVerified() bool` + +GetEmailVerified returns the EmailVerified field if non-nil, zero value otherwise. + +### GetEmailVerifiedOk + +`func (o *IDToken) GetEmailVerifiedOk() (*bool, bool)` + +GetEmailVerifiedOk returns a tuple with the EmailVerified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailVerified + +`func (o *IDToken) SetEmailVerified(v bool)` + +SetEmailVerified sets EmailVerified field to given value. + +### HasEmailVerified + +`func (o *IDToken) HasEmailVerified() bool` + +HasEmailVerified returns a boolean if a field has been set. + +### GetGender + +`func (o *IDToken) GetGender() string` + +GetGender returns the Gender field if non-nil, zero value otherwise. + +### GetGenderOk + +`func (o *IDToken) GetGenderOk() (*string, bool)` + +GetGenderOk returns a tuple with the Gender field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGender + +`func (o *IDToken) SetGender(v string)` + +SetGender sets Gender field to given value. + +### HasGender + +`func (o *IDToken) HasGender() bool` + +HasGender returns a boolean if a field has been set. + +### GetBirthdate + +`func (o *IDToken) GetBirthdate() string` + +GetBirthdate returns the Birthdate field if non-nil, zero value otherwise. + +### GetBirthdateOk + +`func (o *IDToken) GetBirthdateOk() (*string, bool)` + +GetBirthdateOk returns a tuple with the Birthdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBirthdate + +`func (o *IDToken) SetBirthdate(v string)` + +SetBirthdate sets Birthdate field to given value. + +### HasBirthdate + +`func (o *IDToken) HasBirthdate() bool` + +HasBirthdate returns a boolean if a field has been set. + +### GetZoneinfo + +`func (o *IDToken) GetZoneinfo() string` + +GetZoneinfo returns the Zoneinfo field if non-nil, zero value otherwise. + +### GetZoneinfoOk + +`func (o *IDToken) GetZoneinfoOk() (*string, bool)` + +GetZoneinfoOk returns a tuple with the Zoneinfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZoneinfo + +`func (o *IDToken) SetZoneinfo(v string)` + +SetZoneinfo sets Zoneinfo field to given value. + +### HasZoneinfo + +`func (o *IDToken) HasZoneinfo() bool` + +HasZoneinfo returns a boolean if a field has been set. + +### GetLocale + +`func (o *IDToken) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *IDToken) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *IDToken) SetLocale(v string)` + +SetLocale sets Locale field to given value. + +### HasLocale + +`func (o *IDToken) HasLocale() bool` + +HasLocale returns a boolean if a field has been set. + +### GetPhoneNumber + +`func (o *IDToken) GetPhoneNumber() string` + +GetPhoneNumber returns the PhoneNumber field if non-nil, zero value otherwise. + +### GetPhoneNumberOk + +`func (o *IDToken) GetPhoneNumberOk() (*string, bool)` + +GetPhoneNumberOk returns a tuple with the PhoneNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhoneNumber + +`func (o *IDToken) SetPhoneNumber(v string)` + +SetPhoneNumber sets PhoneNumber field to given value. + +### HasPhoneNumber + +`func (o *IDToken) HasPhoneNumber() bool` + +HasPhoneNumber returns a boolean if a field has been set. + +### GetPhoneNumberVerified + +`func (o *IDToken) GetPhoneNumberVerified() bool` + +GetPhoneNumberVerified returns the PhoneNumberVerified field if non-nil, zero value otherwise. + +### GetPhoneNumberVerifiedOk + +`func (o *IDToken) GetPhoneNumberVerifiedOk() (*bool, bool)` + +GetPhoneNumberVerifiedOk returns a tuple with the PhoneNumberVerified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhoneNumberVerified + +`func (o *IDToken) SetPhoneNumberVerified(v bool)` + +SetPhoneNumberVerified sets PhoneNumberVerified field to given value. + +### HasPhoneNumberVerified + +`func (o *IDToken) HasPhoneNumberVerified() bool` + +HasPhoneNumberVerified returns a boolean if a field has been set. + +### GetAddress + +`func (o *IDToken) GetAddress() AddressClaimSet` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *IDToken) GetAddressOk() (*AddressClaimSet, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *IDToken) SetAddress(v AddressClaimSet)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *IDToken) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *IDToken) GetUpdatedAt() int64` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *IDToken) GetUpdatedAtOk() (*int64, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *IDToken) SetUpdatedAt(v int64)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *IDToken) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetClaimsLocales + +`func (o *IDToken) GetClaimsLocales() string` + +GetClaimsLocales returns the ClaimsLocales field if non-nil, zero value otherwise. + +### GetClaimsLocalesOk + +`func (o *IDToken) GetClaimsLocalesOk() (*string, bool)` + +GetClaimsLocalesOk returns a tuple with the ClaimsLocales field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsLocales + +`func (o *IDToken) SetClaimsLocales(v string)` + +SetClaimsLocales sets ClaimsLocales field to given value. + +### HasClaimsLocales + +`func (o *IDToken) HasClaimsLocales() bool` + +HasClaimsLocales returns a boolean if a field has been set. + +### GetAcr + +`func (o *IDToken) GetAcr() string` + +GetAcr returns the Acr field if non-nil, zero value otherwise. + +### GetAcrOk + +`func (o *IDToken) GetAcrOk() (*string, bool)` + +GetAcrOk returns a tuple with the Acr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcr + +`func (o *IDToken) SetAcr(v string)` + +SetAcr sets Acr field to given value. + +### HasAcr + +`func (o *IDToken) HasAcr() bool` + +HasAcr returns a boolean if a field has been set. + +### GetSHash + +`func (o *IDToken) GetSHash() string` + +GetSHash returns the SHash field if non-nil, zero value otherwise. + +### GetSHashOk + +`func (o *IDToken) GetSHashOk() (*string, bool)` + +GetSHashOk returns a tuple with the SHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSHash + +`func (o *IDToken) SetSHash(v string)` + +SetSHash sets SHash field to given value. + +### HasSHash + +`func (o *IDToken) HasSHash() bool` + +HasSHash returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityProviderMapperRepresentation.md b/docs/IdentityProviderMapperRepresentation.md new file mode 100644 index 0000000..fe5a83b --- /dev/null +++ b/docs/IdentityProviderMapperRepresentation.md @@ -0,0 +1,160 @@ +# IdentityProviderMapperRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**IdentityProviderAlias** | Pointer to **string** | | [optional] +**IdentityProviderMapper** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewIdentityProviderMapperRepresentation + +`func NewIdentityProviderMapperRepresentation() *IdentityProviderMapperRepresentation` + +NewIdentityProviderMapperRepresentation instantiates a new IdentityProviderMapperRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderMapperRepresentationWithDefaults + +`func NewIdentityProviderMapperRepresentationWithDefaults() *IdentityProviderMapperRepresentation` + +NewIdentityProviderMapperRepresentationWithDefaults instantiates a new IdentityProviderMapperRepresentation object +This 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 *IdentityProviderMapperRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderMapperRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityProviderMapperRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityProviderMapperRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetIdentityProviderAlias + +`func (o *IdentityProviderMapperRepresentation) GetIdentityProviderAlias() string` + +GetIdentityProviderAlias returns the IdentityProviderAlias field if non-nil, zero value otherwise. + +### GetIdentityProviderAliasOk + +`func (o *IdentityProviderMapperRepresentation) GetIdentityProviderAliasOk() (*string, bool)` + +GetIdentityProviderAliasOk returns a tuple with the IdentityProviderAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityProviderAlias + +`func (o *IdentityProviderMapperRepresentation) SetIdentityProviderAlias(v string)` + +SetIdentityProviderAlias sets IdentityProviderAlias field to given value. + +### HasIdentityProviderAlias + +`func (o *IdentityProviderMapperRepresentation) HasIdentityProviderAlias() bool` + +HasIdentityProviderAlias returns a boolean if a field has been set. + +### GetIdentityProviderMapper + +`func (o *IdentityProviderMapperRepresentation) GetIdentityProviderMapper() string` + +GetIdentityProviderMapper returns the IdentityProviderMapper field if non-nil, zero value otherwise. + +### GetIdentityProviderMapperOk + +`func (o *IdentityProviderMapperRepresentation) GetIdentityProviderMapperOk() (*string, bool)` + +GetIdentityProviderMapperOk returns a tuple with the IdentityProviderMapper field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityProviderMapper + +`func (o *IdentityProviderMapperRepresentation) SetIdentityProviderMapper(v string)` + +SetIdentityProviderMapper sets IdentityProviderMapper field to given value. + +### HasIdentityProviderMapper + +`func (o *IdentityProviderMapperRepresentation) HasIdentityProviderMapper() bool` + +HasIdentityProviderMapper returns a boolean if a field has been set. + +### GetConfig + +`func (o *IdentityProviderMapperRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *IdentityProviderMapperRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *IdentityProviderMapperRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *IdentityProviderMapperRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityProviderMapperTypeRepresentation.md b/docs/IdentityProviderMapperTypeRepresentation.md new file mode 100644 index 0000000..421aace --- /dev/null +++ b/docs/IdentityProviderMapperTypeRepresentation.md @@ -0,0 +1,160 @@ +# IdentityProviderMapperTypeRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Category** | Pointer to **string** | | [optional] +**HelpText** | Pointer to **string** | | [optional] +**Properties** | Pointer to [**[]ConfigPropertyRepresentation**](ConfigPropertyRepresentation.md) | | [optional] + +## Methods + +### NewIdentityProviderMapperTypeRepresentation + +`func NewIdentityProviderMapperTypeRepresentation() *IdentityProviderMapperTypeRepresentation` + +NewIdentityProviderMapperTypeRepresentation instantiates a new IdentityProviderMapperTypeRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderMapperTypeRepresentationWithDefaults + +`func NewIdentityProviderMapperTypeRepresentationWithDefaults() *IdentityProviderMapperTypeRepresentation` + +NewIdentityProviderMapperTypeRepresentationWithDefaults instantiates a new IdentityProviderMapperTypeRepresentation object +This 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 *IdentityProviderMapperTypeRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderMapperTypeRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityProviderMapperTypeRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityProviderMapperTypeRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCategory + +`func (o *IdentityProviderMapperTypeRepresentation) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *IdentityProviderMapperTypeRepresentation) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *IdentityProviderMapperTypeRepresentation) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *IdentityProviderMapperTypeRepresentation) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetHelpText + +`func (o *IdentityProviderMapperTypeRepresentation) GetHelpText() string` + +GetHelpText returns the HelpText field if non-nil, zero value otherwise. + +### GetHelpTextOk + +`func (o *IdentityProviderMapperTypeRepresentation) GetHelpTextOk() (*string, bool)` + +GetHelpTextOk returns a tuple with the HelpText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHelpText + +`func (o *IdentityProviderMapperTypeRepresentation) SetHelpText(v string)` + +SetHelpText sets HelpText field to given value. + +### HasHelpText + +`func (o *IdentityProviderMapperTypeRepresentation) HasHelpText() bool` + +HasHelpText returns a boolean if a field has been set. + +### GetProperties + +`func (o *IdentityProviderMapperTypeRepresentation) GetProperties() []ConfigPropertyRepresentation` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *IdentityProviderMapperTypeRepresentation) GetPropertiesOk() (*[]ConfigPropertyRepresentation, 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 *IdentityProviderMapperTypeRepresentation) SetProperties(v []ConfigPropertyRepresentation)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *IdentityProviderMapperTypeRepresentation) 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/docs/IdentityProviderRepresentation.md b/docs/IdentityProviderRepresentation.md new file mode 100644 index 0000000..a2ce58b --- /dev/null +++ b/docs/IdentityProviderRepresentation.md @@ -0,0 +1,472 @@ +# IdentityProviderRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alias** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**InternalId** | Pointer to **string** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**UpdateProfileFirstLoginMode** | Pointer to **string** | | [optional] +**TrustEmail** | Pointer to **bool** | | [optional] +**StoreToken** | Pointer to **bool** | | [optional] +**AddReadTokenRoleOnCreate** | Pointer to **bool** | | [optional] +**AuthenticateByDefault** | Pointer to **bool** | | [optional] +**LinkOnly** | Pointer to **bool** | | [optional] +**HideOnLogin** | Pointer to **bool** | | [optional] +**FirstBrokerLoginFlowAlias** | Pointer to **string** | | [optional] +**PostBrokerLoginFlowAlias** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] +**UpdateProfileFirstLogin** | Pointer to **bool** | | [optional] + +## Methods + +### NewIdentityProviderRepresentation + +`func NewIdentityProviderRepresentation() *IdentityProviderRepresentation` + +NewIdentityProviderRepresentation instantiates a new IdentityProviderRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderRepresentationWithDefaults + +`func NewIdentityProviderRepresentationWithDefaults() *IdentityProviderRepresentation` + +NewIdentityProviderRepresentationWithDefaults instantiates a new IdentityProviderRepresentation object +This 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 *IdentityProviderRepresentation) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *IdentityProviderRepresentation) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *IdentityProviderRepresentation) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *IdentityProviderRepresentation) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetInternalId + +`func (o *IdentityProviderRepresentation) GetInternalId() string` + +GetInternalId returns the InternalId field if non-nil, zero value otherwise. + +### GetInternalIdOk + +`func (o *IdentityProviderRepresentation) GetInternalIdOk() (*string, bool)` + +GetInternalIdOk returns a tuple with the InternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternalId + +`func (o *IdentityProviderRepresentation) SetInternalId(v string)` + +SetInternalId sets InternalId field to given value. + +### HasInternalId + +`func (o *IdentityProviderRepresentation) HasInternalId() bool` + +HasInternalId returns a boolean if a field has been set. + +### GetProviderId + +`func (o *IdentityProviderRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *IdentityProviderRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *IdentityProviderRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *IdentityProviderRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetEnabled + +`func (o *IdentityProviderRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *IdentityProviderRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetUpdateProfileFirstLoginMode + +`func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLoginMode() string` + +GetUpdateProfileFirstLoginMode returns the UpdateProfileFirstLoginMode field if non-nil, zero value otherwise. + +### GetUpdateProfileFirstLoginModeOk + +`func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLoginModeOk() (*string, bool)` + +GetUpdateProfileFirstLoginModeOk returns a tuple with the UpdateProfileFirstLoginMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateProfileFirstLoginMode + +`func (o *IdentityProviderRepresentation) SetUpdateProfileFirstLoginMode(v string)` + +SetUpdateProfileFirstLoginMode sets UpdateProfileFirstLoginMode field to given value. + +### HasUpdateProfileFirstLoginMode + +`func (o *IdentityProviderRepresentation) HasUpdateProfileFirstLoginMode() bool` + +HasUpdateProfileFirstLoginMode returns a boolean if a field has been set. + +### GetTrustEmail + +`func (o *IdentityProviderRepresentation) GetTrustEmail() bool` + +GetTrustEmail returns the TrustEmail field if non-nil, zero value otherwise. + +### GetTrustEmailOk + +`func (o *IdentityProviderRepresentation) GetTrustEmailOk() (*bool, bool)` + +GetTrustEmailOk returns a tuple with the TrustEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustEmail + +`func (o *IdentityProviderRepresentation) SetTrustEmail(v bool)` + +SetTrustEmail sets TrustEmail field to given value. + +### HasTrustEmail + +`func (o *IdentityProviderRepresentation) HasTrustEmail() bool` + +HasTrustEmail returns a boolean if a field has been set. + +### GetStoreToken + +`func (o *IdentityProviderRepresentation) GetStoreToken() bool` + +GetStoreToken returns the StoreToken field if non-nil, zero value otherwise. + +### GetStoreTokenOk + +`func (o *IdentityProviderRepresentation) GetStoreTokenOk() (*bool, bool)` + +GetStoreTokenOk returns a tuple with the StoreToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreToken + +`func (o *IdentityProviderRepresentation) SetStoreToken(v bool)` + +SetStoreToken sets StoreToken field to given value. + +### HasStoreToken + +`func (o *IdentityProviderRepresentation) HasStoreToken() bool` + +HasStoreToken returns a boolean if a field has been set. + +### GetAddReadTokenRoleOnCreate + +`func (o *IdentityProviderRepresentation) GetAddReadTokenRoleOnCreate() bool` + +GetAddReadTokenRoleOnCreate returns the AddReadTokenRoleOnCreate field if non-nil, zero value otherwise. + +### GetAddReadTokenRoleOnCreateOk + +`func (o *IdentityProviderRepresentation) GetAddReadTokenRoleOnCreateOk() (*bool, bool)` + +GetAddReadTokenRoleOnCreateOk returns a tuple with the AddReadTokenRoleOnCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddReadTokenRoleOnCreate + +`func (o *IdentityProviderRepresentation) SetAddReadTokenRoleOnCreate(v bool)` + +SetAddReadTokenRoleOnCreate sets AddReadTokenRoleOnCreate field to given value. + +### HasAddReadTokenRoleOnCreate + +`func (o *IdentityProviderRepresentation) HasAddReadTokenRoleOnCreate() bool` + +HasAddReadTokenRoleOnCreate returns a boolean if a field has been set. + +### GetAuthenticateByDefault + +`func (o *IdentityProviderRepresentation) GetAuthenticateByDefault() bool` + +GetAuthenticateByDefault returns the AuthenticateByDefault field if non-nil, zero value otherwise. + +### GetAuthenticateByDefaultOk + +`func (o *IdentityProviderRepresentation) GetAuthenticateByDefaultOk() (*bool, bool)` + +GetAuthenticateByDefaultOk returns a tuple with the AuthenticateByDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticateByDefault + +`func (o *IdentityProviderRepresentation) SetAuthenticateByDefault(v bool)` + +SetAuthenticateByDefault sets AuthenticateByDefault field to given value. + +### HasAuthenticateByDefault + +`func (o *IdentityProviderRepresentation) HasAuthenticateByDefault() bool` + +HasAuthenticateByDefault returns a boolean if a field has been set. + +### GetLinkOnly + +`func (o *IdentityProviderRepresentation) GetLinkOnly() bool` + +GetLinkOnly returns the LinkOnly field if non-nil, zero value otherwise. + +### GetLinkOnlyOk + +`func (o *IdentityProviderRepresentation) GetLinkOnlyOk() (*bool, bool)` + +GetLinkOnlyOk returns a tuple with the LinkOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkOnly + +`func (o *IdentityProviderRepresentation) SetLinkOnly(v bool)` + +SetLinkOnly sets LinkOnly field to given value. + +### HasLinkOnly + +`func (o *IdentityProviderRepresentation) HasLinkOnly() bool` + +HasLinkOnly returns a boolean if a field has been set. + +### GetHideOnLogin + +`func (o *IdentityProviderRepresentation) GetHideOnLogin() bool` + +GetHideOnLogin returns the HideOnLogin field if non-nil, zero value otherwise. + +### GetHideOnLoginOk + +`func (o *IdentityProviderRepresentation) GetHideOnLoginOk() (*bool, bool)` + +GetHideOnLoginOk returns a tuple with the HideOnLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHideOnLogin + +`func (o *IdentityProviderRepresentation) SetHideOnLogin(v bool)` + +SetHideOnLogin sets HideOnLogin field to given value. + +### HasHideOnLogin + +`func (o *IdentityProviderRepresentation) HasHideOnLogin() bool` + +HasHideOnLogin returns a boolean if a field has been set. + +### GetFirstBrokerLoginFlowAlias + +`func (o *IdentityProviderRepresentation) GetFirstBrokerLoginFlowAlias() string` + +GetFirstBrokerLoginFlowAlias returns the FirstBrokerLoginFlowAlias field if non-nil, zero value otherwise. + +### GetFirstBrokerLoginFlowAliasOk + +`func (o *IdentityProviderRepresentation) GetFirstBrokerLoginFlowAliasOk() (*string, bool)` + +GetFirstBrokerLoginFlowAliasOk returns a tuple with the FirstBrokerLoginFlowAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstBrokerLoginFlowAlias + +`func (o *IdentityProviderRepresentation) SetFirstBrokerLoginFlowAlias(v string)` + +SetFirstBrokerLoginFlowAlias sets FirstBrokerLoginFlowAlias field to given value. + +### HasFirstBrokerLoginFlowAlias + +`func (o *IdentityProviderRepresentation) HasFirstBrokerLoginFlowAlias() bool` + +HasFirstBrokerLoginFlowAlias returns a boolean if a field has been set. + +### GetPostBrokerLoginFlowAlias + +`func (o *IdentityProviderRepresentation) GetPostBrokerLoginFlowAlias() string` + +GetPostBrokerLoginFlowAlias returns the PostBrokerLoginFlowAlias field if non-nil, zero value otherwise. + +### GetPostBrokerLoginFlowAliasOk + +`func (o *IdentityProviderRepresentation) GetPostBrokerLoginFlowAliasOk() (*string, bool)` + +GetPostBrokerLoginFlowAliasOk returns a tuple with the PostBrokerLoginFlowAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostBrokerLoginFlowAlias + +`func (o *IdentityProviderRepresentation) SetPostBrokerLoginFlowAlias(v string)` + +SetPostBrokerLoginFlowAlias sets PostBrokerLoginFlowAlias field to given value. + +### HasPostBrokerLoginFlowAlias + +`func (o *IdentityProviderRepresentation) HasPostBrokerLoginFlowAlias() bool` + +HasPostBrokerLoginFlowAlias returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *IdentityProviderRepresentation) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *IdentityProviderRepresentation) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *IdentityProviderRepresentation) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *IdentityProviderRepresentation) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetConfig + +`func (o *IdentityProviderRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *IdentityProviderRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *IdentityProviderRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *IdentityProviderRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetUpdateProfileFirstLogin + +`func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLogin() bool` + +GetUpdateProfileFirstLogin returns the UpdateProfileFirstLogin field if non-nil, zero value otherwise. + +### GetUpdateProfileFirstLoginOk + +`func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLoginOk() (*bool, bool)` + +GetUpdateProfileFirstLoginOk returns a tuple with the UpdateProfileFirstLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateProfileFirstLogin + +`func (o *IdentityProviderRepresentation) SetUpdateProfileFirstLogin(v bool)` + +SetUpdateProfileFirstLogin sets UpdateProfileFirstLogin field to given value. + +### HasUpdateProfileFirstLogin + +`func (o *IdentityProviderRepresentation) HasUpdateProfileFirstLogin() bool` + +HasUpdateProfileFirstLogin returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityProvidersAPI.md b/docs/IdentityProvidersAPI.md new file mode 100644 index 0000000..a802b6a --- /dev/null +++ b/docs/IdentityProvidersAPI.md @@ -0,0 +1,1244 @@ +# \IdentityProvidersAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmIdentityProviderImportConfigPost**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderImportConfigPost) | **Post** /admin/realms/{realm}/identity-provider/import-config | Import identity provider from JSON body +[**AdminRealmsRealmIdentityProviderInstancesAliasDelete**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasDelete) | **Delete** /admin/realms/{realm}/identity-provider/instances/{alias} | Delete the identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasExportGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasExportGet) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/export | Export public broker configuration for identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasGet) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias} | Get the identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut) | **Put** /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types | Get mapper types for identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasMappersGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasMappersGet) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers | Get mappers for identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete) | **Delete** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id} | Delete a mapper for the identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id} | Get mapper by id for the identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut) | **Put** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id} | Update a mapper for the identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasMappersPost**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasMappersPost) | **Post** /admin/realms/{realm}/identity-provider/instances/{alias}/mappers | Add a mapper to identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasPut**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasPut) | **Put** /admin/realms/{realm}/identity-provider/instances/{alias} | Update the identity provider +[**AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet) | **Get** /admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys | Reaload keys for the identity provider if the provider supports it, \"true\" is returned if reload was performed, \"false\" if not. +[**AdminRealmsRealmIdentityProviderInstancesGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesGet) | **Get** /admin/realms/{realm}/identity-provider/instances | List identity providers +[**AdminRealmsRealmIdentityProviderInstancesPost**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderInstancesPost) | **Post** /admin/realms/{realm}/identity-provider/instances | Create a new identity provider +[**AdminRealmsRealmIdentityProviderProvidersProviderIdGet**](IdentityProvidersAPI.md#AdminRealmsRealmIdentityProviderProvidersProviderIdGet) | **Get** /admin/realms/{realm}/identity-provider/providers/{provider_id} | Get the identity provider factory for that provider id + + + +## AdminRealmsRealmIdentityProviderImportConfigPost + +> map[string]string AdminRealmsRealmIdentityProviderImportConfigPost(ctx, realm).RequestBody(requestBody).Execute() + +Import identity provider from JSON body + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + requestBody := map[string]interface{}{"key": interface{}(123)} // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderImportConfigPost(context.Background(), realm).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderImportConfigPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderImportConfigPost`: map[string]string + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderImportConfigPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderImportConfigPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **requestBody** | **map[string]interface{}** | | + +### Return type + +**map[string]string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesAliasDelete + +> AdminRealmsRealmIdentityProviderInstancesAliasDelete(ctx, realm, alias).Execute() + +Delete the identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasDelete(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasDelete``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmIdentityProviderInstancesAliasExportGet + +> AdminRealmsRealmIdentityProviderInstancesAliasExportGet(ctx, realm, alias).Format(format).Execute() + +Export public broker configuration for identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + format := "format_example" // string | Format to use (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasExportGet(context.Background(), realm, alias).Format(format).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasExportGet``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **format** | **string** | Format to use | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmIdentityProviderInstancesAliasGet + +> IdentityProviderRepresentation AdminRealmsRealmIdentityProviderInstancesAliasGet(ctx, realm, alias).Execute() + +Get the identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesAliasGet`: IdentityProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**IdentityProviderRepresentation**](IdentityProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet + +> ManagementPermissionReference AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet(ctx, realm, alias).Execute() + +Return object stating whether client Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut + +> ManagementPermissionReference AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut(ctx, realm, alias).ManagementPermissionReference(managementPermissionReference).Execute() + +Return object stating whether client Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut(context.Background(), realm, alias).ManagementPermissionReference(managementPermissionReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **managementPermissionReference** | [**ManagementPermissionReference**](ManagementPermissionReference.md) | | + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet + +> map[string]IdentityProviderMapperTypeRepresentation AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet(ctx, realm, alias).Execute() + +Get mapper types for identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet`: map[string]IdentityProviderMapperTypeRepresentation + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**map[string]IdentityProviderMapperTypeRepresentation**](IdentityProviderMapperTypeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesAliasMappersGet + +> []IdentityProviderMapperRepresentation AdminRealmsRealmIdentityProviderInstancesAliasMappersGet(ctx, realm, alias).Execute() + +Get mappers for identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesAliasMappersGet`: []IdentityProviderMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]IdentityProviderMapperRepresentation**](IdentityProviderMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete + +> AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete(ctx, realm, alias, id).Execute() + +Delete a mapper for the identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + id := "id_example" // string | Mapper id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete(context.Background(), realm, alias, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet + +> IdentityProviderMapperRepresentation AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet(ctx, realm, alias, id).Execute() + +Get mapper by id for the identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet(context.Background(), realm, alias, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet`: IdentityProviderMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**IdentityProviderMapperRepresentation**](IdentityProviderMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut + +> AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut(ctx, realm, alias, id).IdentityProviderMapperRepresentation(identityProviderMapperRepresentation).Execute() + +Update a mapper for the identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + id := "id_example" // string | Mapper id + identityProviderMapperRepresentation := *openapiclient.NewIdentityProviderMapperRepresentation() // IdentityProviderMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut(context.Background(), realm, alias, id).IdentityProviderMapperRepresentation(identityProviderMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **identityProviderMapperRepresentation** | [**IdentityProviderMapperRepresentation**](IdentityProviderMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmIdentityProviderInstancesAliasMappersPost + +> AdminRealmsRealmIdentityProviderInstancesAliasMappersPost(ctx, realm, alias).IdentityProviderMapperRepresentation(identityProviderMapperRepresentation).Execute() + +Add a mapper to identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + identityProviderMapperRepresentation := *openapiclient.NewIdentityProviderMapperRepresentation() // IdentityProviderMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersPost(context.Background(), realm, alias).IdentityProviderMapperRepresentation(identityProviderMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersPost``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identityProviderMapperRepresentation** | [**IdentityProviderMapperRepresentation**](IdentityProviderMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmIdentityProviderInstancesAliasPut + +> AdminRealmsRealmIdentityProviderInstancesAliasPut(ctx, realm, alias).IdentityProviderRepresentation(identityProviderRepresentation).Execute() + +Update the identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + identityProviderRepresentation := *openapiclient.NewIdentityProviderRepresentation() // IdentityProviderRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasPut(context.Background(), realm, alias).IdentityProviderRepresentation(identityProviderRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasPut``: %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. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identityProviderRepresentation** | [**IdentityProviderRepresentation**](IdentityProviderRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet + +> bool AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet(ctx, realm, alias).Execute() + +Reaload keys for the identity provider if the provider supports it, \"true\" is returned if reload was performed, \"false\" if not. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet(context.Background(), realm, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet`: bool + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**bool** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesGet + +> []IdentityProviderRepresentation AdminRealmsRealmIdentityProviderInstancesGet(ctx, realm).BriefRepresentation(briefRepresentation).First(first).Max(max).RealmOnly(realmOnly).Search(search).Execute() + +List identity providers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + briefRepresentation := true // bool | Boolean which defines whether brief representations are returned (default: false) (optional) + first := int32(56) // int32 | Pagination offset (optional) + max := int32(56) // int32 | Maximum results size (defaults to 100) (optional) + realmOnly := true // bool | Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false) (optional) + search := "search_example" // string | Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact (\"name\"). Default prefixed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesGet(context.Background(), realm).BriefRepresentation(briefRepresentation).First(first).Max(max).RealmOnly(realmOnly).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderInstancesGet`: []IdentityProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **briefRepresentation** | **bool** | Boolean which defines whether brief representations are returned (default: false) | + **first** | **int32** | Pagination offset | + **max** | **int32** | Maximum results size (defaults to 100) | + **realmOnly** | **bool** | Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false) | + **search** | **string** | Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact (\"name\"). Default prefixed. | + +### Return type + +[**[]IdentityProviderRepresentation**](IdentityProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmIdentityProviderInstancesPost + +> AdminRealmsRealmIdentityProviderInstancesPost(ctx, realm).IdentityProviderRepresentation(identityProviderRepresentation).Execute() + +Create a new identity provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + identityProviderRepresentation := *openapiclient.NewIdentityProviderRepresentation() // IdentityProviderRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesPost(context.Background(), realm).IdentityProviderRepresentation(identityProviderRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderInstancesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **identityProviderRepresentation** | [**IdentityProviderRepresentation**](IdentityProviderRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmIdentityProviderProvidersProviderIdGet + +> map[string]interface{} AdminRealmsRealmIdentityProviderProvidersProviderIdGet(ctx, realm, providerId).Execute() + +Get the identity provider factory for that provider id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + providerId := "providerId_example" // string | The provider id to get the factory + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderProvidersProviderIdGet(context.Background(), realm, providerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderProvidersProviderIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmIdentityProviderProvidersProviderIdGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IdentityProvidersAPI.AdminRealmsRealmIdentityProviderProvidersProviderIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**providerId** | **string** | The provider id to get the factory | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/InstallationAdapterConfig.md b/docs/InstallationAdapterConfig.md new file mode 100644 index 0000000..5e3ed66 --- /dev/null +++ b/docs/InstallationAdapterConfig.md @@ -0,0 +1,342 @@ +# InstallationAdapterConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Realm** | Pointer to **string** | | [optional] +**RealmPublicKey** | Pointer to **string** | | [optional] +**AuthServerUrl** | Pointer to **string** | | [optional] +**SslRequired** | Pointer to **string** | | [optional] +**BearerOnly** | Pointer to **bool** | | [optional] +**Resource** | Pointer to **string** | | [optional] +**PublicClient** | Pointer to **bool** | | [optional] +**VerifyTokenAudience** | Pointer to **bool** | | [optional] +**Credentials** | Pointer to **map[string]interface{}** | | [optional] +**UseResourceRoleMappings** | Pointer to **bool** | | [optional] +**ConfidentialPort** | Pointer to **int32** | | [optional] +**PolicyEnforcer** | Pointer to [**PolicyEnforcerConfig**](PolicyEnforcerConfig.md) | | [optional] + +## Methods + +### NewInstallationAdapterConfig + +`func NewInstallationAdapterConfig() *InstallationAdapterConfig` + +NewInstallationAdapterConfig instantiates a new InstallationAdapterConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInstallationAdapterConfigWithDefaults + +`func NewInstallationAdapterConfigWithDefaults() *InstallationAdapterConfig` + +NewInstallationAdapterConfigWithDefaults instantiates a new InstallationAdapterConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRealm + +`func (o *InstallationAdapterConfig) GetRealm() string` + +GetRealm returns the Realm field if non-nil, zero value otherwise. + +### GetRealmOk + +`func (o *InstallationAdapterConfig) GetRealmOk() (*string, bool)` + +GetRealmOk returns a tuple with the Realm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealm + +`func (o *InstallationAdapterConfig) SetRealm(v string)` + +SetRealm sets Realm field to given value. + +### HasRealm + +`func (o *InstallationAdapterConfig) HasRealm() bool` + +HasRealm returns a boolean if a field has been set. + +### GetRealmPublicKey + +`func (o *InstallationAdapterConfig) GetRealmPublicKey() string` + +GetRealmPublicKey returns the RealmPublicKey field if non-nil, zero value otherwise. + +### GetRealmPublicKeyOk + +`func (o *InstallationAdapterConfig) GetRealmPublicKeyOk() (*string, bool)` + +GetRealmPublicKeyOk returns a tuple with the RealmPublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmPublicKey + +`func (o *InstallationAdapterConfig) SetRealmPublicKey(v string)` + +SetRealmPublicKey sets RealmPublicKey field to given value. + +### HasRealmPublicKey + +`func (o *InstallationAdapterConfig) HasRealmPublicKey() bool` + +HasRealmPublicKey returns a boolean if a field has been set. + +### GetAuthServerUrl + +`func (o *InstallationAdapterConfig) GetAuthServerUrl() string` + +GetAuthServerUrl returns the AuthServerUrl field if non-nil, zero value otherwise. + +### GetAuthServerUrlOk + +`func (o *InstallationAdapterConfig) GetAuthServerUrlOk() (*string, bool)` + +GetAuthServerUrlOk returns a tuple with the AuthServerUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthServerUrl + +`func (o *InstallationAdapterConfig) SetAuthServerUrl(v string)` + +SetAuthServerUrl sets AuthServerUrl field to given value. + +### HasAuthServerUrl + +`func (o *InstallationAdapterConfig) HasAuthServerUrl() bool` + +HasAuthServerUrl returns a boolean if a field has been set. + +### GetSslRequired + +`func (o *InstallationAdapterConfig) GetSslRequired() string` + +GetSslRequired returns the SslRequired field if non-nil, zero value otherwise. + +### GetSslRequiredOk + +`func (o *InstallationAdapterConfig) GetSslRequiredOk() (*string, bool)` + +GetSslRequiredOk returns a tuple with the SslRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslRequired + +`func (o *InstallationAdapterConfig) SetSslRequired(v string)` + +SetSslRequired sets SslRequired field to given value. + +### HasSslRequired + +`func (o *InstallationAdapterConfig) HasSslRequired() bool` + +HasSslRequired returns a boolean if a field has been set. + +### GetBearerOnly + +`func (o *InstallationAdapterConfig) GetBearerOnly() bool` + +GetBearerOnly returns the BearerOnly field if non-nil, zero value otherwise. + +### GetBearerOnlyOk + +`func (o *InstallationAdapterConfig) GetBearerOnlyOk() (*bool, bool)` + +GetBearerOnlyOk returns a tuple with the BearerOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBearerOnly + +`func (o *InstallationAdapterConfig) SetBearerOnly(v bool)` + +SetBearerOnly sets BearerOnly field to given value. + +### HasBearerOnly + +`func (o *InstallationAdapterConfig) HasBearerOnly() bool` + +HasBearerOnly returns a boolean if a field has been set. + +### GetResource + +`func (o *InstallationAdapterConfig) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *InstallationAdapterConfig) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *InstallationAdapterConfig) SetResource(v string)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *InstallationAdapterConfig) HasResource() bool` + +HasResource returns a boolean if a field has been set. + +### GetPublicClient + +`func (o *InstallationAdapterConfig) GetPublicClient() bool` + +GetPublicClient returns the PublicClient field if non-nil, zero value otherwise. + +### GetPublicClientOk + +`func (o *InstallationAdapterConfig) GetPublicClientOk() (*bool, bool)` + +GetPublicClientOk returns a tuple with the PublicClient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicClient + +`func (o *InstallationAdapterConfig) SetPublicClient(v bool)` + +SetPublicClient sets PublicClient field to given value. + +### HasPublicClient + +`func (o *InstallationAdapterConfig) HasPublicClient() bool` + +HasPublicClient returns a boolean if a field has been set. + +### GetVerifyTokenAudience + +`func (o *InstallationAdapterConfig) GetVerifyTokenAudience() bool` + +GetVerifyTokenAudience returns the VerifyTokenAudience field if non-nil, zero value otherwise. + +### GetVerifyTokenAudienceOk + +`func (o *InstallationAdapterConfig) GetVerifyTokenAudienceOk() (*bool, bool)` + +GetVerifyTokenAudienceOk returns a tuple with the VerifyTokenAudience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifyTokenAudience + +`func (o *InstallationAdapterConfig) SetVerifyTokenAudience(v bool)` + +SetVerifyTokenAudience sets VerifyTokenAudience field to given value. + +### HasVerifyTokenAudience + +`func (o *InstallationAdapterConfig) HasVerifyTokenAudience() bool` + +HasVerifyTokenAudience returns a boolean if a field has been set. + +### GetCredentials + +`func (o *InstallationAdapterConfig) GetCredentials() map[string]interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *InstallationAdapterConfig) GetCredentialsOk() (*map[string]interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *InstallationAdapterConfig) SetCredentials(v map[string]interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *InstallationAdapterConfig) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetUseResourceRoleMappings + +`func (o *InstallationAdapterConfig) GetUseResourceRoleMappings() bool` + +GetUseResourceRoleMappings returns the UseResourceRoleMappings field if non-nil, zero value otherwise. + +### GetUseResourceRoleMappingsOk + +`func (o *InstallationAdapterConfig) GetUseResourceRoleMappingsOk() (*bool, bool)` + +GetUseResourceRoleMappingsOk returns a tuple with the UseResourceRoleMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseResourceRoleMappings + +`func (o *InstallationAdapterConfig) SetUseResourceRoleMappings(v bool)` + +SetUseResourceRoleMappings sets UseResourceRoleMappings field to given value. + +### HasUseResourceRoleMappings + +`func (o *InstallationAdapterConfig) HasUseResourceRoleMappings() bool` + +HasUseResourceRoleMappings returns a boolean if a field has been set. + +### GetConfidentialPort + +`func (o *InstallationAdapterConfig) GetConfidentialPort() int32` + +GetConfidentialPort returns the ConfidentialPort field if non-nil, zero value otherwise. + +### GetConfidentialPortOk + +`func (o *InstallationAdapterConfig) GetConfidentialPortOk() (*int32, bool)` + +GetConfidentialPortOk returns a tuple with the ConfidentialPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfidentialPort + +`func (o *InstallationAdapterConfig) SetConfidentialPort(v int32)` + +SetConfidentialPort sets ConfidentialPort field to given value. + +### HasConfidentialPort + +`func (o *InstallationAdapterConfig) HasConfidentialPort() bool` + +HasConfidentialPort returns a boolean if a field has been set. + +### GetPolicyEnforcer + +`func (o *InstallationAdapterConfig) GetPolicyEnforcer() PolicyEnforcerConfig` + +GetPolicyEnforcer returns the PolicyEnforcer field if non-nil, zero value otherwise. + +### GetPolicyEnforcerOk + +`func (o *InstallationAdapterConfig) GetPolicyEnforcerOk() (*PolicyEnforcerConfig, bool)` + +GetPolicyEnforcerOk returns a tuple with the PolicyEnforcer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyEnforcer + +`func (o *InstallationAdapterConfig) SetPolicyEnforcer(v PolicyEnforcerConfig)` + +SetPolicyEnforcer sets PolicyEnforcer field to given value. + +### HasPolicyEnforcer + +`func (o *InstallationAdapterConfig) HasPolicyEnforcer() bool` + +HasPolicyEnforcer returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeyAPI.md b/docs/KeyAPI.md new file mode 100644 index 0000000..6591620 --- /dev/null +++ b/docs/KeyAPI.md @@ -0,0 +1,77 @@ +# \KeyAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmKeysGet**](KeyAPI.md#AdminRealmsRealmKeysGet) | **Get** /admin/realms/{realm}/keys | + + + +## AdminRealmsRealmKeysGet + +> KeysMetadataRepresentation AdminRealmsRealmKeysGet(ctx, realm).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyAPI.AdminRealmsRealmKeysGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyAPI.AdminRealmsRealmKeysGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmKeysGet`: KeysMetadataRepresentation + fmt.Fprintf(os.Stdout, "Response from `KeyAPI.AdminRealmsRealmKeysGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmKeysGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**KeysMetadataRepresentation**](KeysMetadataRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/KeyMetadataRepresentation.md b/docs/KeyMetadataRepresentation.md new file mode 100644 index 0000000..920cbe3 --- /dev/null +++ b/docs/KeyMetadataRepresentation.md @@ -0,0 +1,290 @@ +# KeyMetadataRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProviderId** | Pointer to **string** | | [optional] +**ProviderPriority** | Pointer to **int64** | | [optional] +**Kid** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Algorithm** | Pointer to **string** | | [optional] +**PublicKey** | Pointer to **string** | | [optional] +**Certificate** | Pointer to **string** | | [optional] +**Use** | Pointer to [**KeyUse**](KeyUse.md) | | [optional] +**ValidTo** | Pointer to **int64** | | [optional] + +## Methods + +### NewKeyMetadataRepresentation + +`func NewKeyMetadataRepresentation() *KeyMetadataRepresentation` + +NewKeyMetadataRepresentation instantiates a new KeyMetadataRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyMetadataRepresentationWithDefaults + +`func NewKeyMetadataRepresentationWithDefaults() *KeyMetadataRepresentation` + +NewKeyMetadataRepresentationWithDefaults instantiates a new KeyMetadataRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProviderId + +`func (o *KeyMetadataRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *KeyMetadataRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *KeyMetadataRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *KeyMetadataRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetProviderPriority + +`func (o *KeyMetadataRepresentation) GetProviderPriority() int64` + +GetProviderPriority returns the ProviderPriority field if non-nil, zero value otherwise. + +### GetProviderPriorityOk + +`func (o *KeyMetadataRepresentation) GetProviderPriorityOk() (*int64, bool)` + +GetProviderPriorityOk returns a tuple with the ProviderPriority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderPriority + +`func (o *KeyMetadataRepresentation) SetProviderPriority(v int64)` + +SetProviderPriority sets ProviderPriority field to given value. + +### HasProviderPriority + +`func (o *KeyMetadataRepresentation) HasProviderPriority() bool` + +HasProviderPriority returns a boolean if a field has been set. + +### GetKid + +`func (o *KeyMetadataRepresentation) GetKid() string` + +GetKid returns the Kid field if non-nil, zero value otherwise. + +### GetKidOk + +`func (o *KeyMetadataRepresentation) GetKidOk() (*string, bool)` + +GetKidOk returns a tuple with the Kid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKid + +`func (o *KeyMetadataRepresentation) SetKid(v string)` + +SetKid sets Kid field to given value. + +### HasKid + +`func (o *KeyMetadataRepresentation) HasKid() bool` + +HasKid returns a boolean if a field has been set. + +### GetStatus + +`func (o *KeyMetadataRepresentation) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KeyMetadataRepresentation) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetType + +`func (o *KeyMetadataRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *KeyMetadataRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetAlgorithm + +`func (o *KeyMetadataRepresentation) GetAlgorithm() string` + +GetAlgorithm returns the Algorithm field if non-nil, zero value otherwise. + +### GetAlgorithmOk + +`func (o *KeyMetadataRepresentation) GetAlgorithmOk() (*string, bool)` + +GetAlgorithmOk returns a tuple with the Algorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlgorithm + +`func (o *KeyMetadataRepresentation) SetAlgorithm(v string)` + +SetAlgorithm sets Algorithm field to given value. + +### HasAlgorithm + +`func (o *KeyMetadataRepresentation) HasAlgorithm() bool` + +HasAlgorithm returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *KeyMetadataRepresentation) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *KeyMetadataRepresentation) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetCertificate + +`func (o *KeyMetadataRepresentation) GetCertificate() string` + +GetCertificate returns the Certificate field if non-nil, zero value otherwise. + +### GetCertificateOk + +`func (o *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) SetCertificate(v string)` + +SetCertificate sets Certificate field to given value. + +### HasCertificate + +`func (o *KeyMetadataRepresentation) HasCertificate() bool` + +HasCertificate returns a boolean if a field has been set. + +### GetUse + +`func (o *KeyMetadataRepresentation) GetUse() KeyUse` + +GetUse returns the Use field if non-nil, zero value otherwise. + +### GetUseOk + +`func (o *KeyMetadataRepresentation) GetUseOk() (*KeyUse, bool)` + +GetUseOk returns a tuple with the Use field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUse + +`func (o *KeyMetadataRepresentation) SetUse(v KeyUse)` + +SetUse sets Use field to given value. + +### HasUse + +`func (o *KeyMetadataRepresentation) HasUse() bool` + +HasUse returns a boolean if a field has been set. + +### GetValidTo + +`func (o *KeyMetadataRepresentation) GetValidTo() int64` + +GetValidTo returns the ValidTo field if non-nil, zero value otherwise. + +### GetValidToOk + +`func (o *KeyMetadataRepresentation) GetValidToOk() (*int64, bool)` + +GetValidToOk returns a tuple with the ValidTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidTo + +`func (o *KeyMetadataRepresentation) SetValidTo(v int64)` + +SetValidTo sets ValidTo field to given value. + +### HasValidTo + +`func (o *KeyMetadataRepresentation) HasValidTo() bool` + +HasValidTo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeyStoreConfig.md b/docs/KeyStoreConfig.md new file mode 100644 index 0000000..39f38e2 --- /dev/null +++ b/docs/KeyStoreConfig.md @@ -0,0 +1,186 @@ +# KeyStoreConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RealmCertificate** | Pointer to **bool** | | [optional] +**StorePassword** | Pointer to **string** | | [optional] +**KeyPassword** | Pointer to **string** | | [optional] +**KeyAlias** | Pointer to **string** | | [optional] +**RealmAlias** | Pointer to **string** | | [optional] +**Format** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyStoreConfig + +`func NewKeyStoreConfig() *KeyStoreConfig` + +NewKeyStoreConfig instantiates a new KeyStoreConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyStoreConfigWithDefaults + +`func NewKeyStoreConfigWithDefaults() *KeyStoreConfig` + +NewKeyStoreConfigWithDefaults instantiates a new KeyStoreConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRealmCertificate + +`func (o *KeyStoreConfig) GetRealmCertificate() bool` + +GetRealmCertificate returns the RealmCertificate field if non-nil, zero value otherwise. + +### GetRealmCertificateOk + +`func (o *KeyStoreConfig) GetRealmCertificateOk() (*bool, bool)` + +GetRealmCertificateOk returns a tuple with the RealmCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmCertificate + +`func (o *KeyStoreConfig) SetRealmCertificate(v bool)` + +SetRealmCertificate sets RealmCertificate field to given value. + +### HasRealmCertificate + +`func (o *KeyStoreConfig) HasRealmCertificate() bool` + +HasRealmCertificate returns a boolean if a field has been set. + +### GetStorePassword + +`func (o *KeyStoreConfig) GetStorePassword() string` + +GetStorePassword returns the StorePassword field if non-nil, zero value otherwise. + +### GetStorePasswordOk + +`func (o *KeyStoreConfig) GetStorePasswordOk() (*string, bool)` + +GetStorePasswordOk returns a tuple with the StorePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePassword + +`func (o *KeyStoreConfig) SetStorePassword(v string)` + +SetStorePassword sets StorePassword field to given value. + +### HasStorePassword + +`func (o *KeyStoreConfig) HasStorePassword() bool` + +HasStorePassword returns a boolean if a field has been set. + +### GetKeyPassword + +`func (o *KeyStoreConfig) GetKeyPassword() string` + +GetKeyPassword returns the KeyPassword field if non-nil, zero value otherwise. + +### GetKeyPasswordOk + +`func (o *KeyStoreConfig) GetKeyPasswordOk() (*string, bool)` + +GetKeyPasswordOk returns a tuple with the KeyPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyPassword + +`func (o *KeyStoreConfig) SetKeyPassword(v string)` + +SetKeyPassword sets KeyPassword field to given value. + +### HasKeyPassword + +`func (o *KeyStoreConfig) HasKeyPassword() bool` + +HasKeyPassword returns a boolean if a field has been set. + +### GetKeyAlias + +`func (o *KeyStoreConfig) GetKeyAlias() string` + +GetKeyAlias returns the KeyAlias field if non-nil, zero value otherwise. + +### GetKeyAliasOk + +`func (o *KeyStoreConfig) GetKeyAliasOk() (*string, bool)` + +GetKeyAliasOk returns a tuple with the KeyAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyAlias + +`func (o *KeyStoreConfig) SetKeyAlias(v string)` + +SetKeyAlias sets KeyAlias field to given value. + +### HasKeyAlias + +`func (o *KeyStoreConfig) HasKeyAlias() bool` + +HasKeyAlias returns a boolean if a field has been set. + +### GetRealmAlias + +`func (o *KeyStoreConfig) GetRealmAlias() string` + +GetRealmAlias returns the RealmAlias field if non-nil, zero value otherwise. + +### GetRealmAliasOk + +`func (o *KeyStoreConfig) GetRealmAliasOk() (*string, bool)` + +GetRealmAliasOk returns a tuple with the RealmAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmAlias + +`func (o *KeyStoreConfig) SetRealmAlias(v string)` + +SetRealmAlias sets RealmAlias field to given value. + +### HasRealmAlias + +`func (o *KeyStoreConfig) HasRealmAlias() bool` + +HasRealmAlias returns a boolean if a field has been set. + +### GetFormat + +`func (o *KeyStoreConfig) GetFormat() string` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *KeyStoreConfig) GetFormatOk() (*string, bool)` + +GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormat + +`func (o *KeyStoreConfig) SetFormat(v string)` + +SetFormat sets Format field to given value. + +### HasFormat + +`func (o *KeyStoreConfig) HasFormat() bool` + +HasFormat returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeyUse.md b/docs/KeyUse.md new file mode 100644 index 0000000..beeb44a --- /dev/null +++ b/docs/KeyUse.md @@ -0,0 +1,13 @@ +# KeyUse + +## Enum + + +* `SIG` (value: `"SIG"`) + +* `ENC` (value: `"ENC"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeysMetadataRepresentation.md b/docs/KeysMetadataRepresentation.md new file mode 100644 index 0000000..33423fb --- /dev/null +++ b/docs/KeysMetadataRepresentation.md @@ -0,0 +1,82 @@ +# KeysMetadataRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | Pointer to **map[string]string** | | [optional] +**Keys** | Pointer to [**[]KeyMetadataRepresentation**](KeyMetadataRepresentation.md) | | [optional] + +## Methods + +### NewKeysMetadataRepresentation + +`func NewKeysMetadataRepresentation() *KeysMetadataRepresentation` + +NewKeysMetadataRepresentation instantiates a new KeysMetadataRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeysMetadataRepresentationWithDefaults + +`func NewKeysMetadataRepresentationWithDefaults() *KeysMetadataRepresentation` + +NewKeysMetadataRepresentationWithDefaults instantiates a new KeysMetadataRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActive + +`func (o *KeysMetadataRepresentation) GetActive() map[string]string` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *KeysMetadataRepresentation) GetActiveOk() (*map[string]string, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *KeysMetadataRepresentation) SetActive(v map[string]string)` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *KeysMetadataRepresentation) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### GetKeys + +`func (o *KeysMetadataRepresentation) GetKeys() []KeyMetadataRepresentation` + +GetKeys returns the Keys field if non-nil, zero value otherwise. + +### GetKeysOk + +`func (o *KeysMetadataRepresentation) GetKeysOk() (*[]KeyMetadataRepresentation, bool)` + +GetKeysOk returns a tuple with the Keys field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeys + +`func (o *KeysMetadataRepresentation) SetKeys(v []KeyMetadataRepresentation)` + +SetKeys sets Keys field to given value. + +### HasKeys + +`func (o *KeysMetadataRepresentation) HasKeys() bool` + +HasKeys returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Logic.md b/docs/Logic.md new file mode 100644 index 0000000..99e0d13 --- /dev/null +++ b/docs/Logic.md @@ -0,0 +1,13 @@ +# Logic + +## Enum + + +* `POSITIVE` (value: `"POSITIVE"`) + +* `NEGATIVE` (value: `"NEGATIVE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ManagementPermissionReference.md b/docs/ManagementPermissionReference.md new file mode 100644 index 0000000..356effd --- /dev/null +++ b/docs/ManagementPermissionReference.md @@ -0,0 +1,108 @@ +# ManagementPermissionReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | | [optional] +**Resource** | Pointer to **string** | | [optional] +**ScopePermissions** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewManagementPermissionReference + +`func NewManagementPermissionReference() *ManagementPermissionReference` + +NewManagementPermissionReference instantiates a new ManagementPermissionReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewManagementPermissionReferenceWithDefaults + +`func NewManagementPermissionReferenceWithDefaults() *ManagementPermissionReference` + +NewManagementPermissionReferenceWithDefaults instantiates a new ManagementPermissionReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnabled + +`func (o *ManagementPermissionReference) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ManagementPermissionReference) 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 *ManagementPermissionReference) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ManagementPermissionReference) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetResource + +`func (o *ManagementPermissionReference) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *ManagementPermissionReference) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *ManagementPermissionReference) SetResource(v string)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *ManagementPermissionReference) HasResource() bool` + +HasResource returns a boolean if a field has been set. + +### GetScopePermissions + +`func (o *ManagementPermissionReference) GetScopePermissions() map[string]string` + +GetScopePermissions returns the ScopePermissions field if non-nil, zero value otherwise. + +### GetScopePermissionsOk + +`func (o *ManagementPermissionReference) GetScopePermissionsOk() (*map[string]string, bool)` + +GetScopePermissionsOk returns a tuple with the ScopePermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopePermissions + +`func (o *ManagementPermissionReference) SetScopePermissions(v map[string]string)` + +SetScopePermissions sets ScopePermissions field to given value. + +### HasScopePermissions + +`func (o *ManagementPermissionReference) HasScopePermissions() bool` + +HasScopePermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingsRepresentation.md b/docs/MappingsRepresentation.md new file mode 100644 index 0000000..c91348b --- /dev/null +++ b/docs/MappingsRepresentation.md @@ -0,0 +1,82 @@ +# MappingsRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RealmMappings** | Pointer to [**[]RoleRepresentation**](RoleRepresentation.md) | | [optional] +**ClientMappings** | Pointer to [**map[string]ClientMappingsRepresentation**](ClientMappingsRepresentation.md) | | [optional] + +## Methods + +### NewMappingsRepresentation + +`func NewMappingsRepresentation() *MappingsRepresentation` + +NewMappingsRepresentation instantiates a new MappingsRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMappingsRepresentationWithDefaults + +`func NewMappingsRepresentationWithDefaults() *MappingsRepresentation` + +NewMappingsRepresentationWithDefaults instantiates a new MappingsRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRealmMappings + +`func (o *MappingsRepresentation) GetRealmMappings() []RoleRepresentation` + +GetRealmMappings returns the RealmMappings field if non-nil, zero value otherwise. + +### GetRealmMappingsOk + +`func (o *MappingsRepresentation) GetRealmMappingsOk() (*[]RoleRepresentation, bool)` + +GetRealmMappingsOk returns a tuple with the RealmMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmMappings + +`func (o *MappingsRepresentation) SetRealmMappings(v []RoleRepresentation)` + +SetRealmMappings sets RealmMappings field to given value. + +### HasRealmMappings + +`func (o *MappingsRepresentation) HasRealmMappings() bool` + +HasRealmMappings returns a boolean if a field has been set. + +### GetClientMappings + +`func (o *MappingsRepresentation) GetClientMappings() map[string]ClientMappingsRepresentation` + +GetClientMappings returns the ClientMappings field if non-nil, zero value otherwise. + +### GetClientMappingsOk + +`func (o *MappingsRepresentation) GetClientMappingsOk() (*map[string]ClientMappingsRepresentation, bool)` + +GetClientMappingsOk returns a tuple with the ClientMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMappings + +`func (o *MappingsRepresentation) SetClientMappings(v map[string]ClientMappingsRepresentation)` + +SetClientMappings sets ClientMappings field to given value. + +### HasClientMappings + +`func (o *MappingsRepresentation) HasClientMappings() bool` + +HasClientMappings returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MemberRepresentation.md b/docs/MemberRepresentation.md new file mode 100644 index 0000000..93ad4bb --- /dev/null +++ b/docs/MemberRepresentation.md @@ -0,0 +1,758 @@ +# MemberRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**EmailVerified** | Pointer to **bool** | | [optional] +**Attributes** | Pointer to **map[string][]string** | | [optional] +**UserProfileMetadata** | Pointer to [**UserProfileMetadata**](UserProfileMetadata.md) | | [optional] +**Self** | Pointer to **string** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**CreatedTimestamp** | Pointer to **int64** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Totp** | Pointer to **bool** | | [optional] +**FederationLink** | Pointer to **string** | | [optional] +**ServiceAccountClientId** | Pointer to **string** | | [optional] +**Credentials** | Pointer to [**[]CredentialRepresentation**](CredentialRepresentation.md) | | [optional] +**DisableableCredentialTypes** | Pointer to **[]string** | | [optional] +**RequiredActions** | Pointer to **[]string** | | [optional] +**FederatedIdentities** | Pointer to [**[]FederatedIdentityRepresentation**](FederatedIdentityRepresentation.md) | | [optional] +**RealmRoles** | Pointer to **[]string** | | [optional] +**ClientRoles** | Pointer to **map[string][]string** | | [optional] +**ClientConsents** | Pointer to [**[]UserConsentRepresentation**](UserConsentRepresentation.md) | | [optional] +**NotBefore** | Pointer to **int32** | | [optional] +**ApplicationRoles** | Pointer to **map[string][]string** | | [optional] +**SocialLinks** | Pointer to [**[]SocialLinkRepresentation**](SocialLinkRepresentation.md) | | [optional] +**Groups** | Pointer to **[]string** | | [optional] +**Access** | Pointer to **map[string]bool** | | [optional] +**MembershipType** | Pointer to [**MembershipType**](MembershipType.md) | | [optional] + +## Methods + +### NewMemberRepresentation + +`func NewMemberRepresentation() *MemberRepresentation` + +NewMemberRepresentation instantiates a new MemberRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMemberRepresentationWithDefaults + +`func NewMemberRepresentationWithDefaults() *MemberRepresentation` + +NewMemberRepresentationWithDefaults instantiates a new MemberRepresentation object +This 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 *MemberRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MemberRepresentation) 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 *MemberRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MemberRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *MemberRepresentation) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *MemberRepresentation) 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 *MemberRepresentation) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *MemberRepresentation) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetFirstName + +`func (o *MemberRepresentation) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *MemberRepresentation) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *MemberRepresentation) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *MemberRepresentation) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *MemberRepresentation) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *MemberRepresentation) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *MemberRepresentation) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *MemberRepresentation) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *MemberRepresentation) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *MemberRepresentation) 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 *MemberRepresentation) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *MemberRepresentation) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetEmailVerified + +`func (o *MemberRepresentation) GetEmailVerified() bool` + +GetEmailVerified returns the EmailVerified field if non-nil, zero value otherwise. + +### GetEmailVerifiedOk + +`func (o *MemberRepresentation) GetEmailVerifiedOk() (*bool, bool)` + +GetEmailVerifiedOk returns a tuple with the EmailVerified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailVerified + +`func (o *MemberRepresentation) SetEmailVerified(v bool)` + +SetEmailVerified sets EmailVerified field to given value. + +### HasEmailVerified + +`func (o *MemberRepresentation) HasEmailVerified() bool` + +HasEmailVerified returns a boolean if a field has been set. + +### GetAttributes + +`func (o *MemberRepresentation) GetAttributes() map[string][]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *MemberRepresentation) GetAttributesOk() (*map[string][]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *MemberRepresentation) SetAttributes(v map[string][]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *MemberRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetUserProfileMetadata + +`func (o *MemberRepresentation) GetUserProfileMetadata() UserProfileMetadata` + +GetUserProfileMetadata returns the UserProfileMetadata field if non-nil, zero value otherwise. + +### GetUserProfileMetadataOk + +`func (o *MemberRepresentation) GetUserProfileMetadataOk() (*UserProfileMetadata, bool)` + +GetUserProfileMetadataOk returns a tuple with the UserProfileMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserProfileMetadata + +`func (o *MemberRepresentation) SetUserProfileMetadata(v UserProfileMetadata)` + +SetUserProfileMetadata sets UserProfileMetadata field to given value. + +### HasUserProfileMetadata + +`func (o *MemberRepresentation) HasUserProfileMetadata() bool` + +HasUserProfileMetadata returns a boolean if a field has been set. + +### GetSelf + +`func (o *MemberRepresentation) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *MemberRepresentation) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *MemberRepresentation) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *MemberRepresentation) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetOrigin + +`func (o *MemberRepresentation) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *MemberRepresentation) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *MemberRepresentation) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *MemberRepresentation) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetCreatedTimestamp + +`func (o *MemberRepresentation) GetCreatedTimestamp() int64` + +GetCreatedTimestamp returns the CreatedTimestamp field if non-nil, zero value otherwise. + +### GetCreatedTimestampOk + +`func (o *MemberRepresentation) GetCreatedTimestampOk() (*int64, bool)` + +GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedTimestamp + +`func (o *MemberRepresentation) SetCreatedTimestamp(v int64)` + +SetCreatedTimestamp sets CreatedTimestamp field to given value. + +### HasCreatedTimestamp + +`func (o *MemberRepresentation) HasCreatedTimestamp() bool` + +HasCreatedTimestamp returns a boolean if a field has been set. + +### GetEnabled + +`func (o *MemberRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *MemberRepresentation) 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 *MemberRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *MemberRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetTotp + +`func (o *MemberRepresentation) GetTotp() bool` + +GetTotp returns the Totp field if non-nil, zero value otherwise. + +### GetTotpOk + +`func (o *MemberRepresentation) GetTotpOk() (*bool, bool)` + +GetTotpOk returns a tuple with the Totp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotp + +`func (o *MemberRepresentation) SetTotp(v bool)` + +SetTotp sets Totp field to given value. + +### HasTotp + +`func (o *MemberRepresentation) HasTotp() bool` + +HasTotp returns a boolean if a field has been set. + +### GetFederationLink + +`func (o *MemberRepresentation) GetFederationLink() string` + +GetFederationLink returns the FederationLink field if non-nil, zero value otherwise. + +### GetFederationLinkOk + +`func (o *MemberRepresentation) GetFederationLinkOk() (*string, bool)` + +GetFederationLinkOk returns a tuple with the FederationLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederationLink + +`func (o *MemberRepresentation) SetFederationLink(v string)` + +SetFederationLink sets FederationLink field to given value. + +### HasFederationLink + +`func (o *MemberRepresentation) HasFederationLink() bool` + +HasFederationLink returns a boolean if a field has been set. + +### GetServiceAccountClientId + +`func (o *MemberRepresentation) GetServiceAccountClientId() string` + +GetServiceAccountClientId returns the ServiceAccountClientId field if non-nil, zero value otherwise. + +### GetServiceAccountClientIdOk + +`func (o *MemberRepresentation) GetServiceAccountClientIdOk() (*string, bool)` + +GetServiceAccountClientIdOk returns a tuple with the ServiceAccountClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountClientId + +`func (o *MemberRepresentation) SetServiceAccountClientId(v string)` + +SetServiceAccountClientId sets ServiceAccountClientId field to given value. + +### HasServiceAccountClientId + +`func (o *MemberRepresentation) HasServiceAccountClientId() bool` + +HasServiceAccountClientId returns a boolean if a field has been set. + +### GetCredentials + +`func (o *MemberRepresentation) GetCredentials() []CredentialRepresentation` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *MemberRepresentation) GetCredentialsOk() (*[]CredentialRepresentation, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *MemberRepresentation) SetCredentials(v []CredentialRepresentation)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *MemberRepresentation) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetDisableableCredentialTypes + +`func (o *MemberRepresentation) GetDisableableCredentialTypes() []string` + +GetDisableableCredentialTypes returns the DisableableCredentialTypes field if non-nil, zero value otherwise. + +### GetDisableableCredentialTypesOk + +`func (o *MemberRepresentation) GetDisableableCredentialTypesOk() (*[]string, bool)` + +GetDisableableCredentialTypesOk returns a tuple with the DisableableCredentialTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableableCredentialTypes + +`func (o *MemberRepresentation) SetDisableableCredentialTypes(v []string)` + +SetDisableableCredentialTypes sets DisableableCredentialTypes field to given value. + +### HasDisableableCredentialTypes + +`func (o *MemberRepresentation) HasDisableableCredentialTypes() bool` + +HasDisableableCredentialTypes returns a boolean if a field has been set. + +### GetRequiredActions + +`func (o *MemberRepresentation) GetRequiredActions() []string` + +GetRequiredActions returns the RequiredActions field if non-nil, zero value otherwise. + +### GetRequiredActionsOk + +`func (o *MemberRepresentation) GetRequiredActionsOk() (*[]string, bool)` + +GetRequiredActionsOk returns a tuple with the RequiredActions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredActions + +`func (o *MemberRepresentation) SetRequiredActions(v []string)` + +SetRequiredActions sets RequiredActions field to given value. + +### HasRequiredActions + +`func (o *MemberRepresentation) HasRequiredActions() bool` + +HasRequiredActions returns a boolean if a field has been set. + +### GetFederatedIdentities + +`func (o *MemberRepresentation) GetFederatedIdentities() []FederatedIdentityRepresentation` + +GetFederatedIdentities returns the FederatedIdentities field if non-nil, zero value otherwise. + +### GetFederatedIdentitiesOk + +`func (o *MemberRepresentation) GetFederatedIdentitiesOk() (*[]FederatedIdentityRepresentation, bool)` + +GetFederatedIdentitiesOk returns a tuple with the FederatedIdentities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedIdentities + +`func (o *MemberRepresentation) SetFederatedIdentities(v []FederatedIdentityRepresentation)` + +SetFederatedIdentities sets FederatedIdentities field to given value. + +### HasFederatedIdentities + +`func (o *MemberRepresentation) HasFederatedIdentities() bool` + +HasFederatedIdentities returns a boolean if a field has been set. + +### GetRealmRoles + +`func (o *MemberRepresentation) GetRealmRoles() []string` + +GetRealmRoles returns the RealmRoles field if non-nil, zero value otherwise. + +### GetRealmRolesOk + +`func (o *MemberRepresentation) GetRealmRolesOk() (*[]string, bool)` + +GetRealmRolesOk returns a tuple with the RealmRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmRoles + +`func (o *MemberRepresentation) SetRealmRoles(v []string)` + +SetRealmRoles sets RealmRoles field to given value. + +### HasRealmRoles + +`func (o *MemberRepresentation) HasRealmRoles() bool` + +HasRealmRoles returns a boolean if a field has been set. + +### GetClientRoles + +`func (o *MemberRepresentation) GetClientRoles() map[string][]string` + +GetClientRoles returns the ClientRoles field if non-nil, zero value otherwise. + +### GetClientRolesOk + +`func (o *MemberRepresentation) GetClientRolesOk() (*map[string][]string, bool)` + +GetClientRolesOk returns a tuple with the ClientRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientRoles + +`func (o *MemberRepresentation) SetClientRoles(v map[string][]string)` + +SetClientRoles sets ClientRoles field to given value. + +### HasClientRoles + +`func (o *MemberRepresentation) HasClientRoles() bool` + +HasClientRoles returns a boolean if a field has been set. + +### GetClientConsents + +`func (o *MemberRepresentation) GetClientConsents() []UserConsentRepresentation` + +GetClientConsents returns the ClientConsents field if non-nil, zero value otherwise. + +### GetClientConsentsOk + +`func (o *MemberRepresentation) GetClientConsentsOk() (*[]UserConsentRepresentation, bool)` + +GetClientConsentsOk returns a tuple with the ClientConsents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientConsents + +`func (o *MemberRepresentation) SetClientConsents(v []UserConsentRepresentation)` + +SetClientConsents sets ClientConsents field to given value. + +### HasClientConsents + +`func (o *MemberRepresentation) HasClientConsents() bool` + +HasClientConsents returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *MemberRepresentation) GetNotBefore() int32` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *MemberRepresentation) GetNotBeforeOk() (*int32, 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 *MemberRepresentation) SetNotBefore(v int32)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *MemberRepresentation) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetApplicationRoles + +`func (o *MemberRepresentation) GetApplicationRoles() map[string][]string` + +GetApplicationRoles returns the ApplicationRoles field if non-nil, zero value otherwise. + +### GetApplicationRolesOk + +`func (o *MemberRepresentation) GetApplicationRolesOk() (*map[string][]string, bool)` + +GetApplicationRolesOk returns a tuple with the ApplicationRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationRoles + +`func (o *MemberRepresentation) SetApplicationRoles(v map[string][]string)` + +SetApplicationRoles sets ApplicationRoles field to given value. + +### HasApplicationRoles + +`func (o *MemberRepresentation) HasApplicationRoles() bool` + +HasApplicationRoles returns a boolean if a field has been set. + +### GetSocialLinks + +`func (o *MemberRepresentation) GetSocialLinks() []SocialLinkRepresentation` + +GetSocialLinks returns the SocialLinks field if non-nil, zero value otherwise. + +### GetSocialLinksOk + +`func (o *MemberRepresentation) GetSocialLinksOk() (*[]SocialLinkRepresentation, bool)` + +GetSocialLinksOk returns a tuple with the SocialLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocialLinks + +`func (o *MemberRepresentation) SetSocialLinks(v []SocialLinkRepresentation)` + +SetSocialLinks sets SocialLinks field to given value. + +### HasSocialLinks + +`func (o *MemberRepresentation) HasSocialLinks() bool` + +HasSocialLinks returns a boolean if a field has been set. + +### GetGroups + +`func (o *MemberRepresentation) GetGroups() []string` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *MemberRepresentation) GetGroupsOk() (*[]string, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *MemberRepresentation) SetGroups(v []string)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *MemberRepresentation) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetAccess + +`func (o *MemberRepresentation) GetAccess() map[string]bool` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *MemberRepresentation) GetAccessOk() (*map[string]bool, 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 *MemberRepresentation) SetAccess(v map[string]bool)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *MemberRepresentation) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### GetMembershipType + +`func (o *MemberRepresentation) GetMembershipType() MembershipType` + +GetMembershipType returns the MembershipType field if non-nil, zero value otherwise. + +### GetMembershipTypeOk + +`func (o *MemberRepresentation) GetMembershipTypeOk() (*MembershipType, bool)` + +GetMembershipTypeOk returns a tuple with the MembershipType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembershipType + +`func (o *MemberRepresentation) SetMembershipType(v MembershipType)` + +SetMembershipType sets MembershipType field to given value. + +### HasMembershipType + +`func (o *MemberRepresentation) HasMembershipType() bool` + +HasMembershipType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MembershipType.md b/docs/MembershipType.md new file mode 100644 index 0000000..65c5e82 --- /dev/null +++ b/docs/MembershipType.md @@ -0,0 +1,13 @@ +# MembershipType + +## Enum + + +* `UNMANAGED` (value: `"UNMANAGED"`) + +* `MANAGED` (value: `"MANAGED"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MethodConfig.md b/docs/MethodConfig.md new file mode 100644 index 0000000..a42d1a5 --- /dev/null +++ b/docs/MethodConfig.md @@ -0,0 +1,108 @@ +# MethodConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Method** | Pointer to **string** | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] +**ScopesEnforcementMode** | Pointer to [**ScopeEnforcementMode**](ScopeEnforcementMode.md) | | [optional] + +## Methods + +### NewMethodConfig + +`func NewMethodConfig() *MethodConfig` + +NewMethodConfig instantiates a new MethodConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMethodConfigWithDefaults + +`func NewMethodConfigWithDefaults() *MethodConfig` + +NewMethodConfigWithDefaults instantiates a new MethodConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMethod + +`func (o *MethodConfig) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *MethodConfig) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *MethodConfig) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *MethodConfig) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + +### GetScopes + +`func (o *MethodConfig) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *MethodConfig) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *MethodConfig) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *MethodConfig) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetScopesEnforcementMode + +`func (o *MethodConfig) GetScopesEnforcementMode() ScopeEnforcementMode` + +GetScopesEnforcementMode returns the ScopesEnforcementMode field if non-nil, zero value otherwise. + +### GetScopesEnforcementModeOk + +`func (o *MethodConfig) GetScopesEnforcementModeOk() (*ScopeEnforcementMode, bool)` + +GetScopesEnforcementModeOk returns a tuple with the ScopesEnforcementMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopesEnforcementMode + +`func (o *MethodConfig) SetScopesEnforcementMode(v ScopeEnforcementMode)` + +SetScopesEnforcementMode sets ScopesEnforcementMode field to given value. + +### HasScopesEnforcementMode + +`func (o *MethodConfig) HasScopesEnforcementMode() bool` + +HasScopesEnforcementMode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OAuthClientRepresentation.md b/docs/OAuthClientRepresentation.md new file mode 100644 index 0000000..81355e6 --- /dev/null +++ b/docs/OAuthClientRepresentation.md @@ -0,0 +1,1200 @@ +# OAuthClientRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**RootUrl** | Pointer to **string** | | [optional] +**AdminUrl** | Pointer to **string** | | [optional] +**BaseUrl** | Pointer to **string** | | [optional] +**SurrogateAuthRequired** | Pointer to **bool** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**AlwaysDisplayInConsole** | Pointer to **bool** | | [optional] +**ClientAuthenticatorType** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | | [optional] +**RegistrationAccessToken** | Pointer to **string** | | [optional] +**DefaultRoles** | Pointer to **[]string** | | [optional] +**RedirectUris** | Pointer to **[]string** | | [optional] +**WebOrigins** | Pointer to **[]string** | | [optional] +**NotBefore** | Pointer to **int32** | | [optional] +**BearerOnly** | Pointer to **bool** | | [optional] +**ConsentRequired** | Pointer to **bool** | | [optional] +**StandardFlowEnabled** | Pointer to **bool** | | [optional] +**ImplicitFlowEnabled** | Pointer to **bool** | | [optional] +**DirectAccessGrantsEnabled** | Pointer to **bool** | | [optional] +**ServiceAccountsEnabled** | Pointer to **bool** | | [optional] +**AuthorizationServicesEnabled** | Pointer to **bool** | | [optional] +**DirectGrantsOnly** | Pointer to **bool** | | [optional] +**PublicClient** | Pointer to **bool** | | [optional] +**FrontchannelLogout** | Pointer to **bool** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**Attributes** | Pointer to **map[string]string** | | [optional] +**AuthenticationFlowBindingOverrides** | Pointer to **map[string]string** | | [optional] +**FullScopeAllowed** | Pointer to **bool** | | [optional] +**NodeReRegistrationTimeout** | Pointer to **int32** | | [optional] +**RegisteredNodes** | Pointer to **map[string]int32** | | [optional] +**ProtocolMappers** | Pointer to [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | [optional] +**ClientTemplate** | Pointer to **string** | | [optional] +**UseTemplateConfig** | Pointer to **bool** | | [optional] +**UseTemplateScope** | Pointer to **bool** | | [optional] +**UseTemplateMappers** | Pointer to **bool** | | [optional] +**DefaultClientScopes** | Pointer to **[]string** | | [optional] +**OptionalClientScopes** | Pointer to **[]string** | | [optional] +**AuthorizationSettings** | Pointer to [**ResourceServerRepresentation**](ResourceServerRepresentation.md) | | [optional] +**Access** | Pointer to **map[string]bool** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Claims** | Pointer to [**ClaimRepresentation**](ClaimRepresentation.md) | | [optional] + +## Methods + +### NewOAuthClientRepresentation + +`func NewOAuthClientRepresentation() *OAuthClientRepresentation` + +NewOAuthClientRepresentation instantiates a new OAuthClientRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOAuthClientRepresentationWithDefaults + +`func NewOAuthClientRepresentationWithDefaults() *OAuthClientRepresentation` + +NewOAuthClientRepresentationWithDefaults instantiates a new OAuthClientRepresentation object +This 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 *OAuthClientRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *OAuthClientRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientId + +`func (o *OAuthClientRepresentation) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *OAuthClientRepresentation) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *OAuthClientRepresentation) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *OAuthClientRepresentation) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetDescription + +`func (o *OAuthClientRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *OAuthClientRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *OAuthClientRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *OAuthClientRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetRootUrl + +`func (o *OAuthClientRepresentation) GetRootUrl() string` + +GetRootUrl returns the RootUrl field if non-nil, zero value otherwise. + +### GetRootUrlOk + +`func (o *OAuthClientRepresentation) GetRootUrlOk() (*string, bool)` + +GetRootUrlOk returns a tuple with the RootUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRootUrl + +`func (o *OAuthClientRepresentation) SetRootUrl(v string)` + +SetRootUrl sets RootUrl field to given value. + +### HasRootUrl + +`func (o *OAuthClientRepresentation) HasRootUrl() bool` + +HasRootUrl returns a boolean if a field has been set. + +### GetAdminUrl + +`func (o *OAuthClientRepresentation) GetAdminUrl() string` + +GetAdminUrl returns the AdminUrl field if non-nil, zero value otherwise. + +### GetAdminUrlOk + +`func (o *OAuthClientRepresentation) GetAdminUrlOk() (*string, bool)` + +GetAdminUrlOk returns a tuple with the AdminUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminUrl + +`func (o *OAuthClientRepresentation) SetAdminUrl(v string)` + +SetAdminUrl sets AdminUrl field to given value. + +### HasAdminUrl + +`func (o *OAuthClientRepresentation) HasAdminUrl() bool` + +HasAdminUrl returns a boolean if a field has been set. + +### GetBaseUrl + +`func (o *OAuthClientRepresentation) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *OAuthClientRepresentation) GetBaseUrlOk() (*string, bool)` + +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseUrl + +`func (o *OAuthClientRepresentation) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *OAuthClientRepresentation) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + +### GetSurrogateAuthRequired + +`func (o *OAuthClientRepresentation) GetSurrogateAuthRequired() bool` + +GetSurrogateAuthRequired returns the SurrogateAuthRequired field if non-nil, zero value otherwise. + +### GetSurrogateAuthRequiredOk + +`func (o *OAuthClientRepresentation) GetSurrogateAuthRequiredOk() (*bool, bool)` + +GetSurrogateAuthRequiredOk returns a tuple with the SurrogateAuthRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSurrogateAuthRequired + +`func (o *OAuthClientRepresentation) SetSurrogateAuthRequired(v bool)` + +SetSurrogateAuthRequired sets SurrogateAuthRequired field to given value. + +### HasSurrogateAuthRequired + +`func (o *OAuthClientRepresentation) HasSurrogateAuthRequired() bool` + +HasSurrogateAuthRequired returns a boolean if a field has been set. + +### GetEnabled + +`func (o *OAuthClientRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *OAuthClientRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetAlwaysDisplayInConsole + +`func (o *OAuthClientRepresentation) GetAlwaysDisplayInConsole() bool` + +GetAlwaysDisplayInConsole returns the AlwaysDisplayInConsole field if non-nil, zero value otherwise. + +### GetAlwaysDisplayInConsoleOk + +`func (o *OAuthClientRepresentation) GetAlwaysDisplayInConsoleOk() (*bool, bool)` + +GetAlwaysDisplayInConsoleOk returns a tuple with the AlwaysDisplayInConsole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlwaysDisplayInConsole + +`func (o *OAuthClientRepresentation) SetAlwaysDisplayInConsole(v bool)` + +SetAlwaysDisplayInConsole sets AlwaysDisplayInConsole field to given value. + +### HasAlwaysDisplayInConsole + +`func (o *OAuthClientRepresentation) HasAlwaysDisplayInConsole() bool` + +HasAlwaysDisplayInConsole returns a boolean if a field has been set. + +### GetClientAuthenticatorType + +`func (o *OAuthClientRepresentation) GetClientAuthenticatorType() string` + +GetClientAuthenticatorType returns the ClientAuthenticatorType field if non-nil, zero value otherwise. + +### GetClientAuthenticatorTypeOk + +`func (o *OAuthClientRepresentation) GetClientAuthenticatorTypeOk() (*string, bool)` + +GetClientAuthenticatorTypeOk returns a tuple with the ClientAuthenticatorType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAuthenticatorType + +`func (o *OAuthClientRepresentation) SetClientAuthenticatorType(v string)` + +SetClientAuthenticatorType sets ClientAuthenticatorType field to given value. + +### HasClientAuthenticatorType + +`func (o *OAuthClientRepresentation) HasClientAuthenticatorType() bool` + +HasClientAuthenticatorType returns a boolean if a field has been set. + +### GetSecret + +`func (o *OAuthClientRepresentation) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *OAuthClientRepresentation) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *OAuthClientRepresentation) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *OAuthClientRepresentation) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetRegistrationAccessToken + +`func (o *OAuthClientRepresentation) GetRegistrationAccessToken() string` + +GetRegistrationAccessToken returns the RegistrationAccessToken field if non-nil, zero value otherwise. + +### GetRegistrationAccessTokenOk + +`func (o *OAuthClientRepresentation) GetRegistrationAccessTokenOk() (*string, bool)` + +GetRegistrationAccessTokenOk returns a tuple with the RegistrationAccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistrationAccessToken + +`func (o *OAuthClientRepresentation) SetRegistrationAccessToken(v string)` + +SetRegistrationAccessToken sets RegistrationAccessToken field to given value. + +### HasRegistrationAccessToken + +`func (o *OAuthClientRepresentation) HasRegistrationAccessToken() bool` + +HasRegistrationAccessToken returns a boolean if a field has been set. + +### GetDefaultRoles + +`func (o *OAuthClientRepresentation) GetDefaultRoles() []string` + +GetDefaultRoles returns the DefaultRoles field if non-nil, zero value otherwise. + +### GetDefaultRolesOk + +`func (o *OAuthClientRepresentation) GetDefaultRolesOk() (*[]string, bool)` + +GetDefaultRolesOk returns a tuple with the DefaultRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultRoles + +`func (o *OAuthClientRepresentation) SetDefaultRoles(v []string)` + +SetDefaultRoles sets DefaultRoles field to given value. + +### HasDefaultRoles + +`func (o *OAuthClientRepresentation) HasDefaultRoles() bool` + +HasDefaultRoles returns a boolean if a field has been set. + +### GetRedirectUris + +`func (o *OAuthClientRepresentation) GetRedirectUris() []string` + +GetRedirectUris returns the RedirectUris field if non-nil, zero value otherwise. + +### GetRedirectUrisOk + +`func (o *OAuthClientRepresentation) GetRedirectUrisOk() (*[]string, bool)` + +GetRedirectUrisOk returns a tuple with the RedirectUris field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirectUris + +`func (o *OAuthClientRepresentation) SetRedirectUris(v []string)` + +SetRedirectUris sets RedirectUris field to given value. + +### HasRedirectUris + +`func (o *OAuthClientRepresentation) HasRedirectUris() bool` + +HasRedirectUris returns a boolean if a field has been set. + +### GetWebOrigins + +`func (o *OAuthClientRepresentation) GetWebOrigins() []string` + +GetWebOrigins returns the WebOrigins field if non-nil, zero value otherwise. + +### GetWebOriginsOk + +`func (o *OAuthClientRepresentation) GetWebOriginsOk() (*[]string, bool)` + +GetWebOriginsOk returns a tuple with the WebOrigins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebOrigins + +`func (o *OAuthClientRepresentation) SetWebOrigins(v []string)` + +SetWebOrigins sets WebOrigins field to given value. + +### HasWebOrigins + +`func (o *OAuthClientRepresentation) HasWebOrigins() bool` + +HasWebOrigins returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *OAuthClientRepresentation) GetNotBefore() int32` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *OAuthClientRepresentation) GetNotBeforeOk() (*int32, 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 *OAuthClientRepresentation) SetNotBefore(v int32)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *OAuthClientRepresentation) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetBearerOnly + +`func (o *OAuthClientRepresentation) GetBearerOnly() bool` + +GetBearerOnly returns the BearerOnly field if non-nil, zero value otherwise. + +### GetBearerOnlyOk + +`func (o *OAuthClientRepresentation) GetBearerOnlyOk() (*bool, bool)` + +GetBearerOnlyOk returns a tuple with the BearerOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBearerOnly + +`func (o *OAuthClientRepresentation) SetBearerOnly(v bool)` + +SetBearerOnly sets BearerOnly field to given value. + +### HasBearerOnly + +`func (o *OAuthClientRepresentation) HasBearerOnly() bool` + +HasBearerOnly returns a boolean if a field has been set. + +### GetConsentRequired + +`func (o *OAuthClientRepresentation) GetConsentRequired() bool` + +GetConsentRequired returns the ConsentRequired field if non-nil, zero value otherwise. + +### GetConsentRequiredOk + +`func (o *OAuthClientRepresentation) GetConsentRequiredOk() (*bool, bool)` + +GetConsentRequiredOk returns a tuple with the ConsentRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsentRequired + +`func (o *OAuthClientRepresentation) SetConsentRequired(v bool)` + +SetConsentRequired sets ConsentRequired field to given value. + +### HasConsentRequired + +`func (o *OAuthClientRepresentation) HasConsentRequired() bool` + +HasConsentRequired returns a boolean if a field has been set. + +### GetStandardFlowEnabled + +`func (o *OAuthClientRepresentation) GetStandardFlowEnabled() bool` + +GetStandardFlowEnabled returns the StandardFlowEnabled field if non-nil, zero value otherwise. + +### GetStandardFlowEnabledOk + +`func (o *OAuthClientRepresentation) GetStandardFlowEnabledOk() (*bool, bool)` + +GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandardFlowEnabled + +`func (o *OAuthClientRepresentation) SetStandardFlowEnabled(v bool)` + +SetStandardFlowEnabled sets StandardFlowEnabled field to given value. + +### HasStandardFlowEnabled + +`func (o *OAuthClientRepresentation) HasStandardFlowEnabled() bool` + +HasStandardFlowEnabled returns a boolean if a field has been set. + +### GetImplicitFlowEnabled + +`func (o *OAuthClientRepresentation) GetImplicitFlowEnabled() bool` + +GetImplicitFlowEnabled returns the ImplicitFlowEnabled field if non-nil, zero value otherwise. + +### GetImplicitFlowEnabledOk + +`func (o *OAuthClientRepresentation) GetImplicitFlowEnabledOk() (*bool, bool)` + +GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImplicitFlowEnabled + +`func (o *OAuthClientRepresentation) SetImplicitFlowEnabled(v bool)` + +SetImplicitFlowEnabled sets ImplicitFlowEnabled field to given value. + +### HasImplicitFlowEnabled + +`func (o *OAuthClientRepresentation) HasImplicitFlowEnabled() bool` + +HasImplicitFlowEnabled returns a boolean if a field has been set. + +### GetDirectAccessGrantsEnabled + +`func (o *OAuthClientRepresentation) GetDirectAccessGrantsEnabled() bool` + +GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field if non-nil, zero value otherwise. + +### GetDirectAccessGrantsEnabledOk + +`func (o *OAuthClientRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool)` + +GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectAccessGrantsEnabled + +`func (o *OAuthClientRepresentation) SetDirectAccessGrantsEnabled(v bool)` + +SetDirectAccessGrantsEnabled sets DirectAccessGrantsEnabled field to given value. + +### HasDirectAccessGrantsEnabled + +`func (o *OAuthClientRepresentation) HasDirectAccessGrantsEnabled() bool` + +HasDirectAccessGrantsEnabled returns a boolean if a field has been set. + +### GetServiceAccountsEnabled + +`func (o *OAuthClientRepresentation) GetServiceAccountsEnabled() bool` + +GetServiceAccountsEnabled returns the ServiceAccountsEnabled field if non-nil, zero value otherwise. + +### GetServiceAccountsEnabledOk + +`func (o *OAuthClientRepresentation) GetServiceAccountsEnabledOk() (*bool, bool)` + +GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountsEnabled + +`func (o *OAuthClientRepresentation) SetServiceAccountsEnabled(v bool)` + +SetServiceAccountsEnabled sets ServiceAccountsEnabled field to given value. + +### HasServiceAccountsEnabled + +`func (o *OAuthClientRepresentation) HasServiceAccountsEnabled() bool` + +HasServiceAccountsEnabled returns a boolean if a field has been set. + +### GetAuthorizationServicesEnabled + +`func (o *OAuthClientRepresentation) GetAuthorizationServicesEnabled() bool` + +GetAuthorizationServicesEnabled returns the AuthorizationServicesEnabled field if non-nil, zero value otherwise. + +### GetAuthorizationServicesEnabledOk + +`func (o *OAuthClientRepresentation) GetAuthorizationServicesEnabledOk() (*bool, bool)` + +GetAuthorizationServicesEnabledOk returns a tuple with the AuthorizationServicesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationServicesEnabled + +`func (o *OAuthClientRepresentation) SetAuthorizationServicesEnabled(v bool)` + +SetAuthorizationServicesEnabled sets AuthorizationServicesEnabled field to given value. + +### HasAuthorizationServicesEnabled + +`func (o *OAuthClientRepresentation) HasAuthorizationServicesEnabled() bool` + +HasAuthorizationServicesEnabled returns a boolean if a field has been set. + +### GetDirectGrantsOnly + +`func (o *OAuthClientRepresentation) GetDirectGrantsOnly() bool` + +GetDirectGrantsOnly returns the DirectGrantsOnly field if non-nil, zero value otherwise. + +### GetDirectGrantsOnlyOk + +`func (o *OAuthClientRepresentation) GetDirectGrantsOnlyOk() (*bool, bool)` + +GetDirectGrantsOnlyOk returns a tuple with the DirectGrantsOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectGrantsOnly + +`func (o *OAuthClientRepresentation) SetDirectGrantsOnly(v bool)` + +SetDirectGrantsOnly sets DirectGrantsOnly field to given value. + +### HasDirectGrantsOnly + +`func (o *OAuthClientRepresentation) HasDirectGrantsOnly() bool` + +HasDirectGrantsOnly returns a boolean if a field has been set. + +### GetPublicClient + +`func (o *OAuthClientRepresentation) GetPublicClient() bool` + +GetPublicClient returns the PublicClient field if non-nil, zero value otherwise. + +### GetPublicClientOk + +`func (o *OAuthClientRepresentation) GetPublicClientOk() (*bool, bool)` + +GetPublicClientOk returns a tuple with the PublicClient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicClient + +`func (o *OAuthClientRepresentation) SetPublicClient(v bool)` + +SetPublicClient sets PublicClient field to given value. + +### HasPublicClient + +`func (o *OAuthClientRepresentation) HasPublicClient() bool` + +HasPublicClient returns a boolean if a field has been set. + +### GetFrontchannelLogout + +`func (o *OAuthClientRepresentation) GetFrontchannelLogout() bool` + +GetFrontchannelLogout returns the FrontchannelLogout field if non-nil, zero value otherwise. + +### GetFrontchannelLogoutOk + +`func (o *OAuthClientRepresentation) GetFrontchannelLogoutOk() (*bool, bool)` + +GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontchannelLogout + +`func (o *OAuthClientRepresentation) SetFrontchannelLogout(v bool)` + +SetFrontchannelLogout sets FrontchannelLogout field to given value. + +### HasFrontchannelLogout + +`func (o *OAuthClientRepresentation) HasFrontchannelLogout() bool` + +HasFrontchannelLogout returns a boolean if a field has been set. + +### GetProtocol + +`func (o *OAuthClientRepresentation) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *OAuthClientRepresentation) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *OAuthClientRepresentation) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *OAuthClientRepresentation) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetAttributes + +`func (o *OAuthClientRepresentation) GetAttributes() map[string]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *OAuthClientRepresentation) GetAttributesOk() (*map[string]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *OAuthClientRepresentation) SetAttributes(v map[string]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *OAuthClientRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetAuthenticationFlowBindingOverrides + +`func (o *OAuthClientRepresentation) GetAuthenticationFlowBindingOverrides() map[string]string` + +GetAuthenticationFlowBindingOverrides returns the AuthenticationFlowBindingOverrides field if non-nil, zero value otherwise. + +### GetAuthenticationFlowBindingOverridesOk + +`func (o *OAuthClientRepresentation) GetAuthenticationFlowBindingOverridesOk() (*map[string]string, bool)` + +GetAuthenticationFlowBindingOverridesOk returns a tuple with the AuthenticationFlowBindingOverrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationFlowBindingOverrides + +`func (o *OAuthClientRepresentation) SetAuthenticationFlowBindingOverrides(v map[string]string)` + +SetAuthenticationFlowBindingOverrides sets AuthenticationFlowBindingOverrides field to given value. + +### HasAuthenticationFlowBindingOverrides + +`func (o *OAuthClientRepresentation) HasAuthenticationFlowBindingOverrides() bool` + +HasAuthenticationFlowBindingOverrides returns a boolean if a field has been set. + +### GetFullScopeAllowed + +`func (o *OAuthClientRepresentation) GetFullScopeAllowed() bool` + +GetFullScopeAllowed returns the FullScopeAllowed field if non-nil, zero value otherwise. + +### GetFullScopeAllowedOk + +`func (o *OAuthClientRepresentation) GetFullScopeAllowedOk() (*bool, bool)` + +GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScopeAllowed + +`func (o *OAuthClientRepresentation) SetFullScopeAllowed(v bool)` + +SetFullScopeAllowed sets FullScopeAllowed field to given value. + +### HasFullScopeAllowed + +`func (o *OAuthClientRepresentation) HasFullScopeAllowed() bool` + +HasFullScopeAllowed returns a boolean if a field has been set. + +### GetNodeReRegistrationTimeout + +`func (o *OAuthClientRepresentation) GetNodeReRegistrationTimeout() int32` + +GetNodeReRegistrationTimeout returns the NodeReRegistrationTimeout field if non-nil, zero value otherwise. + +### GetNodeReRegistrationTimeoutOk + +`func (o *OAuthClientRepresentation) GetNodeReRegistrationTimeoutOk() (*int32, bool)` + +GetNodeReRegistrationTimeoutOk returns a tuple with the NodeReRegistrationTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeReRegistrationTimeout + +`func (o *OAuthClientRepresentation) SetNodeReRegistrationTimeout(v int32)` + +SetNodeReRegistrationTimeout sets NodeReRegistrationTimeout field to given value. + +### HasNodeReRegistrationTimeout + +`func (o *OAuthClientRepresentation) HasNodeReRegistrationTimeout() bool` + +HasNodeReRegistrationTimeout returns a boolean if a field has been set. + +### GetRegisteredNodes + +`func (o *OAuthClientRepresentation) GetRegisteredNodes() map[string]int32` + +GetRegisteredNodes returns the RegisteredNodes field if non-nil, zero value otherwise. + +### GetRegisteredNodesOk + +`func (o *OAuthClientRepresentation) GetRegisteredNodesOk() (*map[string]int32, bool)` + +GetRegisteredNodesOk returns a tuple with the RegisteredNodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredNodes + +`func (o *OAuthClientRepresentation) SetRegisteredNodes(v map[string]int32)` + +SetRegisteredNodes sets RegisteredNodes field to given value. + +### HasRegisteredNodes + +`func (o *OAuthClientRepresentation) HasRegisteredNodes() bool` + +HasRegisteredNodes returns a boolean if a field has been set. + +### GetProtocolMappers + +`func (o *OAuthClientRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation` + +GetProtocolMappers returns the ProtocolMappers field if non-nil, zero value otherwise. + +### GetProtocolMappersOk + +`func (o *OAuthClientRepresentation) GetProtocolMappersOk() (*[]ProtocolMapperRepresentation, bool)` + +GetProtocolMappersOk returns a tuple with the ProtocolMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMappers + +`func (o *OAuthClientRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation)` + +SetProtocolMappers sets ProtocolMappers field to given value. + +### HasProtocolMappers + +`func (o *OAuthClientRepresentation) HasProtocolMappers() bool` + +HasProtocolMappers returns a boolean if a field has been set. + +### GetClientTemplate + +`func (o *OAuthClientRepresentation) GetClientTemplate() string` + +GetClientTemplate returns the ClientTemplate field if non-nil, zero value otherwise. + +### GetClientTemplateOk + +`func (o *OAuthClientRepresentation) GetClientTemplateOk() (*string, bool)` + +GetClientTemplateOk returns a tuple with the ClientTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTemplate + +`func (o *OAuthClientRepresentation) SetClientTemplate(v string)` + +SetClientTemplate sets ClientTemplate field to given value. + +### HasClientTemplate + +`func (o *OAuthClientRepresentation) HasClientTemplate() bool` + +HasClientTemplate returns a boolean if a field has been set. + +### GetUseTemplateConfig + +`func (o *OAuthClientRepresentation) GetUseTemplateConfig() bool` + +GetUseTemplateConfig returns the UseTemplateConfig field if non-nil, zero value otherwise. + +### GetUseTemplateConfigOk + +`func (o *OAuthClientRepresentation) GetUseTemplateConfigOk() (*bool, bool)` + +GetUseTemplateConfigOk returns a tuple with the UseTemplateConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateConfig + +`func (o *OAuthClientRepresentation) SetUseTemplateConfig(v bool)` + +SetUseTemplateConfig sets UseTemplateConfig field to given value. + +### HasUseTemplateConfig + +`func (o *OAuthClientRepresentation) HasUseTemplateConfig() bool` + +HasUseTemplateConfig returns a boolean if a field has been set. + +### GetUseTemplateScope + +`func (o *OAuthClientRepresentation) GetUseTemplateScope() bool` + +GetUseTemplateScope returns the UseTemplateScope field if non-nil, zero value otherwise. + +### GetUseTemplateScopeOk + +`func (o *OAuthClientRepresentation) GetUseTemplateScopeOk() (*bool, bool)` + +GetUseTemplateScopeOk returns a tuple with the UseTemplateScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateScope + +`func (o *OAuthClientRepresentation) SetUseTemplateScope(v bool)` + +SetUseTemplateScope sets UseTemplateScope field to given value. + +### HasUseTemplateScope + +`func (o *OAuthClientRepresentation) HasUseTemplateScope() bool` + +HasUseTemplateScope returns a boolean if a field has been set. + +### GetUseTemplateMappers + +`func (o *OAuthClientRepresentation) GetUseTemplateMappers() bool` + +GetUseTemplateMappers returns the UseTemplateMappers field if non-nil, zero value otherwise. + +### GetUseTemplateMappersOk + +`func (o *OAuthClientRepresentation) GetUseTemplateMappersOk() (*bool, bool)` + +GetUseTemplateMappersOk returns a tuple with the UseTemplateMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseTemplateMappers + +`func (o *OAuthClientRepresentation) SetUseTemplateMappers(v bool)` + +SetUseTemplateMappers sets UseTemplateMappers field to given value. + +### HasUseTemplateMappers + +`func (o *OAuthClientRepresentation) HasUseTemplateMappers() bool` + +HasUseTemplateMappers returns a boolean if a field has been set. + +### GetDefaultClientScopes + +`func (o *OAuthClientRepresentation) GetDefaultClientScopes() []string` + +GetDefaultClientScopes returns the DefaultClientScopes field if non-nil, zero value otherwise. + +### GetDefaultClientScopesOk + +`func (o *OAuthClientRepresentation) GetDefaultClientScopesOk() (*[]string, bool)` + +GetDefaultClientScopesOk returns a tuple with the DefaultClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultClientScopes + +`func (o *OAuthClientRepresentation) SetDefaultClientScopes(v []string)` + +SetDefaultClientScopes sets DefaultClientScopes field to given value. + +### HasDefaultClientScopes + +`func (o *OAuthClientRepresentation) HasDefaultClientScopes() bool` + +HasDefaultClientScopes returns a boolean if a field has been set. + +### GetOptionalClientScopes + +`func (o *OAuthClientRepresentation) GetOptionalClientScopes() []string` + +GetOptionalClientScopes returns the OptionalClientScopes field if non-nil, zero value otherwise. + +### GetOptionalClientScopesOk + +`func (o *OAuthClientRepresentation) GetOptionalClientScopesOk() (*[]string, bool)` + +GetOptionalClientScopesOk returns a tuple with the OptionalClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptionalClientScopes + +`func (o *OAuthClientRepresentation) SetOptionalClientScopes(v []string)` + +SetOptionalClientScopes sets OptionalClientScopes field to given value. + +### HasOptionalClientScopes + +`func (o *OAuthClientRepresentation) HasOptionalClientScopes() bool` + +HasOptionalClientScopes returns a boolean if a field has been set. + +### GetAuthorizationSettings + +`func (o *OAuthClientRepresentation) GetAuthorizationSettings() ResourceServerRepresentation` + +GetAuthorizationSettings returns the AuthorizationSettings field if non-nil, zero value otherwise. + +### GetAuthorizationSettingsOk + +`func (o *OAuthClientRepresentation) GetAuthorizationSettingsOk() (*ResourceServerRepresentation, bool)` + +GetAuthorizationSettingsOk returns a tuple with the AuthorizationSettings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationSettings + +`func (o *OAuthClientRepresentation) SetAuthorizationSettings(v ResourceServerRepresentation)` + +SetAuthorizationSettings sets AuthorizationSettings field to given value. + +### HasAuthorizationSettings + +`func (o *OAuthClientRepresentation) HasAuthorizationSettings() bool` + +HasAuthorizationSettings returns a boolean if a field has been set. + +### GetAccess + +`func (o *OAuthClientRepresentation) GetAccess() map[string]bool` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *OAuthClientRepresentation) GetAccessOk() (*map[string]bool, 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 *OAuthClientRepresentation) SetAccess(v map[string]bool)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *OAuthClientRepresentation) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### GetOrigin + +`func (o *OAuthClientRepresentation) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *OAuthClientRepresentation) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *OAuthClientRepresentation) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *OAuthClientRepresentation) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetName + +`func (o *OAuthClientRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OAuthClientRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetClaims + +`func (o *OAuthClientRepresentation) GetClaims() ClaimRepresentation` + +GetClaims returns the Claims field if non-nil, zero value otherwise. + +### GetClaimsOk + +`func (o *OAuthClientRepresentation) GetClaimsOk() (*ClaimRepresentation, bool)` + +GetClaimsOk returns a tuple with the Claims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaims + +`func (o *OAuthClientRepresentation) SetClaims(v ClaimRepresentation)` + +SetClaims sets Claims field to given value. + +### HasClaims + +`func (o *OAuthClientRepresentation) HasClaims() bool` + +HasClaims returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationDomainRepresentation.md b/docs/OrganizationDomainRepresentation.md new file mode 100644 index 0000000..691aab2 --- /dev/null +++ b/docs/OrganizationDomainRepresentation.md @@ -0,0 +1,82 @@ +# OrganizationDomainRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Verified** | Pointer to **bool** | | [optional] + +## Methods + +### NewOrganizationDomainRepresentation + +`func NewOrganizationDomainRepresentation() *OrganizationDomainRepresentation` + +NewOrganizationDomainRepresentation instantiates a new OrganizationDomainRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationDomainRepresentationWithDefaults + +`func NewOrganizationDomainRepresentationWithDefaults() *OrganizationDomainRepresentation` + +NewOrganizationDomainRepresentationWithDefaults instantiates a new OrganizationDomainRepresentation object +This 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 *OrganizationDomainRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrganizationDomainRepresentation) 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 *OrganizationDomainRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrganizationDomainRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVerified + +`func (o *OrganizationDomainRepresentation) GetVerified() bool` + +GetVerified returns the Verified field if non-nil, zero value otherwise. + +### GetVerifiedOk + +`func (o *OrganizationDomainRepresentation) GetVerifiedOk() (*bool, bool)` + +GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerified + +`func (o *OrganizationDomainRepresentation) SetVerified(v bool)` + +SetVerified sets Verified field to given value. + +### HasVerified + +`func (o *OrganizationDomainRepresentation) HasVerified() bool` + +HasVerified returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationRepresentation.md b/docs/OrganizationRepresentation.md new file mode 100644 index 0000000..97de966 --- /dev/null +++ b/docs/OrganizationRepresentation.md @@ -0,0 +1,290 @@ +# OrganizationRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Description** | Pointer to **string** | | [optional] +**RedirectUrl** | Pointer to **string** | | [optional] +**Attributes** | Pointer to **map[string][]string** | | [optional] +**Domains** | Pointer to [**[]OrganizationDomainRepresentation**](OrganizationDomainRepresentation.md) | | [optional] +**Members** | Pointer to [**[]MemberRepresentation**](MemberRepresentation.md) | | [optional] +**IdentityProviders** | Pointer to [**[]IdentityProviderRepresentation**](IdentityProviderRepresentation.md) | | [optional] + +## Methods + +### NewOrganizationRepresentation + +`func NewOrganizationRepresentation() *OrganizationRepresentation` + +NewOrganizationRepresentation instantiates a new OrganizationRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationRepresentationWithDefaults + +`func NewOrganizationRepresentationWithDefaults() *OrganizationRepresentation` + +NewOrganizationRepresentationWithDefaults instantiates a new OrganizationRepresentation object +This 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 *OrganizationRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *OrganizationRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *OrganizationRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrganizationRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAlias + +`func (o *OrganizationRepresentation) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *OrganizationRepresentation) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetEnabled + +`func (o *OrganizationRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *OrganizationRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDescription + +`func (o *OrganizationRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *OrganizationRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetRedirectUrl + +`func (o *OrganizationRepresentation) GetRedirectUrl() string` + +GetRedirectUrl returns the RedirectUrl field if non-nil, zero value otherwise. + +### GetRedirectUrlOk + +`func (o *OrganizationRepresentation) GetRedirectUrlOk() (*string, bool)` + +GetRedirectUrlOk returns a tuple with the RedirectUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirectUrl + +`func (o *OrganizationRepresentation) SetRedirectUrl(v string)` + +SetRedirectUrl sets RedirectUrl field to given value. + +### HasRedirectUrl + +`func (o *OrganizationRepresentation) HasRedirectUrl() bool` + +HasRedirectUrl returns a boolean if a field has been set. + +### GetAttributes + +`func (o *OrganizationRepresentation) GetAttributes() map[string][]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *OrganizationRepresentation) GetAttributesOk() (*map[string][]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *OrganizationRepresentation) SetAttributes(v map[string][]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *OrganizationRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetDomains + +`func (o *OrganizationRepresentation) GetDomains() []OrganizationDomainRepresentation` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *OrganizationRepresentation) GetDomainsOk() (*[]OrganizationDomainRepresentation, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *OrganizationRepresentation) SetDomains(v []OrganizationDomainRepresentation)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *OrganizationRepresentation) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetMembers + +`func (o *OrganizationRepresentation) GetMembers() []MemberRepresentation` + +GetMembers returns the Members field if non-nil, zero value otherwise. + +### GetMembersOk + +`func (o *OrganizationRepresentation) GetMembersOk() (*[]MemberRepresentation, bool)` + +GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembers + +`func (o *OrganizationRepresentation) SetMembers(v []MemberRepresentation)` + +SetMembers sets Members field to given value. + +### HasMembers + +`func (o *OrganizationRepresentation) HasMembers() bool` + +HasMembers returns a boolean if a field has been set. + +### GetIdentityProviders + +`func (o *OrganizationRepresentation) GetIdentityProviders() []IdentityProviderRepresentation` + +GetIdentityProviders returns the IdentityProviders field if non-nil, zero value otherwise. + +### GetIdentityProvidersOk + +`func (o *OrganizationRepresentation) GetIdentityProvidersOk() (*[]IdentityProviderRepresentation, bool)` + +GetIdentityProvidersOk returns a tuple with the IdentityProviders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityProviders + +`func (o *OrganizationRepresentation) SetIdentityProviders(v []IdentityProviderRepresentation)` + +SetIdentityProviders sets IdentityProviders field to given value. + +### HasIdentityProviders + +`func (o *OrganizationRepresentation) HasIdentityProviders() bool` + +HasIdentityProviders returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationsAPI.md b/docs/OrganizationsAPI.md new file mode 100644 index 0000000..05a33a7 --- /dev/null +++ b/docs/OrganizationsAPI.md @@ -0,0 +1,1343 @@ +# \OrganizationsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmOrganizationsGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsGet) | **Get** /admin/realms/{realm}/organizations | Returns a paginated list of organizations filtered according to the specified parameters +[**AdminRealmsRealmOrganizationsIdDelete**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdDelete) | **Delete** /admin/realms/{realm}/organizations/{id} | Deletes the organization +[**AdminRealmsRealmOrganizationsIdGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdGet) | **Get** /admin/realms/{realm}/organizations/{id} | Returns the organization representation +[**AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete) | **Delete** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Removes the identity provider with the specified alias from the organization +[**AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet) | **Get** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Returns the identity provider associated with the organization that has the specified alias +[**AdminRealmsRealmOrganizationsIdIdentityProvidersGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdIdentityProvidersGet) | **Get** /admin/realms/{realm}/organizations/{id}/identity-providers | Returns all identity providers associated with the organization +[**AdminRealmsRealmOrganizationsIdIdentityProvidersPost**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdIdentityProvidersPost) | **Post** /admin/realms/{realm}/organizations/{id}/identity-providers | Adds the identity provider with the specified id to the organization +[**AdminRealmsRealmOrganizationsIdMembersCountGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersCountGet) | **Get** /admin/realms/{realm}/organizations/{id}/members/count | Returns number of members in the organization. +[**AdminRealmsRealmOrganizationsIdMembersGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersGet) | **Get** /admin/realms/{realm}/organizations/{id}/members | Returns a paginated list of organization members filtered according to the specified parameters +[**AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost) | **Post** /admin/realms/{realm}/organizations/{id}/members/invite-existing-user | Invites an existing user to the organization, using the specified user id +[**AdminRealmsRealmOrganizationsIdMembersInviteUserPost**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersInviteUserPost) | **Post** /admin/realms/{realm}/organizations/{id}/members/invite-user | Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. +[**AdminRealmsRealmOrganizationsIdMembersPost**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersPost) | **Post** /admin/realms/{realm}/organizations/{id}/members | Adds the user with the specified id as a member of the organization +[**AdminRealmsRealmOrganizationsIdMembersUserIdDelete**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersUserIdDelete) | **Delete** /admin/realms/{realm}/organizations/{id}/members/{userId} | Removes the user with the specified id from the organization +[**AdminRealmsRealmOrganizationsIdMembersUserIdGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersUserIdGet) | **Get** /admin/realms/{realm}/organizations/{id}/members/{userId} | Returns the member of the organization with the specified id +[**AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet) | **Get** /admin/realms/{realm}/organizations/{id}/members/{userId}/organizations | Returns the organizations associated with the user that has the specified id +[**AdminRealmsRealmOrganizationsIdPut**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsIdPut) | **Put** /admin/realms/{realm}/organizations/{id} | Updates the organization +[**AdminRealmsRealmOrganizationsMembersIdOrganizationsGet**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsMembersIdOrganizationsGet) | **Get** /admin/realms/{realm}/organizations/members/{id}/organizations | Returns the organizations associated with the user that has the specified id +[**AdminRealmsRealmOrganizationsPost**](OrganizationsAPI.md#AdminRealmsRealmOrganizationsPost) | **Post** /admin/realms/{realm}/organizations | Creates a new organization + + + +## AdminRealmsRealmOrganizationsGet + +> []OrganizationRepresentation AdminRealmsRealmOrganizationsGet(ctx, realm).Exact(exact).First(first).Max(max).Q(q).Search(search).Execute() + +Returns a paginated list of organizations filtered according to the specified parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + exact := true // bool | Boolean which defines whether the param 'search' must match exactly or not (optional) + first := int32(56) // int32 | The position of the first result to be processed (pagination offset) (optional) + max := int32(56) // int32 | The maximum number of results to be returned - defaults to 10 (optional) + q := "q_example" // string | A query to search for custom attributes, in the format 'key1:value2 key2:value2' (optional) + search := "search_example" // string | A String representing either an organization name or domain (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsGet(context.Background(), realm).Exact(exact).First(first).Max(max).Q(q).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsGet`: []OrganizationRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **exact** | **bool** | Boolean which defines whether the param 'search' must match exactly or not | + **first** | **int32** | The position of the first result to be processed (pagination offset) | + **max** | **int32** | The maximum number of results to be returned - defaults to 10 | + **q** | **string** | A query to search for custom attributes, in the format 'key1:value2 key2:value2' | + **search** | **string** | A String representing either an organization name or domain | + +### Return type + +[**[]OrganizationRepresentation**](OrganizationRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdDelete + +> AdminRealmsRealmOrganizationsIdDelete(ctx, realm, id).Execute() + +Deletes the organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdDelete(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmOrganizationsIdGet + +> OrganizationRepresentation AdminRealmsRealmOrganizationsIdGet(ctx, realm, id).Execute() + +Returns the organization representation + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdGet(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsIdGet`: OrganizationRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**OrganizationRepresentation**](OrganizationRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete + +> AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete(ctx, realm, id, alias).Execute() + +Removes the identity provider with the specified alias from the organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete(context.Background(), realm, id, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet + +> IdentityProviderRepresentation AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet(ctx, realm, id, alias).Execute() + +Returns the identity provider associated with the organization that has the specified alias + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + alias := "alias_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet(context.Background(), realm, id, alias).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet`: IdentityProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | +**alias** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**IdentityProviderRepresentation**](IdentityProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdIdentityProvidersGet + +> []IdentityProviderRepresentation AdminRealmsRealmOrganizationsIdIdentityProvidersGet(ctx, realm, id).Execute() + +Returns all identity providers associated with the organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersGet(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsIdIdentityProvidersGet`: []IdentityProviderRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]IdentityProviderRepresentation**](IdentityProviderRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdIdentityProvidersPost + +> AdminRealmsRealmOrganizationsIdIdentityProvidersPost(ctx, realm, id).Body(body).Execute() + +Adds the identity provider with the specified id to the organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + body := "body_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersPost(context.Background(), realm, id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersPost``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmOrganizationsIdMembersCountGet + +> int64 AdminRealmsRealmOrganizationsIdMembersCountGet(ctx, realm, id).Execute() + +Returns number of members in the organization. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersCountGet(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersCountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsIdMembersCountGet`: int64 + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersCountGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersCountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**int64** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdMembersGet + +> []MemberRepresentation AdminRealmsRealmOrganizationsIdMembersGet(ctx, realm, id).Exact(exact).First(first).Max(max).Search(search).Execute() + +Returns a paginated list of organization members filtered according to the specified parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + exact := true // bool | Boolean which defines whether the param 'search' must match exactly or not (optional) + first := int32(56) // int32 | The position of the first result to be processed (pagination offset) (optional) + max := int32(56) // int32 | The maximum number of results to be returned. Defaults to 10 (optional) + search := "search_example" // string | A String representing either a member's username, e-mail, first name, or last name. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersGet(context.Background(), realm, id).Exact(exact).First(first).Max(max).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsIdMembersGet`: []MemberRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **exact** | **bool** | Boolean which defines whether the param 'search' must match exactly or not | + **first** | **int32** | The position of the first result to be processed (pagination offset) | + **max** | **int32** | The maximum number of results to be returned. Defaults to 10 | + **search** | **string** | A String representing either a member's username, e-mail, first name, or last name. | + +### Return type + +[**[]MemberRepresentation**](MemberRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost + +> AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost(ctx, realm, id).Id2(id2).Execute() + +Invites an existing user to the organization, using the specified user id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + id2 := "id_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost(context.Background(), realm, id).Id2(id2).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **id2** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: 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) + + +## AdminRealmsRealmOrganizationsIdMembersInviteUserPost + +> AdminRealmsRealmOrganizationsIdMembersInviteUserPost(ctx, realm, id).Email(email).FirstName(firstName).LastName(lastName).Execute() + +Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + email := "email_example" // string | (optional) + firstName := "firstName_example" // string | (optional) + lastName := "lastName_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersInviteUserPost(context.Background(), realm, id).Email(email).FirstName(firstName).LastName(lastName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersInviteUserPost``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **email** | **string** | | + **firstName** | **string** | | + **lastName** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: 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) + + +## AdminRealmsRealmOrganizationsIdMembersPost + +> AdminRealmsRealmOrganizationsIdMembersPost(ctx, realm, id).Body(body).Execute() + +Adds the user with the specified id as a member of the organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + body := "body_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersPost(context.Background(), realm, id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersPost``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmOrganizationsIdMembersUserIdDelete + +> AdminRealmsRealmOrganizationsIdMembersUserIdDelete(ctx, realm, id, userId).Execute() + +Removes the user with the specified id from the organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdDelete(context.Background(), realm, id, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmOrganizationsIdMembersUserIdGet + +> MemberRepresentation AdminRealmsRealmOrganizationsIdMembersUserIdGet(ctx, realm, id, userId).Execute() + +Returns the member of the organization with the specified id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdGet(context.Background(), realm, id, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsIdMembersUserIdGet`: MemberRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**MemberRepresentation**](MemberRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet + +> []OrganizationRepresentation AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet(ctx, realm, id, userId).Execute() + +Returns the organizations associated with the user that has the specified id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet(context.Background(), realm, id, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet`: []OrganizationRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]OrganizationRepresentation**](OrganizationRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsIdPut + +> AdminRealmsRealmOrganizationsIdPut(ctx, realm, id).OrganizationRepresentation(organizationRepresentation).Execute() + +Updates the organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + organizationRepresentation := *openapiclient.NewOrganizationRepresentation() // OrganizationRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdPut(context.Background(), realm, id).OrganizationRepresentation(organizationRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **organizationRepresentation** | [**OrganizationRepresentation**](OrganizationRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmOrganizationsMembersIdOrganizationsGet + +> []OrganizationRepresentation AdminRealmsRealmOrganizationsMembersIdOrganizationsGet(ctx, realm, id).Execute() + +Returns the organizations associated with the user that has the specified id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsMembersIdOrganizationsGet(context.Background(), realm, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsMembersIdOrganizationsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmOrganizationsMembersIdOrganizationsGet`: []OrganizationRepresentation + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.AdminRealmsRealmOrganizationsMembersIdOrganizationsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]OrganizationRepresentation**](OrganizationRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmOrganizationsPost + +> AdminRealmsRealmOrganizationsPost(ctx, realm).OrganizationRepresentation(organizationRepresentation).Execute() + +Creates a new organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + organizationRepresentation := *openapiclient.NewOrganizationRepresentation() // OrganizationRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsPost(context.Background(), realm).OrganizationRepresentation(organizationRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.AdminRealmsRealmOrganizationsPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmOrganizationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **organizationRepresentation** | [**OrganizationRepresentation**](OrganizationRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/PathCacheConfig.md b/docs/PathCacheConfig.md new file mode 100644 index 0000000..5eea3dc --- /dev/null +++ b/docs/PathCacheConfig.md @@ -0,0 +1,82 @@ +# PathCacheConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxEntries** | Pointer to **int32** | | [optional] +**Lifespan** | Pointer to **int64** | | [optional] + +## Methods + +### NewPathCacheConfig + +`func NewPathCacheConfig() *PathCacheConfig` + +NewPathCacheConfig instantiates a new PathCacheConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPathCacheConfigWithDefaults + +`func NewPathCacheConfigWithDefaults() *PathCacheConfig` + +NewPathCacheConfigWithDefaults instantiates a new PathCacheConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMaxEntries + +`func (o *PathCacheConfig) GetMaxEntries() int32` + +GetMaxEntries returns the MaxEntries field if non-nil, zero value otherwise. + +### GetMaxEntriesOk + +`func (o *PathCacheConfig) GetMaxEntriesOk() (*int32, bool)` + +GetMaxEntriesOk returns a tuple with the MaxEntries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxEntries + +`func (o *PathCacheConfig) SetMaxEntries(v int32)` + +SetMaxEntries sets MaxEntries field to given value. + +### HasMaxEntries + +`func (o *PathCacheConfig) HasMaxEntries() bool` + +HasMaxEntries returns a boolean if a field has been set. + +### GetLifespan + +`func (o *PathCacheConfig) GetLifespan() int64` + +GetLifespan returns the Lifespan field if non-nil, zero value otherwise. + +### GetLifespanOk + +`func (o *PathCacheConfig) GetLifespanOk() (*int64, bool)` + +GetLifespanOk returns a tuple with the Lifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifespan + +`func (o *PathCacheConfig) SetLifespan(v int64)` + +SetLifespan sets Lifespan field to given value. + +### HasLifespan + +`func (o *PathCacheConfig) HasLifespan() bool` + +HasLifespan returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PathConfig.md b/docs/PathConfig.md new file mode 100644 index 0000000..f3a26dc --- /dev/null +++ b/docs/PathConfig.md @@ -0,0 +1,316 @@ +# PathConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Path** | Pointer to **string** | | [optional] +**Methods** | Pointer to [**[]MethodConfig**](MethodConfig.md) | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**EnforcementMode** | Pointer to [**EnforcementMode**](EnforcementMode.md) | | [optional] +**ClaimInformationPoint** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Invalidated** | Pointer to **bool** | | [optional] +**StaticPath** | Pointer to **bool** | | [optional] +**Static** | Pointer to **bool** | | [optional] + +## Methods + +### NewPathConfig + +`func NewPathConfig() *PathConfig` + +NewPathConfig instantiates a new PathConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPathConfigWithDefaults + +`func NewPathConfigWithDefaults() *PathConfig` + +NewPathConfigWithDefaults instantiates a new PathConfig object +This 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 *PathConfig) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PathConfig) 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 *PathConfig) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PathConfig) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *PathConfig) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PathConfig) 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 *PathConfig) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PathConfig) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetPath + +`func (o *PathConfig) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *PathConfig) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *PathConfig) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *PathConfig) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetMethods + +`func (o *PathConfig) GetMethods() []MethodConfig` + +GetMethods returns the Methods field if non-nil, zero value otherwise. + +### GetMethodsOk + +`func (o *PathConfig) GetMethodsOk() (*[]MethodConfig, bool)` + +GetMethodsOk returns a tuple with the Methods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethods + +`func (o *PathConfig) SetMethods(v []MethodConfig)` + +SetMethods sets Methods field to given value. + +### HasMethods + +`func (o *PathConfig) HasMethods() bool` + +HasMethods returns a boolean if a field has been set. + +### GetScopes + +`func (o *PathConfig) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *PathConfig) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *PathConfig) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *PathConfig) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetId + +`func (o *PathConfig) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PathConfig) 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 *PathConfig) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PathConfig) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetEnforcementMode + +`func (o *PathConfig) GetEnforcementMode() EnforcementMode` + +GetEnforcementMode returns the EnforcementMode field if non-nil, zero value otherwise. + +### GetEnforcementModeOk + +`func (o *PathConfig) GetEnforcementModeOk() (*EnforcementMode, bool)` + +GetEnforcementModeOk returns a tuple with the EnforcementMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforcementMode + +`func (o *PathConfig) SetEnforcementMode(v EnforcementMode)` + +SetEnforcementMode sets EnforcementMode field to given value. + +### HasEnforcementMode + +`func (o *PathConfig) HasEnforcementMode() bool` + +HasEnforcementMode returns a boolean if a field has been set. + +### GetClaimInformationPoint + +`func (o *PathConfig) GetClaimInformationPoint() map[string]map[string]interface{}` + +GetClaimInformationPoint returns the ClaimInformationPoint field if non-nil, zero value otherwise. + +### GetClaimInformationPointOk + +`func (o *PathConfig) GetClaimInformationPointOk() (*map[string]map[string]interface{}, bool)` + +GetClaimInformationPointOk returns a tuple with the ClaimInformationPoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimInformationPoint + +`func (o *PathConfig) SetClaimInformationPoint(v map[string]map[string]interface{})` + +SetClaimInformationPoint sets ClaimInformationPoint field to given value. + +### HasClaimInformationPoint + +`func (o *PathConfig) HasClaimInformationPoint() bool` + +HasClaimInformationPoint returns a boolean if a field has been set. + +### GetInvalidated + +`func (o *PathConfig) GetInvalidated() bool` + +GetInvalidated returns the Invalidated field if non-nil, zero value otherwise. + +### GetInvalidatedOk + +`func (o *PathConfig) GetInvalidatedOk() (*bool, bool)` + +GetInvalidatedOk returns a tuple with the Invalidated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidated + +`func (o *PathConfig) SetInvalidated(v bool)` + +SetInvalidated sets Invalidated field to given value. + +### HasInvalidated + +`func (o *PathConfig) HasInvalidated() bool` + +HasInvalidated returns a boolean if a field has been set. + +### GetStaticPath + +`func (o *PathConfig) GetStaticPath() bool` + +GetStaticPath returns the StaticPath field if non-nil, zero value otherwise. + +### GetStaticPathOk + +`func (o *PathConfig) GetStaticPathOk() (*bool, bool)` + +GetStaticPathOk returns a tuple with the StaticPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStaticPath + +`func (o *PathConfig) SetStaticPath(v bool)` + +SetStaticPath sets StaticPath field to given value. + +### HasStaticPath + +`func (o *PathConfig) HasStaticPath() bool` + +HasStaticPath returns a boolean if a field has been set. + +### GetStatic + +`func (o *PathConfig) GetStatic() bool` + +GetStatic returns the Static field if non-nil, zero value otherwise. + +### GetStaticOk + +`func (o *PathConfig) GetStaticOk() (*bool, bool)` + +GetStaticOk returns a tuple with the Static field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatic + +`func (o *PathConfig) SetStatic(v bool)` + +SetStatic sets Static field to given value. + +### HasStatic + +`func (o *PathConfig) HasStatic() bool` + +HasStatic returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Permission.md b/docs/Permission.md new file mode 100644 index 0000000..0f0669e --- /dev/null +++ b/docs/Permission.md @@ -0,0 +1,134 @@ +# Permission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Rsid** | Pointer to **string** | | [optional] +**Rsname** | Pointer to **string** | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] +**Claims** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewPermission + +`func NewPermission() *Permission` + +NewPermission instantiates a new Permission object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionWithDefaults + +`func NewPermissionWithDefaults() *Permission` + +NewPermissionWithDefaults instantiates a new Permission object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRsid + +`func (o *Permission) GetRsid() string` + +GetRsid returns the Rsid field if non-nil, zero value otherwise. + +### GetRsidOk + +`func (o *Permission) GetRsidOk() (*string, bool)` + +GetRsidOk returns a tuple with the Rsid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsid + +`func (o *Permission) SetRsid(v string)` + +SetRsid sets Rsid field to given value. + +### HasRsid + +`func (o *Permission) HasRsid() bool` + +HasRsid returns a boolean if a field has been set. + +### GetRsname + +`func (o *Permission) GetRsname() string` + +GetRsname returns the Rsname field if non-nil, zero value otherwise. + +### GetRsnameOk + +`func (o *Permission) GetRsnameOk() (*string, bool)` + +GetRsnameOk returns a tuple with the Rsname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsname + +`func (o *Permission) SetRsname(v string)` + +SetRsname sets Rsname field to given value. + +### HasRsname + +`func (o *Permission) HasRsname() bool` + +HasRsname returns a boolean if a field has been set. + +### GetScopes + +`func (o *Permission) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *Permission) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *Permission) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *Permission) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetClaims + +`func (o *Permission) GetClaims() map[string][]string` + +GetClaims returns the Claims field if non-nil, zero value otherwise. + +### GetClaimsOk + +`func (o *Permission) GetClaimsOk() (*map[string][]string, bool)` + +GetClaimsOk returns a tuple with the Claims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaims + +`func (o *Permission) SetClaims(v map[string][]string)` + +SetClaims sets Claims field to given value. + +### HasClaims + +`func (o *Permission) HasClaims() bool` + +HasClaims returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PolicyEnforcementMode.md b/docs/PolicyEnforcementMode.md new file mode 100644 index 0000000..2ab28ad --- /dev/null +++ b/docs/PolicyEnforcementMode.md @@ -0,0 +1,15 @@ +# PolicyEnforcementMode + +## Enum + + +* `ENFORCING` (value: `"ENFORCING"`) + +* `PERMISSIVE` (value: `"PERMISSIVE"`) + +* `DISABLED` (value: `"DISABLED"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PolicyEnforcerConfig.md b/docs/PolicyEnforcerConfig.md new file mode 100644 index 0000000..13002f6 --- /dev/null +++ b/docs/PolicyEnforcerConfig.md @@ -0,0 +1,342 @@ +# PolicyEnforcerConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnforcementMode** | Pointer to [**EnforcementMode**](EnforcementMode.md) | | [optional] +**Paths** | Pointer to [**[]PathConfig**](PathConfig.md) | | [optional] +**PathCache** | Pointer to [**PathCacheConfig**](PathCacheConfig.md) | | [optional] +**LazyLoadPaths** | Pointer to **bool** | | [optional] +**OnDenyRedirectTo** | Pointer to **string** | | [optional] +**UserManagedAccess** | Pointer to **map[string]interface{}** | | [optional] +**ClaimInformationPoint** | Pointer to **map[string]map[string]interface{}** | | [optional] +**HttpMethodAsScope** | Pointer to **bool** | | [optional] +**Realm** | Pointer to **string** | | [optional] +**AuthServerUrl** | Pointer to **string** | | [optional] +**Credentials** | Pointer to **map[string]interface{}** | | [optional] +**Resource** | Pointer to **string** | | [optional] + +## Methods + +### NewPolicyEnforcerConfig + +`func NewPolicyEnforcerConfig() *PolicyEnforcerConfig` + +NewPolicyEnforcerConfig instantiates a new PolicyEnforcerConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyEnforcerConfigWithDefaults + +`func NewPolicyEnforcerConfigWithDefaults() *PolicyEnforcerConfig` + +NewPolicyEnforcerConfigWithDefaults instantiates a new PolicyEnforcerConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnforcementMode + +`func (o *PolicyEnforcerConfig) GetEnforcementMode() EnforcementMode` + +GetEnforcementMode returns the EnforcementMode field if non-nil, zero value otherwise. + +### GetEnforcementModeOk + +`func (o *PolicyEnforcerConfig) GetEnforcementModeOk() (*EnforcementMode, bool)` + +GetEnforcementModeOk returns a tuple with the EnforcementMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforcementMode + +`func (o *PolicyEnforcerConfig) SetEnforcementMode(v EnforcementMode)` + +SetEnforcementMode sets EnforcementMode field to given value. + +### HasEnforcementMode + +`func (o *PolicyEnforcerConfig) HasEnforcementMode() bool` + +HasEnforcementMode returns a boolean if a field has been set. + +### GetPaths + +`func (o *PolicyEnforcerConfig) GetPaths() []PathConfig` + +GetPaths returns the Paths field if non-nil, zero value otherwise. + +### GetPathsOk + +`func (o *PolicyEnforcerConfig) GetPathsOk() (*[]PathConfig, bool)` + +GetPathsOk returns a tuple with the Paths field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaths + +`func (o *PolicyEnforcerConfig) SetPaths(v []PathConfig)` + +SetPaths sets Paths field to given value. + +### HasPaths + +`func (o *PolicyEnforcerConfig) HasPaths() bool` + +HasPaths returns a boolean if a field has been set. + +### GetPathCache + +`func (o *PolicyEnforcerConfig) GetPathCache() PathCacheConfig` + +GetPathCache returns the PathCache field if non-nil, zero value otherwise. + +### GetPathCacheOk + +`func (o *PolicyEnforcerConfig) GetPathCacheOk() (*PathCacheConfig, bool)` + +GetPathCacheOk returns a tuple with the PathCache field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPathCache + +`func (o *PolicyEnforcerConfig) SetPathCache(v PathCacheConfig)` + +SetPathCache sets PathCache field to given value. + +### HasPathCache + +`func (o *PolicyEnforcerConfig) HasPathCache() bool` + +HasPathCache returns a boolean if a field has been set. + +### GetLazyLoadPaths + +`func (o *PolicyEnforcerConfig) GetLazyLoadPaths() bool` + +GetLazyLoadPaths returns the LazyLoadPaths field if non-nil, zero value otherwise. + +### GetLazyLoadPathsOk + +`func (o *PolicyEnforcerConfig) GetLazyLoadPathsOk() (*bool, bool)` + +GetLazyLoadPathsOk returns a tuple with the LazyLoadPaths field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLazyLoadPaths + +`func (o *PolicyEnforcerConfig) SetLazyLoadPaths(v bool)` + +SetLazyLoadPaths sets LazyLoadPaths field to given value. + +### HasLazyLoadPaths + +`func (o *PolicyEnforcerConfig) HasLazyLoadPaths() bool` + +HasLazyLoadPaths returns a boolean if a field has been set. + +### GetOnDenyRedirectTo + +`func (o *PolicyEnforcerConfig) GetOnDenyRedirectTo() string` + +GetOnDenyRedirectTo returns the OnDenyRedirectTo field if non-nil, zero value otherwise. + +### GetOnDenyRedirectToOk + +`func (o *PolicyEnforcerConfig) GetOnDenyRedirectToOk() (*string, bool)` + +GetOnDenyRedirectToOk returns a tuple with the OnDenyRedirectTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnDenyRedirectTo + +`func (o *PolicyEnforcerConfig) SetOnDenyRedirectTo(v string)` + +SetOnDenyRedirectTo sets OnDenyRedirectTo field to given value. + +### HasOnDenyRedirectTo + +`func (o *PolicyEnforcerConfig) HasOnDenyRedirectTo() bool` + +HasOnDenyRedirectTo returns a boolean if a field has been set. + +### GetUserManagedAccess + +`func (o *PolicyEnforcerConfig) GetUserManagedAccess() map[string]interface{}` + +GetUserManagedAccess returns the UserManagedAccess field if non-nil, zero value otherwise. + +### GetUserManagedAccessOk + +`func (o *PolicyEnforcerConfig) GetUserManagedAccessOk() (*map[string]interface{}, bool)` + +GetUserManagedAccessOk returns a tuple with the UserManagedAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserManagedAccess + +`func (o *PolicyEnforcerConfig) SetUserManagedAccess(v map[string]interface{})` + +SetUserManagedAccess sets UserManagedAccess field to given value. + +### HasUserManagedAccess + +`func (o *PolicyEnforcerConfig) HasUserManagedAccess() bool` + +HasUserManagedAccess returns a boolean if a field has been set. + +### GetClaimInformationPoint + +`func (o *PolicyEnforcerConfig) GetClaimInformationPoint() map[string]map[string]interface{}` + +GetClaimInformationPoint returns the ClaimInformationPoint field if non-nil, zero value otherwise. + +### GetClaimInformationPointOk + +`func (o *PolicyEnforcerConfig) GetClaimInformationPointOk() (*map[string]map[string]interface{}, bool)` + +GetClaimInformationPointOk returns a tuple with the ClaimInformationPoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimInformationPoint + +`func (o *PolicyEnforcerConfig) SetClaimInformationPoint(v map[string]map[string]interface{})` + +SetClaimInformationPoint sets ClaimInformationPoint field to given value. + +### HasClaimInformationPoint + +`func (o *PolicyEnforcerConfig) HasClaimInformationPoint() bool` + +HasClaimInformationPoint returns a boolean if a field has been set. + +### GetHttpMethodAsScope + +`func (o *PolicyEnforcerConfig) GetHttpMethodAsScope() bool` + +GetHttpMethodAsScope returns the HttpMethodAsScope field if non-nil, zero value otherwise. + +### GetHttpMethodAsScopeOk + +`func (o *PolicyEnforcerConfig) GetHttpMethodAsScopeOk() (*bool, bool)` + +GetHttpMethodAsScopeOk returns a tuple with the HttpMethodAsScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpMethodAsScope + +`func (o *PolicyEnforcerConfig) SetHttpMethodAsScope(v bool)` + +SetHttpMethodAsScope sets HttpMethodAsScope field to given value. + +### HasHttpMethodAsScope + +`func (o *PolicyEnforcerConfig) HasHttpMethodAsScope() bool` + +HasHttpMethodAsScope returns a boolean if a field has been set. + +### GetRealm + +`func (o *PolicyEnforcerConfig) GetRealm() string` + +GetRealm returns the Realm field if non-nil, zero value otherwise. + +### GetRealmOk + +`func (o *PolicyEnforcerConfig) GetRealmOk() (*string, bool)` + +GetRealmOk returns a tuple with the Realm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealm + +`func (o *PolicyEnforcerConfig) SetRealm(v string)` + +SetRealm sets Realm field to given value. + +### HasRealm + +`func (o *PolicyEnforcerConfig) HasRealm() bool` + +HasRealm returns a boolean if a field has been set. + +### GetAuthServerUrl + +`func (o *PolicyEnforcerConfig) GetAuthServerUrl() string` + +GetAuthServerUrl returns the AuthServerUrl field if non-nil, zero value otherwise. + +### GetAuthServerUrlOk + +`func (o *PolicyEnforcerConfig) GetAuthServerUrlOk() (*string, bool)` + +GetAuthServerUrlOk returns a tuple with the AuthServerUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthServerUrl + +`func (o *PolicyEnforcerConfig) SetAuthServerUrl(v string)` + +SetAuthServerUrl sets AuthServerUrl field to given value. + +### HasAuthServerUrl + +`func (o *PolicyEnforcerConfig) HasAuthServerUrl() bool` + +HasAuthServerUrl returns a boolean if a field has been set. + +### GetCredentials + +`func (o *PolicyEnforcerConfig) GetCredentials() map[string]interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *PolicyEnforcerConfig) GetCredentialsOk() (*map[string]interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *PolicyEnforcerConfig) SetCredentials(v map[string]interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *PolicyEnforcerConfig) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetResource + +`func (o *PolicyEnforcerConfig) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *PolicyEnforcerConfig) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *PolicyEnforcerConfig) SetResource(v string)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *PolicyEnforcerConfig) HasResource() bool` + +HasResource returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PolicyEvaluationRequest.md b/docs/PolicyEvaluationRequest.md new file mode 100644 index 0000000..20299b4 --- /dev/null +++ b/docs/PolicyEvaluationRequest.md @@ -0,0 +1,186 @@ +# PolicyEvaluationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Context** | Pointer to **map[string]map[string]string** | | [optional] +**Resources** | Pointer to [**[]ResourceRepresentation**](ResourceRepresentation.md) | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**UserId** | Pointer to **string** | | [optional] +**RoleIds** | Pointer to **[]string** | | [optional] +**Entitlements** | Pointer to **bool** | | [optional] + +## Methods + +### NewPolicyEvaluationRequest + +`func NewPolicyEvaluationRequest() *PolicyEvaluationRequest` + +NewPolicyEvaluationRequest instantiates a new PolicyEvaluationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyEvaluationRequestWithDefaults + +`func NewPolicyEvaluationRequestWithDefaults() *PolicyEvaluationRequest` + +NewPolicyEvaluationRequestWithDefaults instantiates a new PolicyEvaluationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContext + +`func (o *PolicyEvaluationRequest) GetContext() map[string]map[string]string` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *PolicyEvaluationRequest) GetContextOk() (*map[string]map[string]string, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *PolicyEvaluationRequest) SetContext(v map[string]map[string]string)` + +SetContext sets Context field to given value. + +### HasContext + +`func (o *PolicyEvaluationRequest) HasContext() bool` + +HasContext returns a boolean if a field has been set. + +### GetResources + +`func (o *PolicyEvaluationRequest) GetResources() []ResourceRepresentation` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *PolicyEvaluationRequest) GetResourcesOk() (*[]ResourceRepresentation, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *PolicyEvaluationRequest) SetResources(v []ResourceRepresentation)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *PolicyEvaluationRequest) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetClientId + +`func (o *PolicyEvaluationRequest) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *PolicyEvaluationRequest) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *PolicyEvaluationRequest) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *PolicyEvaluationRequest) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetUserId + +`func (o *PolicyEvaluationRequest) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *PolicyEvaluationRequest) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *PolicyEvaluationRequest) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *PolicyEvaluationRequest) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetRoleIds + +`func (o *PolicyEvaluationRequest) GetRoleIds() []string` + +GetRoleIds returns the RoleIds field if non-nil, zero value otherwise. + +### GetRoleIdsOk + +`func (o *PolicyEvaluationRequest) GetRoleIdsOk() (*[]string, 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 *PolicyEvaluationRequest) SetRoleIds(v []string)` + +SetRoleIds sets RoleIds field to given value. + +### HasRoleIds + +`func (o *PolicyEvaluationRequest) HasRoleIds() bool` + +HasRoleIds returns a boolean if a field has been set. + +### GetEntitlements + +`func (o *PolicyEvaluationRequest) GetEntitlements() bool` + +GetEntitlements returns the Entitlements field if non-nil, zero value otherwise. + +### GetEntitlementsOk + +`func (o *PolicyEvaluationRequest) GetEntitlementsOk() (*bool, bool)` + +GetEntitlementsOk returns a tuple with the Entitlements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntitlements + +`func (o *PolicyEvaluationRequest) SetEntitlements(v bool)` + +SetEntitlements sets Entitlements field to given value. + +### HasEntitlements + +`func (o *PolicyEvaluationRequest) HasEntitlements() bool` + +HasEntitlements returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PolicyEvaluationResponse.md b/docs/PolicyEvaluationResponse.md new file mode 100644 index 0000000..9181c22 --- /dev/null +++ b/docs/PolicyEvaluationResponse.md @@ -0,0 +1,134 @@ +# PolicyEvaluationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]EvaluationResultRepresentation**](EvaluationResultRepresentation.md) | | [optional] +**Entitlements** | Pointer to **bool** | | [optional] +**Status** | Pointer to [**DecisionEffect**](DecisionEffect.md) | | [optional] +**Rpt** | Pointer to [**AccessToken**](AccessToken.md) | | [optional] + +## Methods + +### NewPolicyEvaluationResponse + +`func NewPolicyEvaluationResponse() *PolicyEvaluationResponse` + +NewPolicyEvaluationResponse instantiates a new PolicyEvaluationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyEvaluationResponseWithDefaults + +`func NewPolicyEvaluationResponseWithDefaults() *PolicyEvaluationResponse` + +NewPolicyEvaluationResponseWithDefaults instantiates a new PolicyEvaluationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResults + +`func (o *PolicyEvaluationResponse) GetResults() []EvaluationResultRepresentation` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PolicyEvaluationResponse) GetResultsOk() (*[]EvaluationResultRepresentation, 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 *PolicyEvaluationResponse) SetResults(v []EvaluationResultRepresentation)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *PolicyEvaluationResponse) HasResults() bool` + +HasResults returns a boolean if a field has been set. + +### GetEntitlements + +`func (o *PolicyEvaluationResponse) GetEntitlements() bool` + +GetEntitlements returns the Entitlements field if non-nil, zero value otherwise. + +### GetEntitlementsOk + +`func (o *PolicyEvaluationResponse) GetEntitlementsOk() (*bool, bool)` + +GetEntitlementsOk returns a tuple with the Entitlements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntitlements + +`func (o *PolicyEvaluationResponse) SetEntitlements(v bool)` + +SetEntitlements sets Entitlements field to given value. + +### HasEntitlements + +`func (o *PolicyEvaluationResponse) HasEntitlements() bool` + +HasEntitlements returns a boolean if a field has been set. + +### GetStatus + +`func (o *PolicyEvaluationResponse) GetStatus() DecisionEffect` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PolicyEvaluationResponse) GetStatusOk() (*DecisionEffect, 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 *PolicyEvaluationResponse) SetStatus(v DecisionEffect)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PolicyEvaluationResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRpt + +`func (o *PolicyEvaluationResponse) GetRpt() AccessToken` + +GetRpt returns the Rpt field if non-nil, zero value otherwise. + +### GetRptOk + +`func (o *PolicyEvaluationResponse) GetRptOk() (*AccessToken, bool)` + +GetRptOk returns a tuple with the Rpt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRpt + +`func (o *PolicyEvaluationResponse) SetRpt(v AccessToken)` + +SetRpt sets Rpt field to given value. + +### HasRpt + +`func (o *PolicyEvaluationResponse) HasRpt() bool` + +HasRpt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PolicyProviderRepresentation.md b/docs/PolicyProviderRepresentation.md new file mode 100644 index 0000000..5f2dfaf --- /dev/null +++ b/docs/PolicyProviderRepresentation.md @@ -0,0 +1,108 @@ +# PolicyProviderRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Group** | Pointer to **string** | | [optional] + +## Methods + +### NewPolicyProviderRepresentation + +`func NewPolicyProviderRepresentation() *PolicyProviderRepresentation` + +NewPolicyProviderRepresentation instantiates a new PolicyProviderRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyProviderRepresentationWithDefaults + +`func NewPolicyProviderRepresentationWithDefaults() *PolicyProviderRepresentation` + +NewPolicyProviderRepresentationWithDefaults instantiates a new PolicyProviderRepresentation object +This 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 *PolicyProviderRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PolicyProviderRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *PolicyProviderRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PolicyProviderRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetGroup + +`func (o *PolicyProviderRepresentation) GetGroup() string` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *PolicyProviderRepresentation) GetGroupOk() (*string, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *PolicyProviderRepresentation) SetGroup(v string)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *PolicyProviderRepresentation) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PolicyRepresentation.md b/docs/PolicyRepresentation.md new file mode 100644 index 0000000..4c94e35 --- /dev/null +++ b/docs/PolicyRepresentation.md @@ -0,0 +1,368 @@ +# PolicyRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Policies** | Pointer to **[]string** | | [optional] +**Resources** | Pointer to **[]string** | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] +**Logic** | Pointer to [**Logic**](Logic.md) | | [optional] +**DecisionStrategy** | Pointer to [**DecisionStrategy**](DecisionStrategy.md) | | [optional] +**Owner** | Pointer to **string** | | [optional] +**ResourcesData** | Pointer to [**[]ResourceRepresentation**](ResourceRepresentation.md) | | [optional] +**ScopesData** | Pointer to [**[]ScopeRepresentation**](ScopeRepresentation.md) | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewPolicyRepresentation + +`func NewPolicyRepresentation() *PolicyRepresentation` + +NewPolicyRepresentation instantiates a new PolicyRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyRepresentationWithDefaults + +`func NewPolicyRepresentationWithDefaults() *PolicyRepresentation` + +NewPolicyRepresentationWithDefaults instantiates a new PolicyRepresentation object +This 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 *PolicyRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PolicyRepresentation) 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 *PolicyRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PolicyRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PolicyRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PolicyRepresentation) 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 *PolicyRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PolicyRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PolicyRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PolicyRepresentation) 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 *PolicyRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PolicyRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *PolicyRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PolicyRepresentation) 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 *PolicyRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PolicyRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetPolicies + +`func (o *PolicyRepresentation) GetPolicies() []string` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *PolicyRepresentation) GetPoliciesOk() (*[]string, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *PolicyRepresentation) SetPolicies(v []string)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *PolicyRepresentation) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + +### GetResources + +`func (o *PolicyRepresentation) GetResources() []string` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *PolicyRepresentation) GetResourcesOk() (*[]string, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *PolicyRepresentation) SetResources(v []string)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *PolicyRepresentation) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetScopes + +`func (o *PolicyRepresentation) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *PolicyRepresentation) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *PolicyRepresentation) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *PolicyRepresentation) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetLogic + +`func (o *PolicyRepresentation) GetLogic() Logic` + +GetLogic returns the Logic field if non-nil, zero value otherwise. + +### GetLogicOk + +`func (o *PolicyRepresentation) GetLogicOk() (*Logic, bool)` + +GetLogicOk returns a tuple with the Logic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogic + +`func (o *PolicyRepresentation) SetLogic(v Logic)` + +SetLogic sets Logic field to given value. + +### HasLogic + +`func (o *PolicyRepresentation) HasLogic() bool` + +HasLogic returns a boolean if a field has been set. + +### GetDecisionStrategy + +`func (o *PolicyRepresentation) GetDecisionStrategy() DecisionStrategy` + +GetDecisionStrategy returns the DecisionStrategy field if non-nil, zero value otherwise. + +### GetDecisionStrategyOk + +`func (o *PolicyRepresentation) GetDecisionStrategyOk() (*DecisionStrategy, bool)` + +GetDecisionStrategyOk returns a tuple with the DecisionStrategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecisionStrategy + +`func (o *PolicyRepresentation) SetDecisionStrategy(v DecisionStrategy)` + +SetDecisionStrategy sets DecisionStrategy field to given value. + +### HasDecisionStrategy + +`func (o *PolicyRepresentation) HasDecisionStrategy() bool` + +HasDecisionStrategy returns a boolean if a field has been set. + +### GetOwner + +`func (o *PolicyRepresentation) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *PolicyRepresentation) GetOwnerOk() (*string, 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 *PolicyRepresentation) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *PolicyRepresentation) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetResourcesData + +`func (o *PolicyRepresentation) GetResourcesData() []ResourceRepresentation` + +GetResourcesData returns the ResourcesData field if non-nil, zero value otherwise. + +### GetResourcesDataOk + +`func (o *PolicyRepresentation) GetResourcesDataOk() (*[]ResourceRepresentation, bool)` + +GetResourcesDataOk returns a tuple with the ResourcesData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourcesData + +`func (o *PolicyRepresentation) SetResourcesData(v []ResourceRepresentation)` + +SetResourcesData sets ResourcesData field to given value. + +### HasResourcesData + +`func (o *PolicyRepresentation) HasResourcesData() bool` + +HasResourcesData returns a boolean if a field has been set. + +### GetScopesData + +`func (o *PolicyRepresentation) GetScopesData() []ScopeRepresentation` + +GetScopesData returns the ScopesData field if non-nil, zero value otherwise. + +### GetScopesDataOk + +`func (o *PolicyRepresentation) GetScopesDataOk() (*[]ScopeRepresentation, bool)` + +GetScopesDataOk returns a tuple with the ScopesData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopesData + +`func (o *PolicyRepresentation) SetScopesData(v []ScopeRepresentation)` + +SetScopesData sets ScopesData field to given value. + +### HasScopesData + +`func (o *PolicyRepresentation) HasScopesData() bool` + +HasScopesData returns a boolean if a field has been set. + +### GetConfig + +`func (o *PolicyRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *PolicyRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *PolicyRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *PolicyRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PolicyResultRepresentation.md b/docs/PolicyResultRepresentation.md new file mode 100644 index 0000000..2fef371 --- /dev/null +++ b/docs/PolicyResultRepresentation.md @@ -0,0 +1,134 @@ +# PolicyResultRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policy** | Pointer to [**PolicyRepresentation**](PolicyRepresentation.md) | | [optional] +**Status** | Pointer to [**DecisionEffect**](DecisionEffect.md) | | [optional] +**AssociatedPolicies** | Pointer to [**[]PolicyResultRepresentation**](PolicyResultRepresentation.md) | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPolicyResultRepresentation + +`func NewPolicyResultRepresentation() *PolicyResultRepresentation` + +NewPolicyResultRepresentation instantiates a new PolicyResultRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyResultRepresentationWithDefaults + +`func NewPolicyResultRepresentationWithDefaults() *PolicyResultRepresentation` + +NewPolicyResultRepresentationWithDefaults instantiates a new PolicyResultRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicy + +`func (o *PolicyResultRepresentation) GetPolicy() PolicyRepresentation` + +GetPolicy returns the Policy field if non-nil, zero value otherwise. + +### GetPolicyOk + +`func (o *PolicyResultRepresentation) GetPolicyOk() (*PolicyRepresentation, bool)` + +GetPolicyOk returns a tuple with the Policy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicy + +`func (o *PolicyResultRepresentation) SetPolicy(v PolicyRepresentation)` + +SetPolicy sets Policy field to given value. + +### HasPolicy + +`func (o *PolicyResultRepresentation) HasPolicy() bool` + +HasPolicy returns a boolean if a field has been set. + +### GetStatus + +`func (o *PolicyResultRepresentation) GetStatus() DecisionEffect` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PolicyResultRepresentation) GetStatusOk() (*DecisionEffect, 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 *PolicyResultRepresentation) SetStatus(v DecisionEffect)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PolicyResultRepresentation) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAssociatedPolicies + +`func (o *PolicyResultRepresentation) GetAssociatedPolicies() []PolicyResultRepresentation` + +GetAssociatedPolicies returns the AssociatedPolicies field if non-nil, zero value otherwise. + +### GetAssociatedPoliciesOk + +`func (o *PolicyResultRepresentation) GetAssociatedPoliciesOk() (*[]PolicyResultRepresentation, bool)` + +GetAssociatedPoliciesOk returns a tuple with the AssociatedPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssociatedPolicies + +`func (o *PolicyResultRepresentation) SetAssociatedPolicies(v []PolicyResultRepresentation)` + +SetAssociatedPolicies sets AssociatedPolicies field to given value. + +### HasAssociatedPolicies + +`func (o *PolicyResultRepresentation) HasAssociatedPolicies() bool` + +HasAssociatedPolicies returns a boolean if a field has been set. + +### GetScopes + +`func (o *PolicyResultRepresentation) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *PolicyResultRepresentation) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *PolicyResultRepresentation) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *PolicyResultRepresentation) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PropertyConfig.md b/docs/PropertyConfig.md new file mode 100644 index 0000000..6e72317 --- /dev/null +++ b/docs/PropertyConfig.md @@ -0,0 +1,92 @@ +# PropertyConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Applicable** | Pointer to **bool** | | [optional] +**Value** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewPropertyConfig + +`func NewPropertyConfig() *PropertyConfig` + +NewPropertyConfig instantiates a new PropertyConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPropertyConfigWithDefaults + +`func NewPropertyConfigWithDefaults() *PropertyConfig` + +NewPropertyConfigWithDefaults instantiates a new PropertyConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApplicable + +`func (o *PropertyConfig) GetApplicable() bool` + +GetApplicable returns the Applicable field if non-nil, zero value otherwise. + +### GetApplicableOk + +`func (o *PropertyConfig) GetApplicableOk() (*bool, bool)` + +GetApplicableOk returns a tuple with the Applicable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicable + +`func (o *PropertyConfig) SetApplicable(v bool)` + +SetApplicable sets Applicable field to given value. + +### HasApplicable + +`func (o *PropertyConfig) HasApplicable() bool` + +HasApplicable returns a boolean if a field has been set. + +### GetValue + +`func (o *PropertyConfig) GetValue() interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PropertyConfig) GetValueOk() (*interface{}, 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 *PropertyConfig) SetValue(v interface{})` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PropertyConfig) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *PropertyConfig) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *PropertyConfig) UnsetValue()` + +UnsetValue ensures that no value is present for Value, 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/docs/ProtocolMapperEvaluationRepresentation.md b/docs/ProtocolMapperEvaluationRepresentation.md new file mode 100644 index 0000000..2f39950 --- /dev/null +++ b/docs/ProtocolMapperEvaluationRepresentation.md @@ -0,0 +1,186 @@ +# ProtocolMapperEvaluationRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MapperId** | Pointer to **string** | | [optional] +**MapperName** | Pointer to **string** | | [optional] +**ContainerId** | Pointer to **string** | | [optional] +**ContainerName** | Pointer to **string** | | [optional] +**ContainerType** | Pointer to **string** | | [optional] +**ProtocolMapper** | Pointer to **string** | | [optional] + +## Methods + +### NewProtocolMapperEvaluationRepresentation + +`func NewProtocolMapperEvaluationRepresentation() *ProtocolMapperEvaluationRepresentation` + +NewProtocolMapperEvaluationRepresentation instantiates a new ProtocolMapperEvaluationRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProtocolMapperEvaluationRepresentationWithDefaults + +`func NewProtocolMapperEvaluationRepresentationWithDefaults() *ProtocolMapperEvaluationRepresentation` + +NewProtocolMapperEvaluationRepresentationWithDefaults instantiates a new ProtocolMapperEvaluationRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMapperId + +`func (o *ProtocolMapperEvaluationRepresentation) GetMapperId() string` + +GetMapperId returns the MapperId field if non-nil, zero value otherwise. + +### GetMapperIdOk + +`func (o *ProtocolMapperEvaluationRepresentation) GetMapperIdOk() (*string, bool)` + +GetMapperIdOk returns a tuple with the MapperId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMapperId + +`func (o *ProtocolMapperEvaluationRepresentation) SetMapperId(v string)` + +SetMapperId sets MapperId field to given value. + +### HasMapperId + +`func (o *ProtocolMapperEvaluationRepresentation) HasMapperId() bool` + +HasMapperId returns a boolean if a field has been set. + +### GetMapperName + +`func (o *ProtocolMapperEvaluationRepresentation) GetMapperName() string` + +GetMapperName returns the MapperName field if non-nil, zero value otherwise. + +### GetMapperNameOk + +`func (o *ProtocolMapperEvaluationRepresentation) GetMapperNameOk() (*string, bool)` + +GetMapperNameOk returns a tuple with the MapperName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMapperName + +`func (o *ProtocolMapperEvaluationRepresentation) SetMapperName(v string)` + +SetMapperName sets MapperName field to given value. + +### HasMapperName + +`func (o *ProtocolMapperEvaluationRepresentation) HasMapperName() bool` + +HasMapperName returns a boolean if a field has been set. + +### GetContainerId + +`func (o *ProtocolMapperEvaluationRepresentation) GetContainerId() string` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *ProtocolMapperEvaluationRepresentation) GetContainerIdOk() (*string, 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 *ProtocolMapperEvaluationRepresentation) SetContainerId(v string)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *ProtocolMapperEvaluationRepresentation) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetContainerName + +`func (o *ProtocolMapperEvaluationRepresentation) GetContainerName() string` + +GetContainerName returns the ContainerName field if non-nil, zero value otherwise. + +### GetContainerNameOk + +`func (o *ProtocolMapperEvaluationRepresentation) 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 *ProtocolMapperEvaluationRepresentation) SetContainerName(v string)` + +SetContainerName sets ContainerName field to given value. + +### HasContainerName + +`func (o *ProtocolMapperEvaluationRepresentation) HasContainerName() bool` + +HasContainerName returns a boolean if a field has been set. + +### GetContainerType + +`func (o *ProtocolMapperEvaluationRepresentation) GetContainerType() string` + +GetContainerType returns the ContainerType field if non-nil, zero value otherwise. + +### GetContainerTypeOk + +`func (o *ProtocolMapperEvaluationRepresentation) GetContainerTypeOk() (*string, bool)` + +GetContainerTypeOk returns a tuple with the ContainerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerType + +`func (o *ProtocolMapperEvaluationRepresentation) SetContainerType(v string)` + +SetContainerType sets ContainerType field to given value. + +### HasContainerType + +`func (o *ProtocolMapperEvaluationRepresentation) HasContainerType() bool` + +HasContainerType returns a boolean if a field has been set. + +### GetProtocolMapper + +`func (o *ProtocolMapperEvaluationRepresentation) GetProtocolMapper() string` + +GetProtocolMapper returns the ProtocolMapper field if non-nil, zero value otherwise. + +### GetProtocolMapperOk + +`func (o *ProtocolMapperEvaluationRepresentation) GetProtocolMapperOk() (*string, bool)` + +GetProtocolMapperOk returns a tuple with the ProtocolMapper field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMapper + +`func (o *ProtocolMapperEvaluationRepresentation) SetProtocolMapper(v string)` + +SetProtocolMapper sets ProtocolMapper field to given value. + +### HasProtocolMapper + +`func (o *ProtocolMapperEvaluationRepresentation) HasProtocolMapper() bool` + +HasProtocolMapper returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProtocolMapperRepresentation.md b/docs/ProtocolMapperRepresentation.md new file mode 100644 index 0000000..320ef78 --- /dev/null +++ b/docs/ProtocolMapperRepresentation.md @@ -0,0 +1,212 @@ +# ProtocolMapperRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**ProtocolMapper** | Pointer to **string** | | [optional] +**ConsentRequired** | Pointer to **bool** | | [optional] +**ConsentText** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewProtocolMapperRepresentation + +`func NewProtocolMapperRepresentation() *ProtocolMapperRepresentation` + +NewProtocolMapperRepresentation instantiates a new ProtocolMapperRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProtocolMapperRepresentationWithDefaults + +`func NewProtocolMapperRepresentationWithDefaults() *ProtocolMapperRepresentation` + +NewProtocolMapperRepresentationWithDefaults instantiates a new ProtocolMapperRepresentation object +This 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 *ProtocolMapperRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ProtocolMapperRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ProtocolMapperRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ProtocolMapperRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProtocol + +`func (o *ProtocolMapperRepresentation) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *ProtocolMapperRepresentation) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *ProtocolMapperRepresentation) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *ProtocolMapperRepresentation) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetProtocolMapper + +`func (o *ProtocolMapperRepresentation) GetProtocolMapper() string` + +GetProtocolMapper returns the ProtocolMapper field if non-nil, zero value otherwise. + +### GetProtocolMapperOk + +`func (o *ProtocolMapperRepresentation) GetProtocolMapperOk() (*string, bool)` + +GetProtocolMapperOk returns a tuple with the ProtocolMapper field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMapper + +`func (o *ProtocolMapperRepresentation) SetProtocolMapper(v string)` + +SetProtocolMapper sets ProtocolMapper field to given value. + +### HasProtocolMapper + +`func (o *ProtocolMapperRepresentation) HasProtocolMapper() bool` + +HasProtocolMapper returns a boolean if a field has been set. + +### GetConsentRequired + +`func (o *ProtocolMapperRepresentation) GetConsentRequired() bool` + +GetConsentRequired returns the ConsentRequired field if non-nil, zero value otherwise. + +### GetConsentRequiredOk + +`func (o *ProtocolMapperRepresentation) GetConsentRequiredOk() (*bool, bool)` + +GetConsentRequiredOk returns a tuple with the ConsentRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsentRequired + +`func (o *ProtocolMapperRepresentation) SetConsentRequired(v bool)` + +SetConsentRequired sets ConsentRequired field to given value. + +### HasConsentRequired + +`func (o *ProtocolMapperRepresentation) HasConsentRequired() bool` + +HasConsentRequired returns a boolean if a field has been set. + +### GetConsentText + +`func (o *ProtocolMapperRepresentation) GetConsentText() string` + +GetConsentText returns the ConsentText field if non-nil, zero value otherwise. + +### GetConsentTextOk + +`func (o *ProtocolMapperRepresentation) GetConsentTextOk() (*string, bool)` + +GetConsentTextOk returns a tuple with the ConsentText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsentText + +`func (o *ProtocolMapperRepresentation) SetConsentText(v string)` + +SetConsentText sets ConsentText field to given value. + +### HasConsentText + +`func (o *ProtocolMapperRepresentation) HasConsentText() bool` + +HasConsentText returns a boolean if a field has been set. + +### GetConfig + +`func (o *ProtocolMapperRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ProtocolMapperRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ProtocolMapperRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *ProtocolMapperRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProtocolMappersAPI.md b/docs/ProtocolMappersAPI.md new file mode 100644 index 0000000..faf2c91 --- /dev/null +++ b/docs/ProtocolMappersAPI.md @@ -0,0 +1,1550 @@ +# \ProtocolMappersAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost**](ProtocolMappersAPI.md#AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models | Create multiple mappers +[**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models | Get mappers +[**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete**](ProtocolMappersAPI.md#AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} | Delete the mapper +[**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} | Get mapper by id +[**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut**](ProtocolMappersAPI.md#AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut) | **Put** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} | Update the mapper +[**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost**](ProtocolMappersAPI.md#AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models | Create a mapper +[**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/protocol/{protocol} | Get mappers by name for a specific protocol +[**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost**](ProtocolMappersAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/add-models | Create multiple mappers +[**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models | Get mappers +[**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete**](ProtocolMappersAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} | Delete the mapper +[**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} | Get mapper by id +[**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut**](ProtocolMappersAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut) | **Put** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} | Update the mapper +[**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost**](ProtocolMappersAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models | Create a mapper +[**AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/protocol/{protocol} | Get mappers by name for a specific protocol +[**AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost**](ProtocolMappersAPI.md#AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/add-models | Create multiple mappers +[**AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models | Get mappers +[**AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete**](ProtocolMappersAPI.md#AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} | Delete the mapper +[**AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} | Get mapper by id +[**AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut**](ProtocolMappersAPI.md#AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} | Update the mapper +[**AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost**](ProtocolMappersAPI.md#AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models | Create a mapper +[**AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet**](ProtocolMappersAPI.md#AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/protocol/{protocol} | Get mappers by name for a specific protocol + + + +## AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost + +> AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Create multiple mappers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + protocolMapperRepresentation := []openapiclient.ProtocolMapperRepresentation{*openapiclient.NewProtocolMapperRepresentation()} // []ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **protocolMapperRepresentation** | [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet + +> []ProtocolMapperRepresentation AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet(ctx, realm, clientScopeId).Execute() + +Get mappers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet`: []ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete + +> AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete(ctx, realm, clientScopeId, id).Execute() + +Delete the mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + id := "id_example" // string | Mapper id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete(context.Background(), realm, clientScopeId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet + +> ProtocolMapperRepresentation AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet(ctx, realm, clientScopeId, id).Execute() + +Get mapper by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + id := "id_example" // string | Mapper id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet(context.Background(), realm, clientScopeId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet`: ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut + +> AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut(ctx, realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Update the mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + id := "id_example" // string | Mapper id + protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut(context.Background(), realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **protocolMapperRepresentation** | [**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost + +> AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Create a mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **protocolMapperRepresentation** | [**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet + +> []ProtocolMapperRepresentation AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet(ctx, realm, clientScopeId, protocol).Execute() + +Get mappers by name for a specific protocol + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + protocol := "protocol_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet(context.Background(), realm, clientScopeId, protocol).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet`: []ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**protocol** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost + +> AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Create multiple mappers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + protocolMapperRepresentation := []openapiclient.ProtocolMapperRepresentation{*openapiclient.NewProtocolMapperRepresentation()} // []ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **protocolMapperRepresentation** | [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet + +> []ProtocolMapperRepresentation AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet(ctx, realm, clientScopeId).Execute() + +Get mappers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet`: []ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete + +> AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete(ctx, realm, clientScopeId, id).Execute() + +Delete the mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + id := "id_example" // string | Mapper id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete(context.Background(), realm, clientScopeId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet + +> ProtocolMapperRepresentation AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet(ctx, realm, clientScopeId, id).Execute() + +Get mapper by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + id := "id_example" // string | Mapper id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet(context.Background(), realm, clientScopeId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet`: ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut + +> AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut(ctx, realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Update the mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + id := "id_example" // string | Mapper id + protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut(context.Background(), realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **protocolMapperRepresentation** | [**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost + +> AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Create a mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **protocolMapperRepresentation** | [**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet + +> []ProtocolMapperRepresentation AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet(ctx, realm, clientScopeId, protocol).Execute() + +Get mappers by name for a specific protocol + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + protocol := "protocol_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet(context.Background(), realm, clientScopeId, protocol).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet`: []ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**protocol** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost + +> AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost(ctx, realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Create multiple mappers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + protocolMapperRepresentation := []openapiclient.ProtocolMapperRepresentation{*openapiclient.NewProtocolMapperRepresentation()} // []ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost(context.Background(), realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **protocolMapperRepresentation** | [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet + +> []ProtocolMapperRepresentation AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet(ctx, realm, clientUuid).Execute() + +Get mappers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet`: []ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete + +> AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete(ctx, realm, clientUuid, id).Execute() + +Delete the mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + id := "id_example" // string | Mapper id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete(context.Background(), realm, clientUuid, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet + +> ProtocolMapperRepresentation AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet(ctx, realm, clientUuid, id).Execute() + +Get mapper by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + id := "id_example" // string | Mapper id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet(context.Background(), realm, clientUuid, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet`: ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut + +> AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut(ctx, realm, clientUuid, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Update the mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + id := "id_example" // string | Mapper id + protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut(context.Background(), realm, clientUuid, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**id** | **string** | Mapper id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **protocolMapperRepresentation** | [**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost + +> AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost(ctx, realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + +Create a mapper + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost(context.Background(), realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **protocolMapperRepresentation** | [**ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet + +> []ProtocolMapperRepresentation AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet(ctx, realm, clientUuid, protocol).Execute() + +Get mappers by name for a specific protocol + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + protocol := "protocol_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet(context.Background(), realm, clientUuid, protocol).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet`: []ProtocolMapperRepresentation + fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**protocol** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/PublishedRealmRepresentation.md b/docs/PublishedRealmRepresentation.md new file mode 100644 index 0000000..c4c479d --- /dev/null +++ b/docs/PublishedRealmRepresentation.md @@ -0,0 +1,160 @@ +# PublishedRealmRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Realm** | Pointer to **string** | | [optional] +**PublicKey** | Pointer to **string** | | [optional] +**TokenService** | Pointer to **string** | | [optional] +**AccountService** | Pointer to **string** | | [optional] +**TokensNotBefore** | Pointer to **int32** | | [optional] + +## Methods + +### NewPublishedRealmRepresentation + +`func NewPublishedRealmRepresentation() *PublishedRealmRepresentation` + +NewPublishedRealmRepresentation instantiates a new PublishedRealmRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPublishedRealmRepresentationWithDefaults + +`func NewPublishedRealmRepresentationWithDefaults() *PublishedRealmRepresentation` + +NewPublishedRealmRepresentationWithDefaults instantiates a new PublishedRealmRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRealm + +`func (o *PublishedRealmRepresentation) GetRealm() string` + +GetRealm returns the Realm field if non-nil, zero value otherwise. + +### GetRealmOk + +`func (o *PublishedRealmRepresentation) GetRealmOk() (*string, bool)` + +GetRealmOk returns a tuple with the Realm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealm + +`func (o *PublishedRealmRepresentation) SetRealm(v string)` + +SetRealm sets Realm field to given value. + +### HasRealm + +`func (o *PublishedRealmRepresentation) HasRealm() bool` + +HasRealm returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *PublishedRealmRepresentation) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *PublishedRealmRepresentation) 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 *PublishedRealmRepresentation) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *PublishedRealmRepresentation) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetTokenService + +`func (o *PublishedRealmRepresentation) GetTokenService() string` + +GetTokenService returns the TokenService field if non-nil, zero value otherwise. + +### GetTokenServiceOk + +`func (o *PublishedRealmRepresentation) GetTokenServiceOk() (*string, bool)` + +GetTokenServiceOk returns a tuple with the TokenService field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenService + +`func (o *PublishedRealmRepresentation) SetTokenService(v string)` + +SetTokenService sets TokenService field to given value. + +### HasTokenService + +`func (o *PublishedRealmRepresentation) HasTokenService() bool` + +HasTokenService returns a boolean if a field has been set. + +### GetAccountService + +`func (o *PublishedRealmRepresentation) GetAccountService() string` + +GetAccountService returns the AccountService field if non-nil, zero value otherwise. + +### GetAccountServiceOk + +`func (o *PublishedRealmRepresentation) GetAccountServiceOk() (*string, bool)` + +GetAccountServiceOk returns a tuple with the AccountService field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountService + +`func (o *PublishedRealmRepresentation) SetAccountService(v string)` + +SetAccountService sets AccountService field to given value. + +### HasAccountService + +`func (o *PublishedRealmRepresentation) HasAccountService() bool` + +HasAccountService returns a boolean if a field has been set. + +### GetTokensNotBefore + +`func (o *PublishedRealmRepresentation) GetTokensNotBefore() int32` + +GetTokensNotBefore returns the TokensNotBefore field if non-nil, zero value otherwise. + +### GetTokensNotBeforeOk + +`func (o *PublishedRealmRepresentation) GetTokensNotBeforeOk() (*int32, bool)` + +GetTokensNotBeforeOk returns a tuple with the TokensNotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokensNotBefore + +`func (o *PublishedRealmRepresentation) SetTokensNotBefore(v int32)` + +SetTokensNotBefore sets TokensNotBefore field to given value. + +### HasTokensNotBefore + +`func (o *PublishedRealmRepresentation) HasTokensNotBefore() bool` + +HasTokensNotBefore returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RealmEventsConfigRepresentation.md b/docs/RealmEventsConfigRepresentation.md new file mode 100644 index 0000000..1f394e4 --- /dev/null +++ b/docs/RealmEventsConfigRepresentation.md @@ -0,0 +1,186 @@ +# RealmEventsConfigRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventsEnabled** | Pointer to **bool** | | [optional] +**EventsExpiration** | Pointer to **int64** | | [optional] +**EventsListeners** | Pointer to **[]string** | | [optional] +**EnabledEventTypes** | Pointer to **[]string** | | [optional] +**AdminEventsEnabled** | Pointer to **bool** | | [optional] +**AdminEventsDetailsEnabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewRealmEventsConfigRepresentation + +`func NewRealmEventsConfigRepresentation() *RealmEventsConfigRepresentation` + +NewRealmEventsConfigRepresentation instantiates a new RealmEventsConfigRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRealmEventsConfigRepresentationWithDefaults + +`func NewRealmEventsConfigRepresentationWithDefaults() *RealmEventsConfigRepresentation` + +NewRealmEventsConfigRepresentationWithDefaults instantiates a new RealmEventsConfigRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEventsEnabled + +`func (o *RealmEventsConfigRepresentation) GetEventsEnabled() bool` + +GetEventsEnabled returns the EventsEnabled field if non-nil, zero value otherwise. + +### GetEventsEnabledOk + +`func (o *RealmEventsConfigRepresentation) GetEventsEnabledOk() (*bool, bool)` + +GetEventsEnabledOk returns a tuple with the EventsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventsEnabled + +`func (o *RealmEventsConfigRepresentation) SetEventsEnabled(v bool)` + +SetEventsEnabled sets EventsEnabled field to given value. + +### HasEventsEnabled + +`func (o *RealmEventsConfigRepresentation) HasEventsEnabled() bool` + +HasEventsEnabled returns a boolean if a field has been set. + +### GetEventsExpiration + +`func (o *RealmEventsConfigRepresentation) GetEventsExpiration() int64` + +GetEventsExpiration returns the EventsExpiration field if non-nil, zero value otherwise. + +### GetEventsExpirationOk + +`func (o *RealmEventsConfigRepresentation) GetEventsExpirationOk() (*int64, bool)` + +GetEventsExpirationOk returns a tuple with the EventsExpiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventsExpiration + +`func (o *RealmEventsConfigRepresentation) SetEventsExpiration(v int64)` + +SetEventsExpiration sets EventsExpiration field to given value. + +### HasEventsExpiration + +`func (o *RealmEventsConfigRepresentation) HasEventsExpiration() bool` + +HasEventsExpiration returns a boolean if a field has been set. + +### GetEventsListeners + +`func (o *RealmEventsConfigRepresentation) GetEventsListeners() []string` + +GetEventsListeners returns the EventsListeners field if non-nil, zero value otherwise. + +### GetEventsListenersOk + +`func (o *RealmEventsConfigRepresentation) GetEventsListenersOk() (*[]string, bool)` + +GetEventsListenersOk returns a tuple with the EventsListeners field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventsListeners + +`func (o *RealmEventsConfigRepresentation) SetEventsListeners(v []string)` + +SetEventsListeners sets EventsListeners field to given value. + +### HasEventsListeners + +`func (o *RealmEventsConfigRepresentation) HasEventsListeners() bool` + +HasEventsListeners returns a boolean if a field has been set. + +### GetEnabledEventTypes + +`func (o *RealmEventsConfigRepresentation) GetEnabledEventTypes() []string` + +GetEnabledEventTypes returns the EnabledEventTypes field if non-nil, zero value otherwise. + +### GetEnabledEventTypesOk + +`func (o *RealmEventsConfigRepresentation) GetEnabledEventTypesOk() (*[]string, bool)` + +GetEnabledEventTypesOk returns a tuple with the EnabledEventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledEventTypes + +`func (o *RealmEventsConfigRepresentation) SetEnabledEventTypes(v []string)` + +SetEnabledEventTypes sets EnabledEventTypes field to given value. + +### HasEnabledEventTypes + +`func (o *RealmEventsConfigRepresentation) HasEnabledEventTypes() bool` + +HasEnabledEventTypes returns a boolean if a field has been set. + +### GetAdminEventsEnabled + +`func (o *RealmEventsConfigRepresentation) GetAdminEventsEnabled() bool` + +GetAdminEventsEnabled returns the AdminEventsEnabled field if non-nil, zero value otherwise. + +### GetAdminEventsEnabledOk + +`func (o *RealmEventsConfigRepresentation) GetAdminEventsEnabledOk() (*bool, bool)` + +GetAdminEventsEnabledOk returns a tuple with the AdminEventsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminEventsEnabled + +`func (o *RealmEventsConfigRepresentation) SetAdminEventsEnabled(v bool)` + +SetAdminEventsEnabled sets AdminEventsEnabled field to given value. + +### HasAdminEventsEnabled + +`func (o *RealmEventsConfigRepresentation) HasAdminEventsEnabled() bool` + +HasAdminEventsEnabled returns a boolean if a field has been set. + +### GetAdminEventsDetailsEnabled + +`func (o *RealmEventsConfigRepresentation) GetAdminEventsDetailsEnabled() bool` + +GetAdminEventsDetailsEnabled returns the AdminEventsDetailsEnabled field if non-nil, zero value otherwise. + +### GetAdminEventsDetailsEnabledOk + +`func (o *RealmEventsConfigRepresentation) GetAdminEventsDetailsEnabledOk() (*bool, bool)` + +GetAdminEventsDetailsEnabledOk returns a tuple with the AdminEventsDetailsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminEventsDetailsEnabled + +`func (o *RealmEventsConfigRepresentation) SetAdminEventsDetailsEnabled(v bool)` + +SetAdminEventsDetailsEnabled sets AdminEventsDetailsEnabled field to given value. + +### HasAdminEventsDetailsEnabled + +`func (o *RealmEventsConfigRepresentation) HasAdminEventsDetailsEnabled() bool` + +HasAdminEventsDetailsEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RealmRepresentation.md b/docs/RealmRepresentation.md new file mode 100644 index 0000000..a19d4ed --- /dev/null +++ b/docs/RealmRepresentation.md @@ -0,0 +1,3875 @@ +# RealmRepresentation + +## Properties + +| Name | Type | Description | Notes | +| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ----------- | ---------- | +| **Id** | Pointer to **string** | | [optional] | +| **Realm** | Pointer to **string** | | [optional] | +| **DisplayName** | Pointer to **string** | | [optional] | +| **DisplayNameHtml** | Pointer to **string** | | [optional] | +| **NotBefore** | Pointer to **int32** | | [optional] | +| **DefaultSignatureAlgorithm** | Pointer to **string** | | [optional] | +| **RevokeRefreshToken** | Pointer to **bool** | | [optional] | +| **RefreshTokenMaxReuse** | Pointer to **int32** | | [optional] | +| **AccessTokenLifespan** | Pointer to **int32** | | [optional] | +| **AccessTokenLifespanForImplicitFlow** | Pointer to **int32** | | [optional] | +| **SsoSessionIdleTimeout** | Pointer to **int32** | | [optional] | +| **SsoSessionMaxLifespan** | Pointer to **int32** | | [optional] | +| **SsoSessionIdleTimeoutRememberMe** | Pointer to **int32** | | [optional] | +| **SsoSessionMaxLifespanRememberMe** | Pointer to **int32** | | [optional] | +| **OfflineSessionIdleTimeout** | Pointer to **int32** | | [optional] | +| **OfflineSessionMaxLifespanEnabled** | Pointer to **bool** | | [optional] | +| **OfflineSessionMaxLifespan** | Pointer to **int32** | | [optional] | +| **ClientSessionIdleTimeout** | Pointer to **int32** | | [optional] | +| **ClientSessionMaxLifespan** | Pointer to **int32** | | [optional] | +| **ClientOfflineSessionIdleTimeout** | Pointer to **int32** | | [optional] | +| **ClientOfflineSessionMaxLifespan** | Pointer to **int32** | | [optional] | +| **AccessCodeLifespan** | Pointer to **int32** | | [optional] | +| **AccessCodeLifespanUserAction** | Pointer to **int32** | | [optional] | +| **AccessCodeLifespanLogin** | Pointer to **int32** | | [optional] | +| **ActionTokenGeneratedByAdminLifespan** | Pointer to **int32** | | [optional] | +| **ActionTokenGeneratedByUserLifespan** | Pointer to **int32** | | [optional] | +| **Oauth2DeviceCodeLifespan** | Pointer to **int32** | | [optional] | +| **Oauth2DevicePollingInterval** | Pointer to **int32** | | [optional] | +| **Enabled** | Pointer to **bool** | | [optional] | +| **SslRequired** | Pointer to **string** | | [optional] | +| **PasswordCredentialGrantAllowed** | Pointer to **bool** | | [optional] | +| **RegistrationAllowed** | Pointer to **bool** | | [optional] | +| **RegistrationEmailAsUsername** | Pointer to **bool** | | [optional] | +| **RememberMe** | Pointer to **bool** | | [optional] | +| **VerifyEmail** | Pointer to **bool** | | [optional] | +| **LoginWithEmailAllowed** | Pointer to **bool** | | [optional] | +| **DuplicateEmailsAllowed** | Pointer to **bool** | | [optional] | +| **ResetPasswordAllowed** | Pointer to **bool** | | [optional] | +| **EditUsernameAllowed** | Pointer to **bool** | | [optional] | +| **UserCacheEnabled** | Pointer to **bool** | | [optional] | +| **RealmCacheEnabled** | Pointer to **bool** | | [optional] | +| **BruteForceProtected** | Pointer to **bool** | | [optional] | +| **PermanentLockout** | Pointer to **bool** | | [optional] | +| **MaxTemporaryLockouts** | Pointer to **int32** | | [optional] | +| **BruteForceStrategy** | Pointer to [**BruteForceStrategy**](BruteForceStrategy.md) | | [optional] | +| **MaxFailureWaitSeconds** | Pointer to **int32** | | [optional] | +| **MinimumQuickLoginWaitSeconds** | Pointer to **int32** | | [optional] | +| **WaitIncrementSeconds** | Pointer to **int32** | | [optional] | +| **QuickLoginCheckMilliSeconds** | Pointer to **int64** | | [optional] | +| **MaxDeltaTimeSeconds** | Pointer to **int32** | | [optional] | +| **FailureFactor** | Pointer to **int32** | | [optional] | +| **PrivateKey** | Pointer to **string** | | [optional] | +| **PublicKey** | Pointer to **string** | | [optional] | +| **Certificate** | Pointer to **string** | | [optional] | +| **CodeSecret** | Pointer to **string** | | [optional] | +| **Roles** | Pointer to [**RolesRepresentation**](RolesRepresentation.md) | | [optional] | +| **Groups** | Pointer to [**[]GroupRepresentation**](GroupRepresentation.md) | | [optional] | +| **DefaultRoles** | Pointer to **[]string** | | [optional] | +| **DefaultRole** | Pointer to [**RoleRepresentation**](RoleRepresentation.md) | | [optional] | +| **DefaultGroups** | Pointer to **[]string** | | [optional] | +| **RequiredCredentials** | Pointer to **[]string** | | [optional] | +| **PasswordPolicy** | Pointer to **string** | | [optional] | +| **OtpPolicyType** | Pointer to **string** | | [optional] | +| **OtpPolicyAlgorithm** | Pointer to **string** | | [optional] | +| **OtpPolicyInitialCounter** | Pointer to **int32** | | [optional] | +| **OtpPolicyDigits** | Pointer to **int32** | | [optional] | +| **OtpPolicyLookAheadWindow** | Pointer to **int32** | | [optional] | +| **OtpPolicyPeriod** | Pointer to **int32** | | [optional] | +| **OtpPolicyCodeReusable** | Pointer to **bool** | | [optional] | +| **OtpSupportedApplications** | Pointer to **[]string** | | [optional] | +| **LocalizationTexts** | Pointer to **map[string]map[string]string** | | [optional] | +| **WebAuthnPolicyRpEntityName** | Pointer to **string** | | [optional] | +| **WebAuthnPolicySignatureAlgorithms** | Pointer to **[]string** | | [optional] | +| **WebAuthnPolicyRpId** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyAttestationConveyancePreference** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyAuthenticatorAttachment** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyRequireResidentKey** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyUserVerificationRequirement** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyCreateTimeout** | Pointer to **int32** | | [optional] | +| **WebAuthnPolicyAvoidSameAuthenticatorRegister** | Pointer to **bool** | | [optional] | +| **WebAuthnPolicyAcceptableAaguids** | Pointer to **[]string** | | [optional] | +| **WebAuthnPolicyExtraOrigins** | Pointer to **[]string** | | [optional] | +| **WebAuthnPolicyPasswordlessRpEntityName** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyPasswordlessSignatureAlgorithms** | Pointer to **[]string** | | [optional] | +| **WebAuthnPolicyPasswordlessRpId** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyPasswordlessAttestationConveyancePreference** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyPasswordlessAuthenticatorAttachment** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyPasswordlessRequireResidentKey** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyPasswordlessUserVerificationRequirement** | Pointer to **string** | | [optional] | +| **WebAuthnPolicyPasswordlessCreateTimeout** | Pointer to **int32** | | [optional] | +| **WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister** | Pointer to **bool** | | [optional] | +| **WebAuthnPolicyPasswordlessAcceptableAaguids** | Pointer to **[]string** | | [optional] | +| **WebAuthnPolicyPasswordlessExtraOrigins** | Pointer to **[]string** | | [optional] | +| **ClientProfiles** | Pointer to [**ClientProfilesRepresentation**](ClientProfilesRepresentation.md) | | [optional] | +| **ClientPolicies** | Pointer to [**ClientPoliciesRepresentation**](ClientPoliciesRepresentation.md) | | [optional] | +| **Users** | Pointer to [**[]UserRepresentation**](UserRepresentation.md) | | [optional] | +| **FederatedUsers** | Pointer to [**[]UserRepresentation**](UserRepresentation.md) | | [optional] | +| **ScopeMappings** | Pointer to [**[]ScopeMappingRepresentation**](ScopeMappingRepresentation.md) | | [optional] | +| **ClientScopeMappings** | Pointer to [**map[string][]ScopeMappingRepresentation**](array.md) | | [optional] | +| **Clients** | Pointer to [**[]ClientRepresentation**](ClientRepresentation.md) | | [optional] | +| **ClientScopes** | Pointer to [**[]ClientScopeRepresentation**](ClientScopeRepresentation.md) | | [optional] | +| **DefaultDefaultClientScopes** | Pointer to **[]string** | | [optional] | +| **DefaultOptionalClientScopes** | Pointer to **[]string** | | [optional] | +| **BrowserSecurityHeaders** | Pointer to **map[string]string** | | [optional] | +| **SmtpServer** | Pointer to **map[string]string** | | [optional] | +| **UserFederationProviders** | Pointer to [**[]UserFederationProviderRepresentation**](UserFederationProviderRepresentation.md) | | [optional] | +| **UserFederationMappers** | Pointer to [**[]UserFederationMapperRepresentation**](UserFederationMapperRepresentation.md) | | [optional] | +| **LoginTheme** | Pointer to **string** | | [optional] | +| **AccountTheme** | Pointer to **string** | | [optional] | +| **AdminTheme** | Pointer to **string** | | [optional] | +| **EmailTheme** | Pointer to **string** | | [optional] | +| **EventsEnabled** | Pointer to **bool** | | [optional] | +| **EventsExpiration** | Pointer to **int64** | | [optional] | +| **EventsListeners** | Pointer to **[]string** | | [optional] | +| **EnabledEventTypes** | Pointer to **[]string** | | [optional] | +| **AdminEventsEnabled** | Pointer to **bool** | | [optional] | +| **AdminEventsDetailsEnabled** | Pointer to **bool** | | [optional] | +| **IdentityProviders** | Pointer to [**[]IdentityProviderRepresentation**](IdentityProviderRepresentation.md) | | [optional] | +| **IdentityProviderMappers** | Pointer to [**[]IdentityProviderMapperRepresentation**](IdentityProviderMapperRepresentation.md) | | [optional] | +| **ProtocolMappers** | Pointer to [**[]ProtocolMapperRepresentation**](ProtocolMapperRepresentation.md) | | [optional] | +| **Components** | Pointer to [**map[string][]ComponentExportRepresentation**](array.md) | | [optional] | +| **InternationalizationEnabled** | Pointer to **bool** | | [optional] | +| **SupportedLocales** | Pointer to **[]string** | | [optional] | +| **DefaultLocale** | Pointer to **string** | | [optional] | +| **AuthenticationFlows** | Pointer to [**[]AuthenticationFlowRepresentation**](AuthenticationFlowRepresentation.md) | | [optional] | +| **AuthenticatorConfig** | Pointer to [**[]AuthenticatorConfigRepresentation**](AuthenticatorConfigRepresentation.md) | | [optional] | +| **RequiredActions** | Pointer to [**[]RequiredActionProviderRepresentation**](RequiredActionProviderRepresentation.md) | | [optional] | +| **BrowserFlow** | Pointer to **string** | | [optional] | +| **RegistrationFlow** | Pointer to **string** | | [optional] | +| **DirectGrantFlow** | Pointer to **string** | | [optional] | +| **ResetCredentialsFlow** | Pointer to **string** | | [optional] | +| **ClientAuthenticationFlow** | Pointer to **string** | | [optional] | +| **DockerAuthenticationFlow** | Pointer to **string** | | [optional] | +| **FirstBrokerLoginFlow** | Pointer to **string** | | [optional] | +| **Attributes** | Pointer to **map[string]string** | | [optional] | +| **KeycloakVersion** | Pointer to **string** | | [optional] | +| **UserManagedAccessAllowed** | Pointer to **bool** | | [optional] | +| **OrganizationsEnabled** | Pointer to **bool** | | [optional] | +| **Organizations** | Pointer to [**[]OrganizationRepresentation**](OrganizationRepresentation.md) | | [optional] | +| **Social** | Pointer to **bool** | | [optional] | +| **UpdateProfileOnInitialSocialLogin** | Pointer to **bool** | | [optional] | +| **SocialProviders** | Pointer to **map[string]string** | | [optional] | +| **ApplicationScopeMappings** | Pointer to [**map[string][]ScopeMappingRepresentation**](array.md) | | [optional] | +| **Applications** | Pointer to [**[]ApplicationRepresentation**](ApplicationRepresentation.md) | | [optional] | +| **OauthClients** | Pointer to [**[]OAuthClientRepresentation**](OAuthClientRepresentation.md) | | [optional] | +| **ClientTemplates** | Pointer to [**[]ClientTemplateRepresentation**](ClientTemplateRepresentation.md) | | [optional] | +| **OAuth2DeviceCodeLifespan** | Pointer to **int32** | | [optional] | +| **OAuth2DevicePollingInterval** | Pointer to **int32** | | [optional] | + +## Methods + +### NewRealmRepresentation + +`func NewRealmRepresentation() *RealmRepresentation` + +NewRealmRepresentation instantiates a new RealmRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRealmRepresentationWithDefaults + +`func NewRealmRepresentationWithDefaults() *RealmRepresentation` + +NewRealmRepresentationWithDefaults instantiates a new RealmRepresentation object +This 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 *RealmRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RealmRepresentation) 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 *RealmRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RealmRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetRealm + +`func (o *RealmRepresentation) GetRealm() string` + +GetRealm returns the Realm field if non-nil, zero value otherwise. + +### GetRealmOk + +`func (o *RealmRepresentation) GetRealmOk() (*string, bool)` + +GetRealmOk returns a tuple with the Realm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealm + +`func (o *RealmRepresentation) SetRealm(v string)` + +SetRealm sets Realm field to given value. + +### HasRealm + +`func (o *RealmRepresentation) HasRealm() bool` + +HasRealm returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *RealmRepresentation) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *RealmRepresentation) 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 *RealmRepresentation) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *RealmRepresentation) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDisplayNameHtml + +`func (o *RealmRepresentation) GetDisplayNameHtml() string` + +GetDisplayNameHtml returns the DisplayNameHtml field if non-nil, zero value otherwise. + +### GetDisplayNameHtmlOk + +`func (o *RealmRepresentation) GetDisplayNameHtmlOk() (*string, bool)` + +GetDisplayNameHtmlOk returns a tuple with the DisplayNameHtml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayNameHtml + +`func (o *RealmRepresentation) SetDisplayNameHtml(v string)` + +SetDisplayNameHtml sets DisplayNameHtml field to given value. + +### HasDisplayNameHtml + +`func (o *RealmRepresentation) HasDisplayNameHtml() bool` + +HasDisplayNameHtml returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *RealmRepresentation) GetNotBefore() int32` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *RealmRepresentation) GetNotBeforeOk() (*int32, 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 *RealmRepresentation) SetNotBefore(v int32)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *RealmRepresentation) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetDefaultSignatureAlgorithm + +`func (o *RealmRepresentation) GetDefaultSignatureAlgorithm() string` + +GetDefaultSignatureAlgorithm returns the DefaultSignatureAlgorithm field if non-nil, zero value otherwise. + +### GetDefaultSignatureAlgorithmOk + +`func (o *RealmRepresentation) GetDefaultSignatureAlgorithmOk() (*string, bool)` + +GetDefaultSignatureAlgorithmOk returns a tuple with the DefaultSignatureAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultSignatureAlgorithm + +`func (o *RealmRepresentation) SetDefaultSignatureAlgorithm(v string)` + +SetDefaultSignatureAlgorithm sets DefaultSignatureAlgorithm field to given value. + +### HasDefaultSignatureAlgorithm + +`func (o *RealmRepresentation) HasDefaultSignatureAlgorithm() bool` + +HasDefaultSignatureAlgorithm returns a boolean if a field has been set. + +### GetRevokeRefreshToken + +`func (o *RealmRepresentation) GetRevokeRefreshToken() bool` + +GetRevokeRefreshToken returns the RevokeRefreshToken field if non-nil, zero value otherwise. + +### GetRevokeRefreshTokenOk + +`func (o *RealmRepresentation) GetRevokeRefreshTokenOk() (*bool, bool)` + +GetRevokeRefreshTokenOk returns a tuple with the RevokeRefreshToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevokeRefreshToken + +`func (o *RealmRepresentation) SetRevokeRefreshToken(v bool)` + +SetRevokeRefreshToken sets RevokeRefreshToken field to given value. + +### HasRevokeRefreshToken + +`func (o *RealmRepresentation) HasRevokeRefreshToken() bool` + +HasRevokeRefreshToken returns a boolean if a field has been set. + +### GetRefreshTokenMaxReuse + +`func (o *RealmRepresentation) GetRefreshTokenMaxReuse() int32` + +GetRefreshTokenMaxReuse returns the RefreshTokenMaxReuse field if non-nil, zero value otherwise. + +### GetRefreshTokenMaxReuseOk + +`func (o *RealmRepresentation) GetRefreshTokenMaxReuseOk() (*int32, bool)` + +GetRefreshTokenMaxReuseOk returns a tuple with the RefreshTokenMaxReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefreshTokenMaxReuse + +`func (o *RealmRepresentation) SetRefreshTokenMaxReuse(v int32)` + +SetRefreshTokenMaxReuse sets RefreshTokenMaxReuse field to given value. + +### HasRefreshTokenMaxReuse + +`func (o *RealmRepresentation) HasRefreshTokenMaxReuse() bool` + +HasRefreshTokenMaxReuse returns a boolean if a field has been set. + +### GetAccessTokenLifespan + +`func (o *RealmRepresentation) GetAccessTokenLifespan() int32` + +GetAccessTokenLifespan returns the AccessTokenLifespan field if non-nil, zero value otherwise. + +### GetAccessTokenLifespanOk + +`func (o *RealmRepresentation) GetAccessTokenLifespanOk() (*int32, bool)` + +GetAccessTokenLifespanOk returns a tuple with the AccessTokenLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessTokenLifespan + +`func (o *RealmRepresentation) SetAccessTokenLifespan(v int32)` + +SetAccessTokenLifespan sets AccessTokenLifespan field to given value. + +### HasAccessTokenLifespan + +`func (o *RealmRepresentation) HasAccessTokenLifespan() bool` + +HasAccessTokenLifespan returns a boolean if a field has been set. + +### GetAccessTokenLifespanForImplicitFlow + +`func (o *RealmRepresentation) GetAccessTokenLifespanForImplicitFlow() int32` + +GetAccessTokenLifespanForImplicitFlow returns the AccessTokenLifespanForImplicitFlow field if non-nil, zero value otherwise. + +### GetAccessTokenLifespanForImplicitFlowOk + +`func (o *RealmRepresentation) GetAccessTokenLifespanForImplicitFlowOk() (*int32, bool)` + +GetAccessTokenLifespanForImplicitFlowOk returns a tuple with the AccessTokenLifespanForImplicitFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessTokenLifespanForImplicitFlow + +`func (o *RealmRepresentation) SetAccessTokenLifespanForImplicitFlow(v int32)` + +SetAccessTokenLifespanForImplicitFlow sets AccessTokenLifespanForImplicitFlow field to given value. + +### HasAccessTokenLifespanForImplicitFlow + +`func (o *RealmRepresentation) HasAccessTokenLifespanForImplicitFlow() bool` + +HasAccessTokenLifespanForImplicitFlow returns a boolean if a field has been set. + +### GetSsoSessionIdleTimeout + +`func (o *RealmRepresentation) GetSsoSessionIdleTimeout() int32` + +GetSsoSessionIdleTimeout returns the SsoSessionIdleTimeout field if non-nil, zero value otherwise. + +### GetSsoSessionIdleTimeoutOk + +`func (o *RealmRepresentation) GetSsoSessionIdleTimeoutOk() (*int32, bool)` + +GetSsoSessionIdleTimeoutOk returns a tuple with the SsoSessionIdleTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSsoSessionIdleTimeout + +`func (o *RealmRepresentation) SetSsoSessionIdleTimeout(v int32)` + +SetSsoSessionIdleTimeout sets SsoSessionIdleTimeout field to given value. + +### HasSsoSessionIdleTimeout + +`func (o *RealmRepresentation) HasSsoSessionIdleTimeout() bool` + +HasSsoSessionIdleTimeout returns a boolean if a field has been set. + +### GetSsoSessionMaxLifespan + +`func (o *RealmRepresentation) GetSsoSessionMaxLifespan() int32` + +GetSsoSessionMaxLifespan returns the SsoSessionMaxLifespan field if non-nil, zero value otherwise. + +### GetSsoSessionMaxLifespanOk + +`func (o *RealmRepresentation) GetSsoSessionMaxLifespanOk() (*int32, bool)` + +GetSsoSessionMaxLifespanOk returns a tuple with the SsoSessionMaxLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSsoSessionMaxLifespan + +`func (o *RealmRepresentation) SetSsoSessionMaxLifespan(v int32)` + +SetSsoSessionMaxLifespan sets SsoSessionMaxLifespan field to given value. + +### HasSsoSessionMaxLifespan + +`func (o *RealmRepresentation) HasSsoSessionMaxLifespan() bool` + +HasSsoSessionMaxLifespan returns a boolean if a field has been set. + +### GetSsoSessionIdleTimeoutRememberMe + +`func (o *RealmRepresentation) GetSsoSessionIdleTimeoutRememberMe() int32` + +GetSsoSessionIdleTimeoutRememberMe returns the SsoSessionIdleTimeoutRememberMe field if non-nil, zero value otherwise. + +### GetSsoSessionIdleTimeoutRememberMeOk + +`func (o *RealmRepresentation) GetSsoSessionIdleTimeoutRememberMeOk() (*int32, bool)` + +GetSsoSessionIdleTimeoutRememberMeOk returns a tuple with the SsoSessionIdleTimeoutRememberMe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSsoSessionIdleTimeoutRememberMe + +`func (o *RealmRepresentation) SetSsoSessionIdleTimeoutRememberMe(v int32)` + +SetSsoSessionIdleTimeoutRememberMe sets SsoSessionIdleTimeoutRememberMe field to given value. + +### HasSsoSessionIdleTimeoutRememberMe + +`func (o *RealmRepresentation) HasSsoSessionIdleTimeoutRememberMe() bool` + +HasSsoSessionIdleTimeoutRememberMe returns a boolean if a field has been set. + +### GetSsoSessionMaxLifespanRememberMe + +`func (o *RealmRepresentation) GetSsoSessionMaxLifespanRememberMe() int32` + +GetSsoSessionMaxLifespanRememberMe returns the SsoSessionMaxLifespanRememberMe field if non-nil, zero value otherwise. + +### GetSsoSessionMaxLifespanRememberMeOk + +`func (o *RealmRepresentation) GetSsoSessionMaxLifespanRememberMeOk() (*int32, bool)` + +GetSsoSessionMaxLifespanRememberMeOk returns a tuple with the SsoSessionMaxLifespanRememberMe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSsoSessionMaxLifespanRememberMe + +`func (o *RealmRepresentation) SetSsoSessionMaxLifespanRememberMe(v int32)` + +SetSsoSessionMaxLifespanRememberMe sets SsoSessionMaxLifespanRememberMe field to given value. + +### HasSsoSessionMaxLifespanRememberMe + +`func (o *RealmRepresentation) HasSsoSessionMaxLifespanRememberMe() bool` + +HasSsoSessionMaxLifespanRememberMe returns a boolean if a field has been set. + +### GetOfflineSessionIdleTimeout + +`func (o *RealmRepresentation) GetOfflineSessionIdleTimeout() int32` + +GetOfflineSessionIdleTimeout returns the OfflineSessionIdleTimeout field if non-nil, zero value otherwise. + +### GetOfflineSessionIdleTimeoutOk + +`func (o *RealmRepresentation) GetOfflineSessionIdleTimeoutOk() (*int32, bool)` + +GetOfflineSessionIdleTimeoutOk returns a tuple with the OfflineSessionIdleTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOfflineSessionIdleTimeout + +`func (o *RealmRepresentation) SetOfflineSessionIdleTimeout(v int32)` + +SetOfflineSessionIdleTimeout sets OfflineSessionIdleTimeout field to given value. + +### HasOfflineSessionIdleTimeout + +`func (o *RealmRepresentation) HasOfflineSessionIdleTimeout() bool` + +HasOfflineSessionIdleTimeout returns a boolean if a field has been set. + +### GetOfflineSessionMaxLifespanEnabled + +`func (o *RealmRepresentation) GetOfflineSessionMaxLifespanEnabled() bool` + +GetOfflineSessionMaxLifespanEnabled returns the OfflineSessionMaxLifespanEnabled field if non-nil, zero value otherwise. + +### GetOfflineSessionMaxLifespanEnabledOk + +`func (o *RealmRepresentation) GetOfflineSessionMaxLifespanEnabledOk() (*bool, bool)` + +GetOfflineSessionMaxLifespanEnabledOk returns a tuple with the OfflineSessionMaxLifespanEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOfflineSessionMaxLifespanEnabled + +`func (o *RealmRepresentation) SetOfflineSessionMaxLifespanEnabled(v bool)` + +SetOfflineSessionMaxLifespanEnabled sets OfflineSessionMaxLifespanEnabled field to given value. + +### HasOfflineSessionMaxLifespanEnabled + +`func (o *RealmRepresentation) HasOfflineSessionMaxLifespanEnabled() bool` + +HasOfflineSessionMaxLifespanEnabled returns a boolean if a field has been set. + +### GetOfflineSessionMaxLifespan + +`func (o *RealmRepresentation) GetOfflineSessionMaxLifespan() int32` + +GetOfflineSessionMaxLifespan returns the OfflineSessionMaxLifespan field if non-nil, zero value otherwise. + +### GetOfflineSessionMaxLifespanOk + +`func (o *RealmRepresentation) GetOfflineSessionMaxLifespanOk() (*int32, bool)` + +GetOfflineSessionMaxLifespanOk returns a tuple with the OfflineSessionMaxLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOfflineSessionMaxLifespan + +`func (o *RealmRepresentation) SetOfflineSessionMaxLifespan(v int32)` + +SetOfflineSessionMaxLifespan sets OfflineSessionMaxLifespan field to given value. + +### HasOfflineSessionMaxLifespan + +`func (o *RealmRepresentation) HasOfflineSessionMaxLifespan() bool` + +HasOfflineSessionMaxLifespan returns a boolean if a field has been set. + +### GetClientSessionIdleTimeout + +`func (o *RealmRepresentation) GetClientSessionIdleTimeout() int32` + +GetClientSessionIdleTimeout returns the ClientSessionIdleTimeout field if non-nil, zero value otherwise. + +### GetClientSessionIdleTimeoutOk + +`func (o *RealmRepresentation) GetClientSessionIdleTimeoutOk() (*int32, bool)` + +GetClientSessionIdleTimeoutOk returns a tuple with the ClientSessionIdleTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSessionIdleTimeout + +`func (o *RealmRepresentation) SetClientSessionIdleTimeout(v int32)` + +SetClientSessionIdleTimeout sets ClientSessionIdleTimeout field to given value. + +### HasClientSessionIdleTimeout + +`func (o *RealmRepresentation) HasClientSessionIdleTimeout() bool` + +HasClientSessionIdleTimeout returns a boolean if a field has been set. + +### GetClientSessionMaxLifespan + +`func (o *RealmRepresentation) GetClientSessionMaxLifespan() int32` + +GetClientSessionMaxLifespan returns the ClientSessionMaxLifespan field if non-nil, zero value otherwise. + +### GetClientSessionMaxLifespanOk + +`func (o *RealmRepresentation) GetClientSessionMaxLifespanOk() (*int32, bool)` + +GetClientSessionMaxLifespanOk returns a tuple with the ClientSessionMaxLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSessionMaxLifespan + +`func (o *RealmRepresentation) SetClientSessionMaxLifespan(v int32)` + +SetClientSessionMaxLifespan sets ClientSessionMaxLifespan field to given value. + +### HasClientSessionMaxLifespan + +`func (o *RealmRepresentation) HasClientSessionMaxLifespan() bool` + +HasClientSessionMaxLifespan returns a boolean if a field has been set. + +### GetClientOfflineSessionIdleTimeout + +`func (o *RealmRepresentation) GetClientOfflineSessionIdleTimeout() int32` + +GetClientOfflineSessionIdleTimeout returns the ClientOfflineSessionIdleTimeout field if non-nil, zero value otherwise. + +### GetClientOfflineSessionIdleTimeoutOk + +`func (o *RealmRepresentation) GetClientOfflineSessionIdleTimeoutOk() (*int32, bool)` + +GetClientOfflineSessionIdleTimeoutOk returns a tuple with the ClientOfflineSessionIdleTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientOfflineSessionIdleTimeout + +`func (o *RealmRepresentation) SetClientOfflineSessionIdleTimeout(v int32)` + +SetClientOfflineSessionIdleTimeout sets ClientOfflineSessionIdleTimeout field to given value. + +### HasClientOfflineSessionIdleTimeout + +`func (o *RealmRepresentation) HasClientOfflineSessionIdleTimeout() bool` + +HasClientOfflineSessionIdleTimeout returns a boolean if a field has been set. + +### GetClientOfflineSessionMaxLifespan + +`func (o *RealmRepresentation) GetClientOfflineSessionMaxLifespan() int32` + +GetClientOfflineSessionMaxLifespan returns the ClientOfflineSessionMaxLifespan field if non-nil, zero value otherwise. + +### GetClientOfflineSessionMaxLifespanOk + +`func (o *RealmRepresentation) GetClientOfflineSessionMaxLifespanOk() (*int32, bool)` + +GetClientOfflineSessionMaxLifespanOk returns a tuple with the ClientOfflineSessionMaxLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientOfflineSessionMaxLifespan + +`func (o *RealmRepresentation) SetClientOfflineSessionMaxLifespan(v int32)` + +SetClientOfflineSessionMaxLifespan sets ClientOfflineSessionMaxLifespan field to given value. + +### HasClientOfflineSessionMaxLifespan + +`func (o *RealmRepresentation) HasClientOfflineSessionMaxLifespan() bool` + +HasClientOfflineSessionMaxLifespan returns a boolean if a field has been set. + +### GetAccessCodeLifespan + +`func (o *RealmRepresentation) GetAccessCodeLifespan() int32` + +GetAccessCodeLifespan returns the AccessCodeLifespan field if non-nil, zero value otherwise. + +### GetAccessCodeLifespanOk + +`func (o *RealmRepresentation) GetAccessCodeLifespanOk() (*int32, bool)` + +GetAccessCodeLifespanOk returns a tuple with the AccessCodeLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessCodeLifespan + +`func (o *RealmRepresentation) SetAccessCodeLifespan(v int32)` + +SetAccessCodeLifespan sets AccessCodeLifespan field to given value. + +### HasAccessCodeLifespan + +`func (o *RealmRepresentation) HasAccessCodeLifespan() bool` + +HasAccessCodeLifespan returns a boolean if a field has been set. + +### GetAccessCodeLifespanUserAction + +`func (o *RealmRepresentation) GetAccessCodeLifespanUserAction() int32` + +GetAccessCodeLifespanUserAction returns the AccessCodeLifespanUserAction field if non-nil, zero value otherwise. + +### GetAccessCodeLifespanUserActionOk + +`func (o *RealmRepresentation) GetAccessCodeLifespanUserActionOk() (*int32, bool)` + +GetAccessCodeLifespanUserActionOk returns a tuple with the AccessCodeLifespanUserAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessCodeLifespanUserAction + +`func (o *RealmRepresentation) SetAccessCodeLifespanUserAction(v int32)` + +SetAccessCodeLifespanUserAction sets AccessCodeLifespanUserAction field to given value. + +### HasAccessCodeLifespanUserAction + +`func (o *RealmRepresentation) HasAccessCodeLifespanUserAction() bool` + +HasAccessCodeLifespanUserAction returns a boolean if a field has been set. + +### GetAccessCodeLifespanLogin + +`func (o *RealmRepresentation) GetAccessCodeLifespanLogin() int32` + +GetAccessCodeLifespanLogin returns the AccessCodeLifespanLogin field if non-nil, zero value otherwise. + +### GetAccessCodeLifespanLoginOk + +`func (o *RealmRepresentation) GetAccessCodeLifespanLoginOk() (*int32, bool)` + +GetAccessCodeLifespanLoginOk returns a tuple with the AccessCodeLifespanLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessCodeLifespanLogin + +`func (o *RealmRepresentation) SetAccessCodeLifespanLogin(v int32)` + +SetAccessCodeLifespanLogin sets AccessCodeLifespanLogin field to given value. + +### HasAccessCodeLifespanLogin + +`func (o *RealmRepresentation) HasAccessCodeLifespanLogin() bool` + +HasAccessCodeLifespanLogin returns a boolean if a field has been set. + +### GetActionTokenGeneratedByAdminLifespan + +`func (o *RealmRepresentation) GetActionTokenGeneratedByAdminLifespan() int32` + +GetActionTokenGeneratedByAdminLifespan returns the ActionTokenGeneratedByAdminLifespan field if non-nil, zero value otherwise. + +### GetActionTokenGeneratedByAdminLifespanOk + +`func (o *RealmRepresentation) GetActionTokenGeneratedByAdminLifespanOk() (*int32, bool)` + +GetActionTokenGeneratedByAdminLifespanOk returns a tuple with the ActionTokenGeneratedByAdminLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionTokenGeneratedByAdminLifespan + +`func (o *RealmRepresentation) SetActionTokenGeneratedByAdminLifespan(v int32)` + +SetActionTokenGeneratedByAdminLifespan sets ActionTokenGeneratedByAdminLifespan field to given value. + +### HasActionTokenGeneratedByAdminLifespan + +`func (o *RealmRepresentation) HasActionTokenGeneratedByAdminLifespan() bool` + +HasActionTokenGeneratedByAdminLifespan returns a boolean if a field has been set. + +### GetActionTokenGeneratedByUserLifespan + +`func (o *RealmRepresentation) GetActionTokenGeneratedByUserLifespan() int32` + +GetActionTokenGeneratedByUserLifespan returns the ActionTokenGeneratedByUserLifespan field if non-nil, zero value otherwise. + +### GetActionTokenGeneratedByUserLifespanOk + +`func (o *RealmRepresentation) GetActionTokenGeneratedByUserLifespanOk() (*int32, bool)` + +GetActionTokenGeneratedByUserLifespanOk returns a tuple with the ActionTokenGeneratedByUserLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionTokenGeneratedByUserLifespan + +`func (o *RealmRepresentation) SetActionTokenGeneratedByUserLifespan(v int32)` + +SetActionTokenGeneratedByUserLifespan sets ActionTokenGeneratedByUserLifespan field to given value. + +### HasActionTokenGeneratedByUserLifespan + +`func (o *RealmRepresentation) HasActionTokenGeneratedByUserLifespan() bool` + +HasActionTokenGeneratedByUserLifespan returns a boolean if a field has been set. + +### GetOauth2DeviceCodeLifespan + +`func (o *RealmRepresentation) GetOauth2DeviceCodeLifespan() int32` + +GetOauth2DeviceCodeLifespan returns the Oauth2DeviceCodeLifespan field if non-nil, zero value otherwise. + +### GetOauth2DeviceCodeLifespanOk + +`func (o *RealmRepresentation) GetOauth2DeviceCodeLifespanOk() (*int32, bool)` + +GetOauth2DeviceCodeLifespanOk returns a tuple with the Oauth2DeviceCodeLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOauth2DeviceCodeLifespan + +`func (o *RealmRepresentation) SetOauth2DeviceCodeLifespan(v int32)` + +SetOauth2DeviceCodeLifespan sets Oauth2DeviceCodeLifespan field to given value. + +### HasOauth2DeviceCodeLifespan + +`func (o *RealmRepresentation) HasOauth2DeviceCodeLifespan() bool` + +HasOauth2DeviceCodeLifespan returns a boolean if a field has been set. + +### GetOauth2DevicePollingInterval + +`func (o *RealmRepresentation) GetOauth2DevicePollingInterval() int32` + +GetOauth2DevicePollingInterval returns the Oauth2DevicePollingInterval field if non-nil, zero value otherwise. + +### GetOauth2DevicePollingIntervalOk + +`func (o *RealmRepresentation) GetOauth2DevicePollingIntervalOk() (*int32, bool)` + +GetOauth2DevicePollingIntervalOk returns a tuple with the Oauth2DevicePollingInterval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOauth2DevicePollingInterval + +`func (o *RealmRepresentation) SetOauth2DevicePollingInterval(v int32)` + +SetOauth2DevicePollingInterval sets Oauth2DevicePollingInterval field to given value. + +### HasOauth2DevicePollingInterval + +`func (o *RealmRepresentation) HasOauth2DevicePollingInterval() bool` + +HasOauth2DevicePollingInterval returns a boolean if a field has been set. + +### GetEnabled + +`func (o *RealmRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *RealmRepresentation) 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 *RealmRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *RealmRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetSslRequired + +`func (o *RealmRepresentation) GetSslRequired() string` + +GetSslRequired returns the SslRequired field if non-nil, zero value otherwise. + +### GetSslRequiredOk + +`func (o *RealmRepresentation) GetSslRequiredOk() (*string, bool)` + +GetSslRequiredOk returns a tuple with the SslRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslRequired + +`func (o *RealmRepresentation) SetSslRequired(v string)` + +SetSslRequired sets SslRequired field to given value. + +### HasSslRequired + +`func (o *RealmRepresentation) HasSslRequired() bool` + +HasSslRequired returns a boolean if a field has been set. + +### GetPasswordCredentialGrantAllowed + +`func (o *RealmRepresentation) GetPasswordCredentialGrantAllowed() bool` + +GetPasswordCredentialGrantAllowed returns the PasswordCredentialGrantAllowed field if non-nil, zero value otherwise. + +### GetPasswordCredentialGrantAllowedOk + +`func (o *RealmRepresentation) GetPasswordCredentialGrantAllowedOk() (*bool, bool)` + +GetPasswordCredentialGrantAllowedOk returns a tuple with the PasswordCredentialGrantAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordCredentialGrantAllowed + +`func (o *RealmRepresentation) SetPasswordCredentialGrantAllowed(v bool)` + +SetPasswordCredentialGrantAllowed sets PasswordCredentialGrantAllowed field to given value. + +### HasPasswordCredentialGrantAllowed + +`func (o *RealmRepresentation) HasPasswordCredentialGrantAllowed() bool` + +HasPasswordCredentialGrantAllowed returns a boolean if a field has been set. + +### GetRegistrationAllowed + +`func (o *RealmRepresentation) GetRegistrationAllowed() bool` + +GetRegistrationAllowed returns the RegistrationAllowed field if non-nil, zero value otherwise. + +### GetRegistrationAllowedOk + +`func (o *RealmRepresentation) GetRegistrationAllowedOk() (*bool, bool)` + +GetRegistrationAllowedOk returns a tuple with the RegistrationAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistrationAllowed + +`func (o *RealmRepresentation) SetRegistrationAllowed(v bool)` + +SetRegistrationAllowed sets RegistrationAllowed field to given value. + +### HasRegistrationAllowed + +`func (o *RealmRepresentation) HasRegistrationAllowed() bool` + +HasRegistrationAllowed returns a boolean if a field has been set. + +### GetRegistrationEmailAsUsername + +`func (o *RealmRepresentation) GetRegistrationEmailAsUsername() bool` + +GetRegistrationEmailAsUsername returns the RegistrationEmailAsUsername field if non-nil, zero value otherwise. + +### GetRegistrationEmailAsUsernameOk + +`func (o *RealmRepresentation) GetRegistrationEmailAsUsernameOk() (*bool, bool)` + +GetRegistrationEmailAsUsernameOk returns a tuple with the RegistrationEmailAsUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistrationEmailAsUsername + +`func (o *RealmRepresentation) SetRegistrationEmailAsUsername(v bool)` + +SetRegistrationEmailAsUsername sets RegistrationEmailAsUsername field to given value. + +### HasRegistrationEmailAsUsername + +`func (o *RealmRepresentation) HasRegistrationEmailAsUsername() bool` + +HasRegistrationEmailAsUsername returns a boolean if a field has been set. + +### GetRememberMe + +`func (o *RealmRepresentation) GetRememberMe() bool` + +GetRememberMe returns the RememberMe field if non-nil, zero value otherwise. + +### GetRememberMeOk + +`func (o *RealmRepresentation) GetRememberMeOk() (*bool, bool)` + +GetRememberMeOk returns a tuple with the RememberMe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRememberMe + +`func (o *RealmRepresentation) SetRememberMe(v bool)` + +SetRememberMe sets RememberMe field to given value. + +### HasRememberMe + +`func (o *RealmRepresentation) HasRememberMe() bool` + +HasRememberMe returns a boolean if a field has been set. + +### GetVerifyEmail + +`func (o *RealmRepresentation) GetVerifyEmail() bool` + +GetVerifyEmail returns the VerifyEmail field if non-nil, zero value otherwise. + +### GetVerifyEmailOk + +`func (o *RealmRepresentation) GetVerifyEmailOk() (*bool, bool)` + +GetVerifyEmailOk returns a tuple with the VerifyEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifyEmail + +`func (o *RealmRepresentation) SetVerifyEmail(v bool)` + +SetVerifyEmail sets VerifyEmail field to given value. + +### HasVerifyEmail + +`func (o *RealmRepresentation) HasVerifyEmail() bool` + +HasVerifyEmail returns a boolean if a field has been set. + +### GetLoginWithEmailAllowed + +`func (o *RealmRepresentation) GetLoginWithEmailAllowed() bool` + +GetLoginWithEmailAllowed returns the LoginWithEmailAllowed field if non-nil, zero value otherwise. + +### GetLoginWithEmailAllowedOk + +`func (o *RealmRepresentation) GetLoginWithEmailAllowedOk() (*bool, bool)` + +GetLoginWithEmailAllowedOk returns a tuple with the LoginWithEmailAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginWithEmailAllowed + +`func (o *RealmRepresentation) SetLoginWithEmailAllowed(v bool)` + +SetLoginWithEmailAllowed sets LoginWithEmailAllowed field to given value. + +### HasLoginWithEmailAllowed + +`func (o *RealmRepresentation) HasLoginWithEmailAllowed() bool` + +HasLoginWithEmailAllowed returns a boolean if a field has been set. + +### GetDuplicateEmailsAllowed + +`func (o *RealmRepresentation) GetDuplicateEmailsAllowed() bool` + +GetDuplicateEmailsAllowed returns the DuplicateEmailsAllowed field if non-nil, zero value otherwise. + +### GetDuplicateEmailsAllowedOk + +`func (o *RealmRepresentation) GetDuplicateEmailsAllowedOk() (*bool, bool)` + +GetDuplicateEmailsAllowedOk returns a tuple with the DuplicateEmailsAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicateEmailsAllowed + +`func (o *RealmRepresentation) SetDuplicateEmailsAllowed(v bool)` + +SetDuplicateEmailsAllowed sets DuplicateEmailsAllowed field to given value. + +### HasDuplicateEmailsAllowed + +`func (o *RealmRepresentation) HasDuplicateEmailsAllowed() bool` + +HasDuplicateEmailsAllowed returns a boolean if a field has been set. + +### GetResetPasswordAllowed + +`func (o *RealmRepresentation) GetResetPasswordAllowed() bool` + +GetResetPasswordAllowed returns the ResetPasswordAllowed field if non-nil, zero value otherwise. + +### GetResetPasswordAllowedOk + +`func (o *RealmRepresentation) GetResetPasswordAllowedOk() (*bool, bool)` + +GetResetPasswordAllowedOk returns a tuple with the ResetPasswordAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetPasswordAllowed + +`func (o *RealmRepresentation) SetResetPasswordAllowed(v bool)` + +SetResetPasswordAllowed sets ResetPasswordAllowed field to given value. + +### HasResetPasswordAllowed + +`func (o *RealmRepresentation) HasResetPasswordAllowed() bool` + +HasResetPasswordAllowed returns a boolean if a field has been set. + +### GetEditUsernameAllowed + +`func (o *RealmRepresentation) GetEditUsernameAllowed() bool` + +GetEditUsernameAllowed returns the EditUsernameAllowed field if non-nil, zero value otherwise. + +### GetEditUsernameAllowedOk + +`func (o *RealmRepresentation) GetEditUsernameAllowedOk() (*bool, bool)` + +GetEditUsernameAllowedOk returns a tuple with the EditUsernameAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEditUsernameAllowed + +`func (o *RealmRepresentation) SetEditUsernameAllowed(v bool)` + +SetEditUsernameAllowed sets EditUsernameAllowed field to given value. + +### HasEditUsernameAllowed + +`func (o *RealmRepresentation) HasEditUsernameAllowed() bool` + +HasEditUsernameAllowed returns a boolean if a field has been set. + +### GetUserCacheEnabled + +`func (o *RealmRepresentation) GetUserCacheEnabled() bool` + +GetUserCacheEnabled returns the UserCacheEnabled field if non-nil, zero value otherwise. + +### GetUserCacheEnabledOk + +`func (o *RealmRepresentation) GetUserCacheEnabledOk() (*bool, bool)` + +GetUserCacheEnabledOk returns a tuple with the UserCacheEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserCacheEnabled + +`func (o *RealmRepresentation) SetUserCacheEnabled(v bool)` + +SetUserCacheEnabled sets UserCacheEnabled field to given value. + +### HasUserCacheEnabled + +`func (o *RealmRepresentation) HasUserCacheEnabled() bool` + +HasUserCacheEnabled returns a boolean if a field has been set. + +### GetRealmCacheEnabled + +`func (o *RealmRepresentation) GetRealmCacheEnabled() bool` + +GetRealmCacheEnabled returns the RealmCacheEnabled field if non-nil, zero value otherwise. + +### GetRealmCacheEnabledOk + +`func (o *RealmRepresentation) GetRealmCacheEnabledOk() (*bool, bool)` + +GetRealmCacheEnabledOk returns a tuple with the RealmCacheEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmCacheEnabled + +`func (o *RealmRepresentation) SetRealmCacheEnabled(v bool)` + +SetRealmCacheEnabled sets RealmCacheEnabled field to given value. + +### HasRealmCacheEnabled + +`func (o *RealmRepresentation) HasRealmCacheEnabled() bool` + +HasRealmCacheEnabled returns a boolean if a field has been set. + +### GetBruteForceProtected + +`func (o *RealmRepresentation) GetBruteForceProtected() bool` + +GetBruteForceProtected returns the BruteForceProtected field if non-nil, zero value otherwise. + +### GetBruteForceProtectedOk + +`func (o *RealmRepresentation) GetBruteForceProtectedOk() (*bool, bool)` + +GetBruteForceProtectedOk returns a tuple with the BruteForceProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBruteForceProtected + +`func (o *RealmRepresentation) SetBruteForceProtected(v bool)` + +SetBruteForceProtected sets BruteForceProtected field to given value. + +### HasBruteForceProtected + +`func (o *RealmRepresentation) HasBruteForceProtected() bool` + +HasBruteForceProtected returns a boolean if a field has been set. + +### GetPermanentLockout + +`func (o *RealmRepresentation) GetPermanentLockout() bool` + +GetPermanentLockout returns the PermanentLockout field if non-nil, zero value otherwise. + +### GetPermanentLockoutOk + +`func (o *RealmRepresentation) GetPermanentLockoutOk() (*bool, bool)` + +GetPermanentLockoutOk returns a tuple with the PermanentLockout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermanentLockout + +`func (o *RealmRepresentation) SetPermanentLockout(v bool)` + +SetPermanentLockout sets PermanentLockout field to given value. + +### HasPermanentLockout + +`func (o *RealmRepresentation) HasPermanentLockout() bool` + +HasPermanentLockout returns a boolean if a field has been set. + +### GetMaxTemporaryLockouts + +`func (o *RealmRepresentation) GetMaxTemporaryLockouts() int32` + +GetMaxTemporaryLockouts returns the MaxTemporaryLockouts field if non-nil, zero value otherwise. + +### GetMaxTemporaryLockoutsOk + +`func (o *RealmRepresentation) GetMaxTemporaryLockoutsOk() (*int32, bool)` + +GetMaxTemporaryLockoutsOk returns a tuple with the MaxTemporaryLockouts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTemporaryLockouts + +`func (o *RealmRepresentation) SetMaxTemporaryLockouts(v int32)` + +SetMaxTemporaryLockouts sets MaxTemporaryLockouts field to given value. + +### HasMaxTemporaryLockouts + +`func (o *RealmRepresentation) HasMaxTemporaryLockouts() bool` + +HasMaxTemporaryLockouts returns a boolean if a field has been set. + +### GetBruteForceStrategy + +`func (o *RealmRepresentation) GetBruteForceStrategy() BruteForceStrategy` + +GetBruteForceStrategy returns the BruteForceStrategy field if non-nil, zero value otherwise. + +### GetBruteForceStrategyOk + +`func (o *RealmRepresentation) GetBruteForceStrategyOk() (*BruteForceStrategy, bool)` + +GetBruteForceStrategyOk returns a tuple with the BruteForceStrategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBruteForceStrategy + +`func (o *RealmRepresentation) SetBruteForceStrategy(v BruteForceStrategy)` + +SetBruteForceStrategy sets BruteForceStrategy field to given value. + +### HasBruteForceStrategy + +`func (o *RealmRepresentation) HasBruteForceStrategy() bool` + +HasBruteForceStrategy returns a boolean if a field has been set. + +### GetMaxFailureWaitSeconds + +`func (o *RealmRepresentation) GetMaxFailureWaitSeconds() int32` + +GetMaxFailureWaitSeconds returns the MaxFailureWaitSeconds field if non-nil, zero value otherwise. + +### GetMaxFailureWaitSecondsOk + +`func (o *RealmRepresentation) GetMaxFailureWaitSecondsOk() (*int32, bool)` + +GetMaxFailureWaitSecondsOk returns a tuple with the MaxFailureWaitSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxFailureWaitSeconds + +`func (o *RealmRepresentation) SetMaxFailureWaitSeconds(v int32)` + +SetMaxFailureWaitSeconds sets MaxFailureWaitSeconds field to given value. + +### HasMaxFailureWaitSeconds + +`func (o *RealmRepresentation) HasMaxFailureWaitSeconds() bool` + +HasMaxFailureWaitSeconds returns a boolean if a field has been set. + +### GetMinimumQuickLoginWaitSeconds + +`func (o *RealmRepresentation) GetMinimumQuickLoginWaitSeconds() int32` + +GetMinimumQuickLoginWaitSeconds returns the MinimumQuickLoginWaitSeconds field if non-nil, zero value otherwise. + +### GetMinimumQuickLoginWaitSecondsOk + +`func (o *RealmRepresentation) GetMinimumQuickLoginWaitSecondsOk() (*int32, bool)` + +GetMinimumQuickLoginWaitSecondsOk returns a tuple with the MinimumQuickLoginWaitSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimumQuickLoginWaitSeconds + +`func (o *RealmRepresentation) SetMinimumQuickLoginWaitSeconds(v int32)` + +SetMinimumQuickLoginWaitSeconds sets MinimumQuickLoginWaitSeconds field to given value. + +### HasMinimumQuickLoginWaitSeconds + +`func (o *RealmRepresentation) HasMinimumQuickLoginWaitSeconds() bool` + +HasMinimumQuickLoginWaitSeconds returns a boolean if a field has been set. + +### GetWaitIncrementSeconds + +`func (o *RealmRepresentation) GetWaitIncrementSeconds() int32` + +GetWaitIncrementSeconds returns the WaitIncrementSeconds field if non-nil, zero value otherwise. + +### GetWaitIncrementSecondsOk + +`func (o *RealmRepresentation) GetWaitIncrementSecondsOk() (*int32, bool)` + +GetWaitIncrementSecondsOk returns a tuple with the WaitIncrementSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWaitIncrementSeconds + +`func (o *RealmRepresentation) SetWaitIncrementSeconds(v int32)` + +SetWaitIncrementSeconds sets WaitIncrementSeconds field to given value. + +### HasWaitIncrementSeconds + +`func (o *RealmRepresentation) HasWaitIncrementSeconds() bool` + +HasWaitIncrementSeconds returns a boolean if a field has been set. + +### GetQuickLoginCheckMilliSeconds + +`func (o *RealmRepresentation) GetQuickLoginCheckMilliSeconds() int64` + +GetQuickLoginCheckMilliSeconds returns the QuickLoginCheckMilliSeconds field if non-nil, zero value otherwise. + +### GetQuickLoginCheckMilliSecondsOk + +`func (o *RealmRepresentation) GetQuickLoginCheckMilliSecondsOk() (*int64, bool)` + +GetQuickLoginCheckMilliSecondsOk returns a tuple with the QuickLoginCheckMilliSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuickLoginCheckMilliSeconds + +`func (o *RealmRepresentation) SetQuickLoginCheckMilliSeconds(v int64)` + +SetQuickLoginCheckMilliSeconds sets QuickLoginCheckMilliSeconds field to given value. + +### HasQuickLoginCheckMilliSeconds + +`func (o *RealmRepresentation) HasQuickLoginCheckMilliSeconds() bool` + +HasQuickLoginCheckMilliSeconds returns a boolean if a field has been set. + +### GetMaxDeltaTimeSeconds + +`func (o *RealmRepresentation) GetMaxDeltaTimeSeconds() int32` + +GetMaxDeltaTimeSeconds returns the MaxDeltaTimeSeconds field if non-nil, zero value otherwise. + +### GetMaxDeltaTimeSecondsOk + +`func (o *RealmRepresentation) GetMaxDeltaTimeSecondsOk() (*int32, bool)` + +GetMaxDeltaTimeSecondsOk returns a tuple with the MaxDeltaTimeSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxDeltaTimeSeconds + +`func (o *RealmRepresentation) SetMaxDeltaTimeSeconds(v int32)` + +SetMaxDeltaTimeSeconds sets MaxDeltaTimeSeconds field to given value. + +### HasMaxDeltaTimeSeconds + +`func (o *RealmRepresentation) HasMaxDeltaTimeSeconds() bool` + +HasMaxDeltaTimeSeconds returns a boolean if a field has been set. + +### GetFailureFactor + +`func (o *RealmRepresentation) GetFailureFactor() int32` + +GetFailureFactor returns the FailureFactor field if non-nil, zero value otherwise. + +### GetFailureFactorOk + +`func (o *RealmRepresentation) GetFailureFactorOk() (*int32, bool)` + +GetFailureFactorOk returns a tuple with the FailureFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailureFactor + +`func (o *RealmRepresentation) SetFailureFactor(v int32)` + +SetFailureFactor sets FailureFactor field to given value. + +### HasFailureFactor + +`func (o *RealmRepresentation) HasFailureFactor() bool` + +HasFailureFactor returns a boolean if a field has been set. + +### GetPrivateKey + +`func (o *RealmRepresentation) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *RealmRepresentation) 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 *RealmRepresentation) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *RealmRepresentation) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *RealmRepresentation) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *RealmRepresentation) 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 *RealmRepresentation) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *RealmRepresentation) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetCertificate + +`func (o *RealmRepresentation) GetCertificate() string` + +GetCertificate returns the Certificate field if non-nil, zero value otherwise. + +### GetCertificateOk + +`func (o *RealmRepresentation) 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 *RealmRepresentation) SetCertificate(v string)` + +SetCertificate sets Certificate field to given value. + +### HasCertificate + +`func (o *RealmRepresentation) HasCertificate() bool` + +HasCertificate returns a boolean if a field has been set. + +### GetCodeSecret + +`func (o *RealmRepresentation) GetCodeSecret() string` + +GetCodeSecret returns the CodeSecret field if non-nil, zero value otherwise. + +### GetCodeSecretOk + +`func (o *RealmRepresentation) GetCodeSecretOk() (*string, bool)` + +GetCodeSecretOk returns a tuple with the CodeSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCodeSecret + +`func (o *RealmRepresentation) SetCodeSecret(v string)` + +SetCodeSecret sets CodeSecret field to given value. + +### HasCodeSecret + +`func (o *RealmRepresentation) HasCodeSecret() bool` + +HasCodeSecret returns a boolean if a field has been set. + +### GetRoles + +`func (o *RealmRepresentation) GetRoles() RolesRepresentation` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *RealmRepresentation) GetRolesOk() (*RolesRepresentation, 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 *RealmRepresentation) SetRoles(v RolesRepresentation)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *RealmRepresentation) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### GetGroups + +`func (o *RealmRepresentation) GetGroups() []GroupRepresentation` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *RealmRepresentation) GetGroupsOk() (*[]GroupRepresentation, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *RealmRepresentation) SetGroups(v []GroupRepresentation)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *RealmRepresentation) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetDefaultRoles + +`func (o *RealmRepresentation) GetDefaultRoles() []string` + +GetDefaultRoles returns the DefaultRoles field if non-nil, zero value otherwise. + +### GetDefaultRolesOk + +`func (o *RealmRepresentation) GetDefaultRolesOk() (*[]string, bool)` + +GetDefaultRolesOk returns a tuple with the DefaultRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultRoles + +`func (o *RealmRepresentation) SetDefaultRoles(v []string)` + +SetDefaultRoles sets DefaultRoles field to given value. + +### HasDefaultRoles + +`func (o *RealmRepresentation) HasDefaultRoles() bool` + +HasDefaultRoles returns a boolean if a field has been set. + +### GetDefaultRole + +`func (o *RealmRepresentation) GetDefaultRole() RoleRepresentation` + +GetDefaultRole returns the DefaultRole field if non-nil, zero value otherwise. + +### GetDefaultRoleOk + +`func (o *RealmRepresentation) GetDefaultRoleOk() (*RoleRepresentation, bool)` + +GetDefaultRoleOk returns a tuple with the DefaultRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultRole + +`func (o *RealmRepresentation) SetDefaultRole(v RoleRepresentation)` + +SetDefaultRole sets DefaultRole field to given value. + +### HasDefaultRole + +`func (o *RealmRepresentation) HasDefaultRole() bool` + +HasDefaultRole returns a boolean if a field has been set. + +### GetDefaultGroups + +`func (o *RealmRepresentation) GetDefaultGroups() []string` + +GetDefaultGroups returns the DefaultGroups field if non-nil, zero value otherwise. + +### GetDefaultGroupsOk + +`func (o *RealmRepresentation) GetDefaultGroupsOk() (*[]string, bool)` + +GetDefaultGroupsOk returns a tuple with the DefaultGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultGroups + +`func (o *RealmRepresentation) SetDefaultGroups(v []string)` + +SetDefaultGroups sets DefaultGroups field to given value. + +### HasDefaultGroups + +`func (o *RealmRepresentation) HasDefaultGroups() bool` + +HasDefaultGroups returns a boolean if a field has been set. + +### GetRequiredCredentials + +`func (o *RealmRepresentation) GetRequiredCredentials() []string` + +GetRequiredCredentials returns the RequiredCredentials field if non-nil, zero value otherwise. + +### GetRequiredCredentialsOk + +`func (o *RealmRepresentation) GetRequiredCredentialsOk() (*[]string, bool)` + +GetRequiredCredentialsOk returns a tuple with the RequiredCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredCredentials + +`func (o *RealmRepresentation) SetRequiredCredentials(v []string)` + +SetRequiredCredentials sets RequiredCredentials field to given value. + +### HasRequiredCredentials + +`func (o *RealmRepresentation) HasRequiredCredentials() bool` + +HasRequiredCredentials returns a boolean if a field has been set. + +### GetPasswordPolicy + +`func (o *RealmRepresentation) GetPasswordPolicy() string` + +GetPasswordPolicy returns the PasswordPolicy field if non-nil, zero value otherwise. + +### GetPasswordPolicyOk + +`func (o *RealmRepresentation) GetPasswordPolicyOk() (*string, bool)` + +GetPasswordPolicyOk returns a tuple with the PasswordPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordPolicy + +`func (o *RealmRepresentation) SetPasswordPolicy(v string)` + +SetPasswordPolicy sets PasswordPolicy field to given value. + +### HasPasswordPolicy + +`func (o *RealmRepresentation) HasPasswordPolicy() bool` + +HasPasswordPolicy returns a boolean if a field has been set. + +### GetOtpPolicyType + +`func (o *RealmRepresentation) GetOtpPolicyType() string` + +GetOtpPolicyType returns the OtpPolicyType field if non-nil, zero value otherwise. + +### GetOtpPolicyTypeOk + +`func (o *RealmRepresentation) GetOtpPolicyTypeOk() (*string, bool)` + +GetOtpPolicyTypeOk returns a tuple with the OtpPolicyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpPolicyType + +`func (o *RealmRepresentation) SetOtpPolicyType(v string)` + +SetOtpPolicyType sets OtpPolicyType field to given value. + +### HasOtpPolicyType + +`func (o *RealmRepresentation) HasOtpPolicyType() bool` + +HasOtpPolicyType returns a boolean if a field has been set. + +### GetOtpPolicyAlgorithm + +`func (o *RealmRepresentation) GetOtpPolicyAlgorithm() string` + +GetOtpPolicyAlgorithm returns the OtpPolicyAlgorithm field if non-nil, zero value otherwise. + +### GetOtpPolicyAlgorithmOk + +`func (o *RealmRepresentation) GetOtpPolicyAlgorithmOk() (*string, bool)` + +GetOtpPolicyAlgorithmOk returns a tuple with the OtpPolicyAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpPolicyAlgorithm + +`func (o *RealmRepresentation) SetOtpPolicyAlgorithm(v string)` + +SetOtpPolicyAlgorithm sets OtpPolicyAlgorithm field to given value. + +### HasOtpPolicyAlgorithm + +`func (o *RealmRepresentation) HasOtpPolicyAlgorithm() bool` + +HasOtpPolicyAlgorithm returns a boolean if a field has been set. + +### GetOtpPolicyInitialCounter + +`func (o *RealmRepresentation) GetOtpPolicyInitialCounter() int32` + +GetOtpPolicyInitialCounter returns the OtpPolicyInitialCounter field if non-nil, zero value otherwise. + +### GetOtpPolicyInitialCounterOk + +`func (o *RealmRepresentation) GetOtpPolicyInitialCounterOk() (*int32, bool)` + +GetOtpPolicyInitialCounterOk returns a tuple with the OtpPolicyInitialCounter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpPolicyInitialCounter + +`func (o *RealmRepresentation) SetOtpPolicyInitialCounter(v int32)` + +SetOtpPolicyInitialCounter sets OtpPolicyInitialCounter field to given value. + +### HasOtpPolicyInitialCounter + +`func (o *RealmRepresentation) HasOtpPolicyInitialCounter() bool` + +HasOtpPolicyInitialCounter returns a boolean if a field has been set. + +### GetOtpPolicyDigits + +`func (o *RealmRepresentation) GetOtpPolicyDigits() int32` + +GetOtpPolicyDigits returns the OtpPolicyDigits field if non-nil, zero value otherwise. + +### GetOtpPolicyDigitsOk + +`func (o *RealmRepresentation) GetOtpPolicyDigitsOk() (*int32, bool)` + +GetOtpPolicyDigitsOk returns a tuple with the OtpPolicyDigits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpPolicyDigits + +`func (o *RealmRepresentation) SetOtpPolicyDigits(v int32)` + +SetOtpPolicyDigits sets OtpPolicyDigits field to given value. + +### HasOtpPolicyDigits + +`func (o *RealmRepresentation) HasOtpPolicyDigits() bool` + +HasOtpPolicyDigits returns a boolean if a field has been set. + +### GetOtpPolicyLookAheadWindow + +`func (o *RealmRepresentation) GetOtpPolicyLookAheadWindow() int32` + +GetOtpPolicyLookAheadWindow returns the OtpPolicyLookAheadWindow field if non-nil, zero value otherwise. + +### GetOtpPolicyLookAheadWindowOk + +`func (o *RealmRepresentation) GetOtpPolicyLookAheadWindowOk() (*int32, bool)` + +GetOtpPolicyLookAheadWindowOk returns a tuple with the OtpPolicyLookAheadWindow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpPolicyLookAheadWindow + +`func (o *RealmRepresentation) SetOtpPolicyLookAheadWindow(v int32)` + +SetOtpPolicyLookAheadWindow sets OtpPolicyLookAheadWindow field to given value. + +### HasOtpPolicyLookAheadWindow + +`func (o *RealmRepresentation) HasOtpPolicyLookAheadWindow() bool` + +HasOtpPolicyLookAheadWindow returns a boolean if a field has been set. + +### GetOtpPolicyPeriod + +`func (o *RealmRepresentation) GetOtpPolicyPeriod() int32` + +GetOtpPolicyPeriod returns the OtpPolicyPeriod field if non-nil, zero value otherwise. + +### GetOtpPolicyPeriodOk + +`func (o *RealmRepresentation) GetOtpPolicyPeriodOk() (*int32, bool)` + +GetOtpPolicyPeriodOk returns a tuple with the OtpPolicyPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpPolicyPeriod + +`func (o *RealmRepresentation) SetOtpPolicyPeriod(v int32)` + +SetOtpPolicyPeriod sets OtpPolicyPeriod field to given value. + +### HasOtpPolicyPeriod + +`func (o *RealmRepresentation) HasOtpPolicyPeriod() bool` + +HasOtpPolicyPeriod returns a boolean if a field has been set. + +### GetOtpPolicyCodeReusable + +`func (o *RealmRepresentation) GetOtpPolicyCodeReusable() bool` + +GetOtpPolicyCodeReusable returns the OtpPolicyCodeReusable field if non-nil, zero value otherwise. + +### GetOtpPolicyCodeReusableOk + +`func (o *RealmRepresentation) GetOtpPolicyCodeReusableOk() (*bool, bool)` + +GetOtpPolicyCodeReusableOk returns a tuple with the OtpPolicyCodeReusable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpPolicyCodeReusable + +`func (o *RealmRepresentation) SetOtpPolicyCodeReusable(v bool)` + +SetOtpPolicyCodeReusable sets OtpPolicyCodeReusable field to given value. + +### HasOtpPolicyCodeReusable + +`func (o *RealmRepresentation) HasOtpPolicyCodeReusable() bool` + +HasOtpPolicyCodeReusable returns a boolean if a field has been set. + +### GetOtpSupportedApplications + +`func (o *RealmRepresentation) GetOtpSupportedApplications() []string` + +GetOtpSupportedApplications returns the OtpSupportedApplications field if non-nil, zero value otherwise. + +### GetOtpSupportedApplicationsOk + +`func (o *RealmRepresentation) GetOtpSupportedApplicationsOk() (*[]string, bool)` + +GetOtpSupportedApplicationsOk returns a tuple with the OtpSupportedApplications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtpSupportedApplications + +`func (o *RealmRepresentation) SetOtpSupportedApplications(v []string)` + +SetOtpSupportedApplications sets OtpSupportedApplications field to given value. + +### HasOtpSupportedApplications + +`func (o *RealmRepresentation) HasOtpSupportedApplications() bool` + +HasOtpSupportedApplications returns a boolean if a field has been set. + +### GetLocalizationTexts + +`func (o *RealmRepresentation) GetLocalizationTexts() map[string]map[string]string` + +GetLocalizationTexts returns the LocalizationTexts field if non-nil, zero value otherwise. + +### GetLocalizationTextsOk + +`func (o *RealmRepresentation) GetLocalizationTextsOk() (*map[string]map[string]string, bool)` + +GetLocalizationTextsOk returns a tuple with the LocalizationTexts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizationTexts + +`func (o *RealmRepresentation) SetLocalizationTexts(v map[string]map[string]string)` + +SetLocalizationTexts sets LocalizationTexts field to given value. + +### HasLocalizationTexts + +`func (o *RealmRepresentation) HasLocalizationTexts() bool` + +HasLocalizationTexts returns a boolean if a field has been set. + +### GetWebAuthnPolicyRpEntityName + +`func (o *RealmRepresentation) GetWebAuthnPolicyRpEntityName() string` + +GetWebAuthnPolicyRpEntityName returns the WebAuthnPolicyRpEntityName field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyRpEntityNameOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyRpEntityNameOk() (*string, bool)` + +GetWebAuthnPolicyRpEntityNameOk returns a tuple with the WebAuthnPolicyRpEntityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyRpEntityName + +`func (o *RealmRepresentation) SetWebAuthnPolicyRpEntityName(v string)` + +SetWebAuthnPolicyRpEntityName sets WebAuthnPolicyRpEntityName field to given value. + +### HasWebAuthnPolicyRpEntityName + +`func (o *RealmRepresentation) HasWebAuthnPolicyRpEntityName() bool` + +HasWebAuthnPolicyRpEntityName returns a boolean if a field has been set. + +### GetWebAuthnPolicySignatureAlgorithms + +`func (o *RealmRepresentation) GetWebAuthnPolicySignatureAlgorithms() []string` + +GetWebAuthnPolicySignatureAlgorithms returns the WebAuthnPolicySignatureAlgorithms field if non-nil, zero value otherwise. + +### GetWebAuthnPolicySignatureAlgorithmsOk + +`func (o *RealmRepresentation) GetWebAuthnPolicySignatureAlgorithmsOk() (*[]string, bool)` + +GetWebAuthnPolicySignatureAlgorithmsOk returns a tuple with the WebAuthnPolicySignatureAlgorithms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicySignatureAlgorithms + +`func (o *RealmRepresentation) SetWebAuthnPolicySignatureAlgorithms(v []string)` + +SetWebAuthnPolicySignatureAlgorithms sets WebAuthnPolicySignatureAlgorithms field to given value. + +### HasWebAuthnPolicySignatureAlgorithms + +`func (o *RealmRepresentation) HasWebAuthnPolicySignatureAlgorithms() bool` + +HasWebAuthnPolicySignatureAlgorithms returns a boolean if a field has been set. + +### GetWebAuthnPolicyRpId + +`func (o *RealmRepresentation) GetWebAuthnPolicyRpId() string` + +GetWebAuthnPolicyRpId returns the WebAuthnPolicyRpId field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyRpIdOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyRpIdOk() (*string, bool)` + +GetWebAuthnPolicyRpIdOk returns a tuple with the WebAuthnPolicyRpId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyRpId + +`func (o *RealmRepresentation) SetWebAuthnPolicyRpId(v string)` + +SetWebAuthnPolicyRpId sets WebAuthnPolicyRpId field to given value. + +### HasWebAuthnPolicyRpId + +`func (o *RealmRepresentation) HasWebAuthnPolicyRpId() bool` + +HasWebAuthnPolicyRpId returns a boolean if a field has been set. + +### GetWebAuthnPolicyAttestationConveyancePreference + +`func (o *RealmRepresentation) GetWebAuthnPolicyAttestationConveyancePreference() string` + +GetWebAuthnPolicyAttestationConveyancePreference returns the WebAuthnPolicyAttestationConveyancePreference field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyAttestationConveyancePreferenceOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyAttestationConveyancePreferenceOk() (*string, bool)` + +GetWebAuthnPolicyAttestationConveyancePreferenceOk returns a tuple with the WebAuthnPolicyAttestationConveyancePreference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyAttestationConveyancePreference + +`func (o *RealmRepresentation) SetWebAuthnPolicyAttestationConveyancePreference(v string)` + +SetWebAuthnPolicyAttestationConveyancePreference sets WebAuthnPolicyAttestationConveyancePreference field to given value. + +### HasWebAuthnPolicyAttestationConveyancePreference + +`func (o *RealmRepresentation) HasWebAuthnPolicyAttestationConveyancePreference() bool` + +HasWebAuthnPolicyAttestationConveyancePreference returns a boolean if a field has been set. + +### GetWebAuthnPolicyAuthenticatorAttachment + +`func (o *RealmRepresentation) GetWebAuthnPolicyAuthenticatorAttachment() string` + +GetWebAuthnPolicyAuthenticatorAttachment returns the WebAuthnPolicyAuthenticatorAttachment field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyAuthenticatorAttachmentOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyAuthenticatorAttachmentOk() (*string, bool)` + +GetWebAuthnPolicyAuthenticatorAttachmentOk returns a tuple with the WebAuthnPolicyAuthenticatorAttachment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyAuthenticatorAttachment + +`func (o *RealmRepresentation) SetWebAuthnPolicyAuthenticatorAttachment(v string)` + +SetWebAuthnPolicyAuthenticatorAttachment sets WebAuthnPolicyAuthenticatorAttachment field to given value. + +### HasWebAuthnPolicyAuthenticatorAttachment + +`func (o *RealmRepresentation) HasWebAuthnPolicyAuthenticatorAttachment() bool` + +HasWebAuthnPolicyAuthenticatorAttachment returns a boolean if a field has been set. + +### GetWebAuthnPolicyRequireResidentKey + +`func (o *RealmRepresentation) GetWebAuthnPolicyRequireResidentKey() string` + +GetWebAuthnPolicyRequireResidentKey returns the WebAuthnPolicyRequireResidentKey field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyRequireResidentKeyOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyRequireResidentKeyOk() (*string, bool)` + +GetWebAuthnPolicyRequireResidentKeyOk returns a tuple with the WebAuthnPolicyRequireResidentKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyRequireResidentKey + +`func (o *RealmRepresentation) SetWebAuthnPolicyRequireResidentKey(v string)` + +SetWebAuthnPolicyRequireResidentKey sets WebAuthnPolicyRequireResidentKey field to given value. + +### HasWebAuthnPolicyRequireResidentKey + +`func (o *RealmRepresentation) HasWebAuthnPolicyRequireResidentKey() bool` + +HasWebAuthnPolicyRequireResidentKey returns a boolean if a field has been set. + +### GetWebAuthnPolicyUserVerificationRequirement + +`func (o *RealmRepresentation) GetWebAuthnPolicyUserVerificationRequirement() string` + +GetWebAuthnPolicyUserVerificationRequirement returns the WebAuthnPolicyUserVerificationRequirement field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyUserVerificationRequirementOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyUserVerificationRequirementOk() (*string, bool)` + +GetWebAuthnPolicyUserVerificationRequirementOk returns a tuple with the WebAuthnPolicyUserVerificationRequirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyUserVerificationRequirement + +`func (o *RealmRepresentation) SetWebAuthnPolicyUserVerificationRequirement(v string)` + +SetWebAuthnPolicyUserVerificationRequirement sets WebAuthnPolicyUserVerificationRequirement field to given value. + +### HasWebAuthnPolicyUserVerificationRequirement + +`func (o *RealmRepresentation) HasWebAuthnPolicyUserVerificationRequirement() bool` + +HasWebAuthnPolicyUserVerificationRequirement returns a boolean if a field has been set. + +### GetWebAuthnPolicyCreateTimeout + +`func (o *RealmRepresentation) GetWebAuthnPolicyCreateTimeout() int32` + +GetWebAuthnPolicyCreateTimeout returns the WebAuthnPolicyCreateTimeout field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyCreateTimeoutOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyCreateTimeoutOk() (*int32, bool)` + +GetWebAuthnPolicyCreateTimeoutOk returns a tuple with the WebAuthnPolicyCreateTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyCreateTimeout + +`func (o *RealmRepresentation) SetWebAuthnPolicyCreateTimeout(v int32)` + +SetWebAuthnPolicyCreateTimeout sets WebAuthnPolicyCreateTimeout field to given value. + +### HasWebAuthnPolicyCreateTimeout + +`func (o *RealmRepresentation) HasWebAuthnPolicyCreateTimeout() bool` + +HasWebAuthnPolicyCreateTimeout returns a boolean if a field has been set. + +### GetWebAuthnPolicyAvoidSameAuthenticatorRegister + +`func (o *RealmRepresentation) GetWebAuthnPolicyAvoidSameAuthenticatorRegister() bool` + +GetWebAuthnPolicyAvoidSameAuthenticatorRegister returns the WebAuthnPolicyAvoidSameAuthenticatorRegister field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyAvoidSameAuthenticatorRegisterOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyAvoidSameAuthenticatorRegisterOk() (*bool, bool)` + +GetWebAuthnPolicyAvoidSameAuthenticatorRegisterOk returns a tuple with the WebAuthnPolicyAvoidSameAuthenticatorRegister field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyAvoidSameAuthenticatorRegister + +`func (o *RealmRepresentation) SetWebAuthnPolicyAvoidSameAuthenticatorRegister(v bool)` + +SetWebAuthnPolicyAvoidSameAuthenticatorRegister sets WebAuthnPolicyAvoidSameAuthenticatorRegister field to given value. + +### HasWebAuthnPolicyAvoidSameAuthenticatorRegister + +`func (o *RealmRepresentation) HasWebAuthnPolicyAvoidSameAuthenticatorRegister() bool` + +HasWebAuthnPolicyAvoidSameAuthenticatorRegister returns a boolean if a field has been set. + +### GetWebAuthnPolicyAcceptableAaguids + +`func (o *RealmRepresentation) GetWebAuthnPolicyAcceptableAaguids() []string` + +GetWebAuthnPolicyAcceptableAaguids returns the WebAuthnPolicyAcceptableAaguids field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyAcceptableAaguidsOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyAcceptableAaguidsOk() (*[]string, bool)` + +GetWebAuthnPolicyAcceptableAaguidsOk returns a tuple with the WebAuthnPolicyAcceptableAaguids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyAcceptableAaguids + +`func (o *RealmRepresentation) SetWebAuthnPolicyAcceptableAaguids(v []string)` + +SetWebAuthnPolicyAcceptableAaguids sets WebAuthnPolicyAcceptableAaguids field to given value. + +### HasWebAuthnPolicyAcceptableAaguids + +`func (o *RealmRepresentation) HasWebAuthnPolicyAcceptableAaguids() bool` + +HasWebAuthnPolicyAcceptableAaguids returns a boolean if a field has been set. + +### GetWebAuthnPolicyExtraOrigins + +`func (o *RealmRepresentation) GetWebAuthnPolicyExtraOrigins() []string` + +GetWebAuthnPolicyExtraOrigins returns the WebAuthnPolicyExtraOrigins field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyExtraOriginsOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyExtraOriginsOk() (*[]string, bool)` + +GetWebAuthnPolicyExtraOriginsOk returns a tuple with the WebAuthnPolicyExtraOrigins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyExtraOrigins + +`func (o *RealmRepresentation) SetWebAuthnPolicyExtraOrigins(v []string)` + +SetWebAuthnPolicyExtraOrigins sets WebAuthnPolicyExtraOrigins field to given value. + +### HasWebAuthnPolicyExtraOrigins + +`func (o *RealmRepresentation) HasWebAuthnPolicyExtraOrigins() bool` + +HasWebAuthnPolicyExtraOrigins returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessRpEntityName + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpEntityName() string` + +GetWebAuthnPolicyPasswordlessRpEntityName returns the WebAuthnPolicyPasswordlessRpEntityName field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessRpEntityNameOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpEntityNameOk() (*string, bool)` + +GetWebAuthnPolicyPasswordlessRpEntityNameOk returns a tuple with the WebAuthnPolicyPasswordlessRpEntityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessRpEntityName + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessRpEntityName(v string)` + +SetWebAuthnPolicyPasswordlessRpEntityName sets WebAuthnPolicyPasswordlessRpEntityName field to given value. + +### HasWebAuthnPolicyPasswordlessRpEntityName + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessRpEntityName() bool` + +HasWebAuthnPolicyPasswordlessRpEntityName returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessSignatureAlgorithms + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessSignatureAlgorithms() []string` + +GetWebAuthnPolicyPasswordlessSignatureAlgorithms returns the WebAuthnPolicyPasswordlessSignatureAlgorithms field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessSignatureAlgorithmsOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessSignatureAlgorithmsOk() (*[]string, bool)` + +GetWebAuthnPolicyPasswordlessSignatureAlgorithmsOk returns a tuple with the WebAuthnPolicyPasswordlessSignatureAlgorithms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessSignatureAlgorithms + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessSignatureAlgorithms(v []string)` + +SetWebAuthnPolicyPasswordlessSignatureAlgorithms sets WebAuthnPolicyPasswordlessSignatureAlgorithms field to given value. + +### HasWebAuthnPolicyPasswordlessSignatureAlgorithms + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessSignatureAlgorithms() bool` + +HasWebAuthnPolicyPasswordlessSignatureAlgorithms returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessRpId + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpId() string` + +GetWebAuthnPolicyPasswordlessRpId returns the WebAuthnPolicyPasswordlessRpId field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessRpIdOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpIdOk() (*string, bool)` + +GetWebAuthnPolicyPasswordlessRpIdOk returns a tuple with the WebAuthnPolicyPasswordlessRpId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessRpId + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessRpId(v string)` + +SetWebAuthnPolicyPasswordlessRpId sets WebAuthnPolicyPasswordlessRpId field to given value. + +### HasWebAuthnPolicyPasswordlessRpId + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessRpId() bool` + +HasWebAuthnPolicyPasswordlessRpId returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessAttestationConveyancePreference + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAttestationConveyancePreference() string` + +GetWebAuthnPolicyPasswordlessAttestationConveyancePreference returns the WebAuthnPolicyPasswordlessAttestationConveyancePreference field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessAttestationConveyancePreferenceOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAttestationConveyancePreferenceOk() (*string, bool)` + +GetWebAuthnPolicyPasswordlessAttestationConveyancePreferenceOk returns a tuple with the WebAuthnPolicyPasswordlessAttestationConveyancePreference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessAttestationConveyancePreference + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAttestationConveyancePreference(v string)` + +SetWebAuthnPolicyPasswordlessAttestationConveyancePreference sets WebAuthnPolicyPasswordlessAttestationConveyancePreference field to given value. + +### HasWebAuthnPolicyPasswordlessAttestationConveyancePreference + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAttestationConveyancePreference() bool` + +HasWebAuthnPolicyPasswordlessAttestationConveyancePreference returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessAuthenticatorAttachment + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAuthenticatorAttachment() string` + +GetWebAuthnPolicyPasswordlessAuthenticatorAttachment returns the WebAuthnPolicyPasswordlessAuthenticatorAttachment field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessAuthenticatorAttachmentOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAuthenticatorAttachmentOk() (*string, bool)` + +GetWebAuthnPolicyPasswordlessAuthenticatorAttachmentOk returns a tuple with the WebAuthnPolicyPasswordlessAuthenticatorAttachment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessAuthenticatorAttachment + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAuthenticatorAttachment(v string)` + +SetWebAuthnPolicyPasswordlessAuthenticatorAttachment sets WebAuthnPolicyPasswordlessAuthenticatorAttachment field to given value. + +### HasWebAuthnPolicyPasswordlessAuthenticatorAttachment + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAuthenticatorAttachment() bool` + +HasWebAuthnPolicyPasswordlessAuthenticatorAttachment returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessRequireResidentKey + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRequireResidentKey() string` + +GetWebAuthnPolicyPasswordlessRequireResidentKey returns the WebAuthnPolicyPasswordlessRequireResidentKey field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessRequireResidentKeyOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRequireResidentKeyOk() (*string, bool)` + +GetWebAuthnPolicyPasswordlessRequireResidentKeyOk returns a tuple with the WebAuthnPolicyPasswordlessRequireResidentKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessRequireResidentKey + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessRequireResidentKey(v string)` + +SetWebAuthnPolicyPasswordlessRequireResidentKey sets WebAuthnPolicyPasswordlessRequireResidentKey field to given value. + +### HasWebAuthnPolicyPasswordlessRequireResidentKey + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessRequireResidentKey() bool` + +HasWebAuthnPolicyPasswordlessRequireResidentKey returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessUserVerificationRequirement + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessUserVerificationRequirement() string` + +GetWebAuthnPolicyPasswordlessUserVerificationRequirement returns the WebAuthnPolicyPasswordlessUserVerificationRequirement field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessUserVerificationRequirementOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessUserVerificationRequirementOk() (*string, bool)` + +GetWebAuthnPolicyPasswordlessUserVerificationRequirementOk returns a tuple with the WebAuthnPolicyPasswordlessUserVerificationRequirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessUserVerificationRequirement + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessUserVerificationRequirement(v string)` + +SetWebAuthnPolicyPasswordlessUserVerificationRequirement sets WebAuthnPolicyPasswordlessUserVerificationRequirement field to given value. + +### HasWebAuthnPolicyPasswordlessUserVerificationRequirement + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessUserVerificationRequirement() bool` + +HasWebAuthnPolicyPasswordlessUserVerificationRequirement returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessCreateTimeout + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessCreateTimeout() int32` + +GetWebAuthnPolicyPasswordlessCreateTimeout returns the WebAuthnPolicyPasswordlessCreateTimeout field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessCreateTimeoutOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessCreateTimeoutOk() (*int32, bool)` + +GetWebAuthnPolicyPasswordlessCreateTimeoutOk returns a tuple with the WebAuthnPolicyPasswordlessCreateTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessCreateTimeout + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessCreateTimeout(v int32)` + +SetWebAuthnPolicyPasswordlessCreateTimeout sets WebAuthnPolicyPasswordlessCreateTimeout field to given value. + +### HasWebAuthnPolicyPasswordlessCreateTimeout + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessCreateTimeout() bool` + +HasWebAuthnPolicyPasswordlessCreateTimeout returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister() bool` + +GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister returns the WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegisterOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegisterOk() (*bool, bool)` + +GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegisterOk returns a tuple with the WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister(v bool)` + +SetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister sets WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister field to given value. + +### HasWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister() bool` + +HasWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessAcceptableAaguids + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAcceptableAaguids() []string` + +GetWebAuthnPolicyPasswordlessAcceptableAaguids returns the WebAuthnPolicyPasswordlessAcceptableAaguids field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessAcceptableAaguidsOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAcceptableAaguidsOk() (*[]string, bool)` + +GetWebAuthnPolicyPasswordlessAcceptableAaguidsOk returns a tuple with the WebAuthnPolicyPasswordlessAcceptableAaguids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessAcceptableAaguids + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAcceptableAaguids(v []string)` + +SetWebAuthnPolicyPasswordlessAcceptableAaguids sets WebAuthnPolicyPasswordlessAcceptableAaguids field to given value. + +### HasWebAuthnPolicyPasswordlessAcceptableAaguids + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAcceptableAaguids() bool` + +HasWebAuthnPolicyPasswordlessAcceptableAaguids returns a boolean if a field has been set. + +### GetWebAuthnPolicyPasswordlessExtraOrigins + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessExtraOrigins() []string` + +GetWebAuthnPolicyPasswordlessExtraOrigins returns the WebAuthnPolicyPasswordlessExtraOrigins field if non-nil, zero value otherwise. + +### GetWebAuthnPolicyPasswordlessExtraOriginsOk + +`func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessExtraOriginsOk() (*[]string, bool)` + +GetWebAuthnPolicyPasswordlessExtraOriginsOk returns a tuple with the WebAuthnPolicyPasswordlessExtraOrigins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebAuthnPolicyPasswordlessExtraOrigins + +`func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessExtraOrigins(v []string)` + +SetWebAuthnPolicyPasswordlessExtraOrigins sets WebAuthnPolicyPasswordlessExtraOrigins field to given value. + +### HasWebAuthnPolicyPasswordlessExtraOrigins + +`func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessExtraOrigins() bool` + +HasWebAuthnPolicyPasswordlessExtraOrigins returns a boolean if a field has been set. + +### GetClientProfiles + +`func (o *RealmRepresentation) GetClientProfiles() ClientProfilesRepresentation` + +GetClientProfiles returns the ClientProfiles field if non-nil, zero value otherwise. + +### GetClientProfilesOk + +`func (o *RealmRepresentation) GetClientProfilesOk() (*ClientProfilesRepresentation, bool)` + +GetClientProfilesOk returns a tuple with the ClientProfiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientProfiles + +`func (o *RealmRepresentation) SetClientProfiles(v ClientProfilesRepresentation)` + +SetClientProfiles sets ClientProfiles field to given value. + +### HasClientProfiles + +`func (o *RealmRepresentation) HasClientProfiles() bool` + +HasClientProfiles returns a boolean if a field has been set. + +### GetClientPolicies + +`func (o *RealmRepresentation) GetClientPolicies() ClientPoliciesRepresentation` + +GetClientPolicies returns the ClientPolicies field if non-nil, zero value otherwise. + +### GetClientPoliciesOk + +`func (o *RealmRepresentation) GetClientPoliciesOk() (*ClientPoliciesRepresentation, bool)` + +GetClientPoliciesOk returns a tuple with the ClientPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientPolicies + +`func (o *RealmRepresentation) SetClientPolicies(v ClientPoliciesRepresentation)` + +SetClientPolicies sets ClientPolicies field to given value. + +### HasClientPolicies + +`func (o *RealmRepresentation) HasClientPolicies() bool` + +HasClientPolicies returns a boolean if a field has been set. + +### GetUsers + +`func (o *RealmRepresentation) GetUsers() []UserRepresentation` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *RealmRepresentation) GetUsersOk() (*[]UserRepresentation, 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 *RealmRepresentation) SetUsers(v []UserRepresentation)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *RealmRepresentation) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + +### GetFederatedUsers + +`func (o *RealmRepresentation) GetFederatedUsers() []UserRepresentation` + +GetFederatedUsers returns the FederatedUsers field if non-nil, zero value otherwise. + +### GetFederatedUsersOk + +`func (o *RealmRepresentation) GetFederatedUsersOk() (*[]UserRepresentation, bool)` + +GetFederatedUsersOk returns a tuple with the FederatedUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedUsers + +`func (o *RealmRepresentation) SetFederatedUsers(v []UserRepresentation)` + +SetFederatedUsers sets FederatedUsers field to given value. + +### HasFederatedUsers + +`func (o *RealmRepresentation) HasFederatedUsers() bool` + +HasFederatedUsers returns a boolean if a field has been set. + +### GetScopeMappings + +`func (o *RealmRepresentation) GetScopeMappings() []ScopeMappingRepresentation` + +GetScopeMappings returns the ScopeMappings field if non-nil, zero value otherwise. + +### GetScopeMappingsOk + +`func (o *RealmRepresentation) GetScopeMappingsOk() (*[]ScopeMappingRepresentation, bool)` + +GetScopeMappingsOk returns a tuple with the ScopeMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeMappings + +`func (o *RealmRepresentation) SetScopeMappings(v []ScopeMappingRepresentation)` + +SetScopeMappings sets ScopeMappings field to given value. + +### HasScopeMappings + +`func (o *RealmRepresentation) HasScopeMappings() bool` + +HasScopeMappings returns a boolean if a field has been set. + +### GetClientScopeMappings + +`func (o *RealmRepresentation) GetClientScopeMappings() map[string][]ScopeMappingRepresentation` + +GetClientScopeMappings returns the ClientScopeMappings field if non-nil, zero value otherwise. + +### GetClientScopeMappingsOk + +`func (o *RealmRepresentation) GetClientScopeMappingsOk() (*map[string][]ScopeMappingRepresentation, bool)` + +GetClientScopeMappingsOk returns a tuple with the ClientScopeMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientScopeMappings + +`func (o *RealmRepresentation) SetClientScopeMappings(v map[string][]ScopeMappingRepresentation)` + +SetClientScopeMappings sets ClientScopeMappings field to given value. + +### HasClientScopeMappings + +`func (o *RealmRepresentation) HasClientScopeMappings() bool` + +HasClientScopeMappings returns a boolean if a field has been set. + +### GetClients + +`func (o *RealmRepresentation) GetClients() []ClientRepresentation` + +GetClients returns the Clients field if non-nil, zero value otherwise. + +### GetClientsOk + +`func (o *RealmRepresentation) GetClientsOk() (*[]ClientRepresentation, bool)` + +GetClientsOk returns a tuple with the Clients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClients + +`func (o *RealmRepresentation) SetClients(v []ClientRepresentation)` + +SetClients sets Clients field to given value. + +### HasClients + +`func (o *RealmRepresentation) HasClients() bool` + +HasClients returns a boolean if a field has been set. + +### GetClientScopes + +`func (o *RealmRepresentation) GetClientScopes() []ClientScopeRepresentation` + +GetClientScopes returns the ClientScopes field if non-nil, zero value otherwise. + +### GetClientScopesOk + +`func (o *RealmRepresentation) GetClientScopesOk() (*[]ClientScopeRepresentation, bool)` + +GetClientScopesOk returns a tuple with the ClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientScopes + +`func (o *RealmRepresentation) SetClientScopes(v []ClientScopeRepresentation)` + +SetClientScopes sets ClientScopes field to given value. + +### HasClientScopes + +`func (o *RealmRepresentation) HasClientScopes() bool` + +HasClientScopes returns a boolean if a field has been set. + +### GetDefaultDefaultClientScopes + +`func (o *RealmRepresentation) GetDefaultDefaultClientScopes() []string` + +GetDefaultDefaultClientScopes returns the DefaultDefaultClientScopes field if non-nil, zero value otherwise. + +### GetDefaultDefaultClientScopesOk + +`func (o *RealmRepresentation) GetDefaultDefaultClientScopesOk() (*[]string, bool)` + +GetDefaultDefaultClientScopesOk returns a tuple with the DefaultDefaultClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultDefaultClientScopes + +`func (o *RealmRepresentation) SetDefaultDefaultClientScopes(v []string)` + +SetDefaultDefaultClientScopes sets DefaultDefaultClientScopes field to given value. + +### HasDefaultDefaultClientScopes + +`func (o *RealmRepresentation) HasDefaultDefaultClientScopes() bool` + +HasDefaultDefaultClientScopes returns a boolean if a field has been set. + +### GetDefaultOptionalClientScopes + +`func (o *RealmRepresentation) GetDefaultOptionalClientScopes() []string` + +GetDefaultOptionalClientScopes returns the DefaultOptionalClientScopes field if non-nil, zero value otherwise. + +### GetDefaultOptionalClientScopesOk + +`func (o *RealmRepresentation) GetDefaultOptionalClientScopesOk() (*[]string, bool)` + +GetDefaultOptionalClientScopesOk returns a tuple with the DefaultOptionalClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultOptionalClientScopes + +`func (o *RealmRepresentation) SetDefaultOptionalClientScopes(v []string)` + +SetDefaultOptionalClientScopes sets DefaultOptionalClientScopes field to given value. + +### HasDefaultOptionalClientScopes + +`func (o *RealmRepresentation) HasDefaultOptionalClientScopes() bool` + +HasDefaultOptionalClientScopes returns a boolean if a field has been set. + +### GetBrowserSecurityHeaders + +`func (o *RealmRepresentation) GetBrowserSecurityHeaders() map[string]string` + +GetBrowserSecurityHeaders returns the BrowserSecurityHeaders field if non-nil, zero value otherwise. + +### GetBrowserSecurityHeadersOk + +`func (o *RealmRepresentation) GetBrowserSecurityHeadersOk() (*map[string]string, bool)` + +GetBrowserSecurityHeadersOk returns a tuple with the BrowserSecurityHeaders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrowserSecurityHeaders + +`func (o *RealmRepresentation) SetBrowserSecurityHeaders(v map[string]string)` + +SetBrowserSecurityHeaders sets BrowserSecurityHeaders field to given value. + +### HasBrowserSecurityHeaders + +`func (o *RealmRepresentation) HasBrowserSecurityHeaders() bool` + +HasBrowserSecurityHeaders returns a boolean if a field has been set. + +### GetSmtpServer + +`func (o *RealmRepresentation) GetSmtpServerConfig() map[string]string` + +GetSmtpServer returns the SmtpServer field if non-nil, zero value otherwise. + +### GetSmtpServerOk + +`func (o *RealmRepresentation) GetSmtpServerOk() (*map[string]string, bool)` + +GetSmtpServerOk returns a tuple with the SmtpServer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpServer + +`func (o *RealmRepresentation) SetSmtpServer(v map[string]string)` + +SetSmtpServer sets SmtpServer field to given value. + +### HasSmtpServer + +`func (o *RealmRepresentation) HasSmtpServerConfig() bool` + +HasSmtpServer returns a boolean if a field has been set. + +### GetUserFederationProviders + +`func (o *RealmRepresentation) GetUserFederationProviders() []UserFederationProviderRepresentation` + +GetUserFederationProviders returns the UserFederationProviders field if non-nil, zero value otherwise. + +### GetUserFederationProvidersOk + +`func (o *RealmRepresentation) GetUserFederationProvidersOk() (*[]UserFederationProviderRepresentation, bool)` + +GetUserFederationProvidersOk returns a tuple with the UserFederationProviders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserFederationProviders + +`func (o *RealmRepresentation) SetUserFederationProviders(v []UserFederationProviderRepresentation)` + +SetUserFederationProviders sets UserFederationProviders field to given value. + +### HasUserFederationProviders + +`func (o *RealmRepresentation) HasUserFederationProviders() bool` + +HasUserFederationProviders returns a boolean if a field has been set. + +### GetUserFederationMappers + +`func (o *RealmRepresentation) GetUserFederationMappers() []UserFederationMapperRepresentation` + +GetUserFederationMappers returns the UserFederationMappers field if non-nil, zero value otherwise. + +### GetUserFederationMappersOk + +`func (o *RealmRepresentation) GetUserFederationMappersOk() (*[]UserFederationMapperRepresentation, bool)` + +GetUserFederationMappersOk returns a tuple with the UserFederationMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserFederationMappers + +`func (o *RealmRepresentation) SetUserFederationMappers(v []UserFederationMapperRepresentation)` + +SetUserFederationMappers sets UserFederationMappers field to given value. + +### HasUserFederationMappers + +`func (o *RealmRepresentation) HasUserFederationMappers() bool` + +HasUserFederationMappers returns a boolean if a field has been set. + +### GetLoginTheme + +`func (o *RealmRepresentation) GetLoginTheme() string` + +GetLoginTheme returns the LoginTheme field if non-nil, zero value otherwise. + +### GetLoginThemeOk + +`func (o *RealmRepresentation) GetLoginThemeOk() (*string, bool)` + +GetLoginThemeOk returns a tuple with the LoginTheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginTheme + +`func (o *RealmRepresentation) SetLoginTheme(v string)` + +SetLoginTheme sets LoginTheme field to given value. + +### HasLoginTheme + +`func (o *RealmRepresentation) HasLoginTheme() bool` + +HasLoginTheme returns a boolean if a field has been set. + +### GetAccountTheme + +`func (o *RealmRepresentation) GetAccountTheme() string` + +GetAccountTheme returns the AccountTheme field if non-nil, zero value otherwise. + +### GetAccountThemeOk + +`func (o *RealmRepresentation) GetAccountThemeOk() (*string, bool)` + +GetAccountThemeOk returns a tuple with the AccountTheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountTheme + +`func (o *RealmRepresentation) SetAccountTheme(v string)` + +SetAccountTheme sets AccountTheme field to given value. + +### HasAccountTheme + +`func (o *RealmRepresentation) HasAccountTheme() bool` + +HasAccountTheme returns a boolean if a field has been set. + +### GetAdminTheme + +`func (o *RealmRepresentation) GetAdminTheme() string` + +GetAdminTheme returns the AdminTheme field if non-nil, zero value otherwise. + +### GetAdminThemeOk + +`func (o *RealmRepresentation) GetAdminThemeOk() (*string, bool)` + +GetAdminThemeOk returns a tuple with the AdminTheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminTheme + +`func (o *RealmRepresentation) SetAdminTheme(v string)` + +SetAdminTheme sets AdminTheme field to given value. + +### HasAdminTheme + +`func (o *RealmRepresentation) HasAdminTheme() bool` + +HasAdminTheme returns a boolean if a field has been set. + +### GetEmailTheme + +`func (o *RealmRepresentation) GetEmailTheme() string` + +GetEmailTheme returns the EmailTheme field if non-nil, zero value otherwise. + +### GetEmailThemeOk + +`func (o *RealmRepresentation) GetEmailThemeOk() (*string, bool)` + +GetEmailThemeOk returns a tuple with the EmailTheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailTheme + +`func (o *RealmRepresentation) SetEmailTheme(v string)` + +SetEmailTheme sets EmailTheme field to given value. + +### HasEmailTheme + +`func (o *RealmRepresentation) HasEmailTheme() bool` + +HasEmailTheme returns a boolean if a field has been set. + +### GetEventsEnabled + +`func (o *RealmRepresentation) GetEventsEnabled() bool` + +GetEventsEnabled returns the EventsEnabled field if non-nil, zero value otherwise. + +### GetEventsEnabledOk + +`func (o *RealmRepresentation) GetEventsEnabledOk() (*bool, bool)` + +GetEventsEnabledOk returns a tuple with the EventsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventsEnabled + +`func (o *RealmRepresentation) SetEventsEnabled(v bool)` + +SetEventsEnabled sets EventsEnabled field to given value. + +### HasEventsEnabled + +`func (o *RealmRepresentation) HasEventsEnabled() bool` + +HasEventsEnabled returns a boolean if a field has been set. + +### GetEventsExpiration + +`func (o *RealmRepresentation) GetEventsExpiration() int64` + +GetEventsExpiration returns the EventsExpiration field if non-nil, zero value otherwise. + +### GetEventsExpirationOk + +`func (o *RealmRepresentation) GetEventsExpirationOk() (*int64, bool)` + +GetEventsExpirationOk returns a tuple with the EventsExpiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventsExpiration + +`func (o *RealmRepresentation) SetEventsExpiration(v int64)` + +SetEventsExpiration sets EventsExpiration field to given value. + +### HasEventsExpiration + +`func (o *RealmRepresentation) HasEventsExpiration() bool` + +HasEventsExpiration returns a boolean if a field has been set. + +### GetEventsListeners + +`func (o *RealmRepresentation) GetEventsListeners() []string` + +GetEventsListeners returns the EventsListeners field if non-nil, zero value otherwise. + +### GetEventsListenersOk + +`func (o *RealmRepresentation) GetEventsListenersOk() (*[]string, bool)` + +GetEventsListenersOk returns a tuple with the EventsListeners field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventsListeners + +`func (o *RealmRepresentation) SetEventsListeners(v []string)` + +SetEventsListeners sets EventsListeners field to given value. + +### HasEventsListeners + +`func (o *RealmRepresentation) HasEventsListeners() bool` + +HasEventsListeners returns a boolean if a field has been set. + +### GetEnabledEventTypes + +`func (o *RealmRepresentation) GetEnabledEventTypes() []string` + +GetEnabledEventTypes returns the EnabledEventTypes field if non-nil, zero value otherwise. + +### GetEnabledEventTypesOk + +`func (o *RealmRepresentation) GetEnabledEventTypesOk() (*[]string, bool)` + +GetEnabledEventTypesOk returns a tuple with the EnabledEventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledEventTypes + +`func (o *RealmRepresentation) SetEnabledEventTypes(v []string)` + +SetEnabledEventTypes sets EnabledEventTypes field to given value. + +### HasEnabledEventTypes + +`func (o *RealmRepresentation) HasEnabledEventTypes() bool` + +HasEnabledEventTypes returns a boolean if a field has been set. + +### GetAdminEventsEnabled + +`func (o *RealmRepresentation) GetAdminEventsEnabled() bool` + +GetAdminEventsEnabled returns the AdminEventsEnabled field if non-nil, zero value otherwise. + +### GetAdminEventsEnabledOk + +`func (o *RealmRepresentation) GetAdminEventsEnabledOk() (*bool, bool)` + +GetAdminEventsEnabledOk returns a tuple with the AdminEventsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminEventsEnabled + +`func (o *RealmRepresentation) SetAdminEventsEnabled(v bool)` + +SetAdminEventsEnabled sets AdminEventsEnabled field to given value. + +### HasAdminEventsEnabled + +`func (o *RealmRepresentation) HasAdminEventsEnabled() bool` + +HasAdminEventsEnabled returns a boolean if a field has been set. + +### GetAdminEventsDetailsEnabled + +`func (o *RealmRepresentation) GetAdminEventsDetailsEnabled() bool` + +GetAdminEventsDetailsEnabled returns the AdminEventsDetailsEnabled field if non-nil, zero value otherwise. + +### GetAdminEventsDetailsEnabledOk + +`func (o *RealmRepresentation) GetAdminEventsDetailsEnabledOk() (*bool, bool)` + +GetAdminEventsDetailsEnabledOk returns a tuple with the AdminEventsDetailsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminEventsDetailsEnabled + +`func (o *RealmRepresentation) SetAdminEventsDetailsEnabled(v bool)` + +SetAdminEventsDetailsEnabled sets AdminEventsDetailsEnabled field to given value. + +### HasAdminEventsDetailsEnabled + +`func (o *RealmRepresentation) HasAdminEventsDetailsEnabled() bool` + +HasAdminEventsDetailsEnabled returns a boolean if a field has been set. + +### GetIdentityProviders + +`func (o *RealmRepresentation) GetIdentityProviders() []IdentityProviderRepresentation` + +GetIdentityProviders returns the IdentityProviders field if non-nil, zero value otherwise. + +### GetIdentityProvidersOk + +`func (o *RealmRepresentation) GetIdentityProvidersOk() (*[]IdentityProviderRepresentation, bool)` + +GetIdentityProvidersOk returns a tuple with the IdentityProviders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityProviders + +`func (o *RealmRepresentation) SetIdentityProviders(v []IdentityProviderRepresentation)` + +SetIdentityProviders sets IdentityProviders field to given value. + +### HasIdentityProviders + +`func (o *RealmRepresentation) HasIdentityProviders() bool` + +HasIdentityProviders returns a boolean if a field has been set. + +### GetIdentityProviderMappers + +`func (o *RealmRepresentation) GetIdentityProviderMappers() []IdentityProviderMapperRepresentation` + +GetIdentityProviderMappers returns the IdentityProviderMappers field if non-nil, zero value otherwise. + +### GetIdentityProviderMappersOk + +`func (o *RealmRepresentation) GetIdentityProviderMappersOk() (*[]IdentityProviderMapperRepresentation, bool)` + +GetIdentityProviderMappersOk returns a tuple with the IdentityProviderMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityProviderMappers + +`func (o *RealmRepresentation) SetIdentityProviderMappers(v []IdentityProviderMapperRepresentation)` + +SetIdentityProviderMappers sets IdentityProviderMappers field to given value. + +### HasIdentityProviderMappers + +`func (o *RealmRepresentation) HasIdentityProviderMappers() bool` + +HasIdentityProviderMappers returns a boolean if a field has been set. + +### GetProtocolMappers + +`func (o *RealmRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation` + +GetProtocolMappers returns the ProtocolMappers field if non-nil, zero value otherwise. + +### GetProtocolMappersOk + +`func (o *RealmRepresentation) GetProtocolMappersOk() (*[]ProtocolMapperRepresentation, bool)` + +GetProtocolMappersOk returns a tuple with the ProtocolMappers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolMappers + +`func (o *RealmRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation)` + +SetProtocolMappers sets ProtocolMappers field to given value. + +### HasProtocolMappers + +`func (o *RealmRepresentation) HasProtocolMappers() bool` + +HasProtocolMappers returns a boolean if a field has been set. + +### GetComponents + +`func (o *RealmRepresentation) GetComponents() map[string][]ComponentExportRepresentation` + +GetComponents returns the Components field if non-nil, zero value otherwise. + +### GetComponentsOk + +`func (o *RealmRepresentation) GetComponentsOk() (*map[string][]ComponentExportRepresentation, bool)` + +GetComponentsOk returns a tuple with the Components field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponents + +`func (o *RealmRepresentation) SetComponents(v map[string][]ComponentExportRepresentation)` + +SetComponents sets Components field to given value. + +### HasComponents + +`func (o *RealmRepresentation) HasComponents() bool` + +HasComponents returns a boolean if a field has been set. + +### GetInternationalizationEnabled + +`func (o *RealmRepresentation) GetInternationalizationEnabled() bool` + +GetInternationalizationEnabled returns the InternationalizationEnabled field if non-nil, zero value otherwise. + +### GetInternationalizationEnabledOk + +`func (o *RealmRepresentation) GetInternationalizationEnabledOk() (*bool, bool)` + +GetInternationalizationEnabledOk returns a tuple with the InternationalizationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternationalizationEnabled + +`func (o *RealmRepresentation) SetInternationalizationEnabled(v bool)` + +SetInternationalizationEnabled sets InternationalizationEnabled field to given value. + +### HasInternationalizationEnabled + +`func (o *RealmRepresentation) HasInternationalizationEnabled() bool` + +HasInternationalizationEnabled returns a boolean if a field has been set. + +### GetSupportedLocales + +`func (o *RealmRepresentation) GetSupportedLocales() []string` + +GetSupportedLocales returns the SupportedLocales field if non-nil, zero value otherwise. + +### GetSupportedLocalesOk + +`func (o *RealmRepresentation) GetSupportedLocalesOk() (*[]string, bool)` + +GetSupportedLocalesOk returns a tuple with the SupportedLocales field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedLocales + +`func (o *RealmRepresentation) SetSupportedLocales(v []string)` + +SetSupportedLocales sets SupportedLocales field to given value. + +### HasSupportedLocales + +`func (o *RealmRepresentation) HasSupportedLocales() bool` + +HasSupportedLocales returns a boolean if a field has been set. + +### GetDefaultLocale + +`func (o *RealmRepresentation) GetDefaultLocale() string` + +GetDefaultLocale returns the DefaultLocale field if non-nil, zero value otherwise. + +### GetDefaultLocaleOk + +`func (o *RealmRepresentation) GetDefaultLocaleOk() (*string, bool)` + +GetDefaultLocaleOk returns a tuple with the DefaultLocale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultLocale + +`func (o *RealmRepresentation) SetDefaultLocale(v string)` + +SetDefaultLocale sets DefaultLocale field to given value. + +### HasDefaultLocale + +`func (o *RealmRepresentation) HasDefaultLocale() bool` + +HasDefaultLocale returns a boolean if a field has been set. + +### GetAuthenticationFlows + +`func (o *RealmRepresentation) GetAuthenticationFlows() []AuthenticationFlowRepresentation` + +GetAuthenticationFlows returns the AuthenticationFlows field if non-nil, zero value otherwise. + +### GetAuthenticationFlowsOk + +`func (o *RealmRepresentation) GetAuthenticationFlowsOk() (*[]AuthenticationFlowRepresentation, bool)` + +GetAuthenticationFlowsOk returns a tuple with the AuthenticationFlows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationFlows + +`func (o *RealmRepresentation) SetAuthenticationFlows(v []AuthenticationFlowRepresentation)` + +SetAuthenticationFlows sets AuthenticationFlows field to given value. + +### HasAuthenticationFlows + +`func (o *RealmRepresentation) HasAuthenticationFlows() bool` + +HasAuthenticationFlows returns a boolean if a field has been set. + +### GetAuthenticatorConfig + +`func (o *RealmRepresentation) GetAuthenticatorConfig() []AuthenticatorConfigRepresentation` + +GetAuthenticatorConfig returns the AuthenticatorConfig field if non-nil, zero value otherwise. + +### GetAuthenticatorConfigOk + +`func (o *RealmRepresentation) GetAuthenticatorConfigOk() (*[]AuthenticatorConfigRepresentation, bool)` + +GetAuthenticatorConfigOk returns a tuple with the AuthenticatorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticatorConfig + +`func (o *RealmRepresentation) SetAuthenticatorConfig(v []AuthenticatorConfigRepresentation)` + +SetAuthenticatorConfig sets AuthenticatorConfig field to given value. + +### HasAuthenticatorConfig + +`func (o *RealmRepresentation) HasAuthenticatorConfig() bool` + +HasAuthenticatorConfig returns a boolean if a field has been set. + +### GetRequiredActions + +`func (o *RealmRepresentation) GetRequiredActions() []RequiredActionProviderRepresentation` + +GetRequiredActions returns the RequiredActions field if non-nil, zero value otherwise. + +### GetRequiredActionsOk + +`func (o *RealmRepresentation) GetRequiredActionsOk() (*[]RequiredActionProviderRepresentation, bool)` + +GetRequiredActionsOk returns a tuple with the RequiredActions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredActions + +`func (o *RealmRepresentation) SetRequiredActions(v []RequiredActionProviderRepresentation)` + +SetRequiredActions sets RequiredActions field to given value. + +### HasRequiredActions + +`func (o *RealmRepresentation) HasRequiredActions() bool` + +HasRequiredActions returns a boolean if a field has been set. + +### GetBrowserFlow + +`func (o *RealmRepresentation) GetBrowserFlow() string` + +GetBrowserFlow returns the BrowserFlow field if non-nil, zero value otherwise. + +### GetBrowserFlowOk + +`func (o *RealmRepresentation) GetBrowserFlowOk() (*string, bool)` + +GetBrowserFlowOk returns a tuple with the BrowserFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrowserFlow + +`func (o *RealmRepresentation) SetBrowserFlow(v string)` + +SetBrowserFlow sets BrowserFlow field to given value. + +### HasBrowserFlow + +`func (o *RealmRepresentation) HasBrowserFlow() bool` + +HasBrowserFlow returns a boolean if a field has been set. + +### GetRegistrationFlow + +`func (o *RealmRepresentation) GetRegistrationFlow() string` + +GetRegistrationFlow returns the RegistrationFlow field if non-nil, zero value otherwise. + +### GetRegistrationFlowOk + +`func (o *RealmRepresentation) GetRegistrationFlowOk() (*string, bool)` + +GetRegistrationFlowOk returns a tuple with the RegistrationFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistrationFlow + +`func (o *RealmRepresentation) SetRegistrationFlow(v string)` + +SetRegistrationFlow sets RegistrationFlow field to given value. + +### HasRegistrationFlow + +`func (o *RealmRepresentation) HasRegistrationFlow() bool` + +HasRegistrationFlow returns a boolean if a field has been set. + +### GetDirectGrantFlow + +`func (o *RealmRepresentation) GetDirectGrantFlow() string` + +GetDirectGrantFlow returns the DirectGrantFlow field if non-nil, zero value otherwise. + +### GetDirectGrantFlowOk + +`func (o *RealmRepresentation) GetDirectGrantFlowOk() (*string, bool)` + +GetDirectGrantFlowOk returns a tuple with the DirectGrantFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectGrantFlow + +`func (o *RealmRepresentation) SetDirectGrantFlow(v string)` + +SetDirectGrantFlow sets DirectGrantFlow field to given value. + +### HasDirectGrantFlow + +`func (o *RealmRepresentation) HasDirectGrantFlow() bool` + +HasDirectGrantFlow returns a boolean if a field has been set. + +### GetResetCredentialsFlow + +`func (o *RealmRepresentation) GetResetCredentialsFlow() string` + +GetResetCredentialsFlow returns the ResetCredentialsFlow field if non-nil, zero value otherwise. + +### GetResetCredentialsFlowOk + +`func (o *RealmRepresentation) GetResetCredentialsFlowOk() (*string, bool)` + +GetResetCredentialsFlowOk returns a tuple with the ResetCredentialsFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetCredentialsFlow + +`func (o *RealmRepresentation) SetResetCredentialsFlow(v string)` + +SetResetCredentialsFlow sets ResetCredentialsFlow field to given value. + +### HasResetCredentialsFlow + +`func (o *RealmRepresentation) HasResetCredentialsFlow() bool` + +HasResetCredentialsFlow returns a boolean if a field has been set. + +### GetClientAuthenticationFlow + +`func (o *RealmRepresentation) GetClientAuthenticationFlow() string` + +GetClientAuthenticationFlow returns the ClientAuthenticationFlow field if non-nil, zero value otherwise. + +### GetClientAuthenticationFlowOk + +`func (o *RealmRepresentation) GetClientAuthenticationFlowOk() (*string, bool)` + +GetClientAuthenticationFlowOk returns a tuple with the ClientAuthenticationFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAuthenticationFlow + +`func (o *RealmRepresentation) SetClientAuthenticationFlow(v string)` + +SetClientAuthenticationFlow sets ClientAuthenticationFlow field to given value. + +### HasClientAuthenticationFlow + +`func (o *RealmRepresentation) HasClientAuthenticationFlow() bool` + +HasClientAuthenticationFlow returns a boolean if a field has been set. + +### GetDockerAuthenticationFlow + +`func (o *RealmRepresentation) GetDockerAuthenticationFlow() string` + +GetDockerAuthenticationFlow returns the DockerAuthenticationFlow field if non-nil, zero value otherwise. + +### GetDockerAuthenticationFlowOk + +`func (o *RealmRepresentation) GetDockerAuthenticationFlowOk() (*string, bool)` + +GetDockerAuthenticationFlowOk returns a tuple with the DockerAuthenticationFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDockerAuthenticationFlow + +`func (o *RealmRepresentation) SetDockerAuthenticationFlow(v string)` + +SetDockerAuthenticationFlow sets DockerAuthenticationFlow field to given value. + +### HasDockerAuthenticationFlow + +`func (o *RealmRepresentation) HasDockerAuthenticationFlow() bool` + +HasDockerAuthenticationFlow returns a boolean if a field has been set. + +### GetFirstBrokerLoginFlow + +`func (o *RealmRepresentation) GetFirstBrokerLoginFlow() string` + +GetFirstBrokerLoginFlow returns the FirstBrokerLoginFlow field if non-nil, zero value otherwise. + +### GetFirstBrokerLoginFlowOk + +`func (o *RealmRepresentation) GetFirstBrokerLoginFlowOk() (*string, bool)` + +GetFirstBrokerLoginFlowOk returns a tuple with the FirstBrokerLoginFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstBrokerLoginFlow + +`func (o *RealmRepresentation) SetFirstBrokerLoginFlow(v string)` + +SetFirstBrokerLoginFlow sets FirstBrokerLoginFlow field to given value. + +### HasFirstBrokerLoginFlow + +`func (o *RealmRepresentation) HasFirstBrokerLoginFlow() bool` + +HasFirstBrokerLoginFlow returns a boolean if a field has been set. + +### GetAttributes + +`func (o *RealmRepresentation) GetAttributes() map[string]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *RealmRepresentation) GetAttributesOk() (*map[string]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *RealmRepresentation) SetAttributes(v map[string]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *RealmRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetKeycloakVersion + +`func (o *RealmRepresentation) GetKeycloakVersion() string` + +GetKeycloakVersion returns the KeycloakVersion field if non-nil, zero value otherwise. + +### GetKeycloakVersionOk + +`func (o *RealmRepresentation) GetKeycloakVersionOk() (*string, bool)` + +GetKeycloakVersionOk returns a tuple with the KeycloakVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeycloakVersion + +`func (o *RealmRepresentation) SetKeycloakVersion(v string)` + +SetKeycloakVersion sets KeycloakVersion field to given value. + +### HasKeycloakVersion + +`func (o *RealmRepresentation) HasKeycloakVersion() bool` + +HasKeycloakVersion returns a boolean if a field has been set. + +### GetUserManagedAccessAllowed + +`func (o *RealmRepresentation) GetUserManagedAccessAllowed() bool` + +GetUserManagedAccessAllowed returns the UserManagedAccessAllowed field if non-nil, zero value otherwise. + +### GetUserManagedAccessAllowedOk + +`func (o *RealmRepresentation) GetUserManagedAccessAllowedOk() (*bool, bool)` + +GetUserManagedAccessAllowedOk returns a tuple with the UserManagedAccessAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserManagedAccessAllowed + +`func (o *RealmRepresentation) SetUserManagedAccessAllowed(v bool)` + +SetUserManagedAccessAllowed sets UserManagedAccessAllowed field to given value. + +### HasUserManagedAccessAllowed + +`func (o *RealmRepresentation) HasUserManagedAccessAllowed() bool` + +HasUserManagedAccessAllowed returns a boolean if a field has been set. + +### GetOrganizationsEnabled + +`func (o *RealmRepresentation) GetOrganizationsEnabled() bool` + +GetOrganizationsEnabled returns the OrganizationsEnabled field if non-nil, zero value otherwise. + +### GetOrganizationsEnabledOk + +`func (o *RealmRepresentation) GetOrganizationsEnabledOk() (*bool, bool)` + +GetOrganizationsEnabledOk returns a tuple with the OrganizationsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationsEnabled + +`func (o *RealmRepresentation) SetOrganizationsEnabled(v bool)` + +SetOrganizationsEnabled sets OrganizationsEnabled field to given value. + +### HasOrganizationsEnabled + +`func (o *RealmRepresentation) HasOrganizationsEnabled() bool` + +HasOrganizationsEnabled returns a boolean if a field has been set. + +### GetOrganizations + +`func (o *RealmRepresentation) GetOrganizations() []OrganizationRepresentation` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *RealmRepresentation) GetOrganizationsOk() (*[]OrganizationRepresentation, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *RealmRepresentation) SetOrganizations(v []OrganizationRepresentation)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *RealmRepresentation) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + +### GetSocial + +`func (o *RealmRepresentation) GetSocial() bool` + +GetSocial returns the Social field if non-nil, zero value otherwise. + +### GetSocialOk + +`func (o *RealmRepresentation) GetSocialOk() (*bool, bool)` + +GetSocialOk returns a tuple with the Social field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocial + +`func (o *RealmRepresentation) SetSocial(v bool)` + +SetSocial sets Social field to given value. + +### HasSocial + +`func (o *RealmRepresentation) HasSocial() bool` + +HasSocial returns a boolean if a field has been set. + +### GetUpdateProfileOnInitialSocialLogin + +`func (o *RealmRepresentation) GetUpdateProfileOnInitialSocialLogin() bool` + +GetUpdateProfileOnInitialSocialLogin returns the UpdateProfileOnInitialSocialLogin field if non-nil, zero value otherwise. + +### GetUpdateProfileOnInitialSocialLoginOk + +`func (o *RealmRepresentation) GetUpdateProfileOnInitialSocialLoginOk() (*bool, bool)` + +GetUpdateProfileOnInitialSocialLoginOk returns a tuple with the UpdateProfileOnInitialSocialLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateProfileOnInitialSocialLogin + +`func (o *RealmRepresentation) SetUpdateProfileOnInitialSocialLogin(v bool)` + +SetUpdateProfileOnInitialSocialLogin sets UpdateProfileOnInitialSocialLogin field to given value. + +### HasUpdateProfileOnInitialSocialLogin + +`func (o *RealmRepresentation) HasUpdateProfileOnInitialSocialLogin() bool` + +HasUpdateProfileOnInitialSocialLogin returns a boolean if a field has been set. + +### GetSocialProviders + +`func (o *RealmRepresentation) GetSocialProviders() map[string]string` + +GetSocialProviders returns the SocialProviders field if non-nil, zero value otherwise. + +### GetSocialProvidersOk + +`func (o *RealmRepresentation) GetSocialProvidersOk() (*map[string]string, bool)` + +GetSocialProvidersOk returns a tuple with the SocialProviders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocialProviders + +`func (o *RealmRepresentation) SetSocialProviders(v map[string]string)` + +SetSocialProviders sets SocialProviders field to given value. + +### HasSocialProviders + +`func (o *RealmRepresentation) HasSocialProviders() bool` + +HasSocialProviders returns a boolean if a field has been set. + +### GetApplicationScopeMappings + +`func (o *RealmRepresentation) GetApplicationScopeMappings() map[string][]ScopeMappingRepresentation` + +GetApplicationScopeMappings returns the ApplicationScopeMappings field if non-nil, zero value otherwise. + +### GetApplicationScopeMappingsOk + +`func (o *RealmRepresentation) GetApplicationScopeMappingsOk() (*map[string][]ScopeMappingRepresentation, bool)` + +GetApplicationScopeMappingsOk returns a tuple with the ApplicationScopeMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationScopeMappings + +`func (o *RealmRepresentation) SetApplicationScopeMappings(v map[string][]ScopeMappingRepresentation)` + +SetApplicationScopeMappings sets ApplicationScopeMappings field to given value. + +### HasApplicationScopeMappings + +`func (o *RealmRepresentation) HasApplicationScopeMappings() bool` + +HasApplicationScopeMappings returns a boolean if a field has been set. + +### GetApplications + +`func (o *RealmRepresentation) GetApplications() []ApplicationRepresentation` + +GetApplications returns the Applications field if non-nil, zero value otherwise. + +### GetApplicationsOk + +`func (o *RealmRepresentation) GetApplicationsOk() (*[]ApplicationRepresentation, bool)` + +GetApplicationsOk returns a tuple with the Applications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplications + +`func (o *RealmRepresentation) SetApplications(v []ApplicationRepresentation)` + +SetApplications sets Applications field to given value. + +### HasApplications + +`func (o *RealmRepresentation) HasApplications() bool` + +HasApplications returns a boolean if a field has been set. + +### GetOauthClients + +`func (o *RealmRepresentation) GetOauthClients() []OAuthClientRepresentation` + +GetOauthClients returns the OauthClients field if non-nil, zero value otherwise. + +### GetOauthClientsOk + +`func (o *RealmRepresentation) GetOauthClientsOk() (*[]OAuthClientRepresentation, bool)` + +GetOauthClientsOk returns a tuple with the OauthClients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOauthClients + +`func (o *RealmRepresentation) SetOauthClients(v []OAuthClientRepresentation)` + +SetOauthClients sets OauthClients field to given value. + +### HasOauthClients + +`func (o *RealmRepresentation) HasOauthClients() bool` + +HasOauthClients returns a boolean if a field has been set. + +### GetClientTemplates + +`func (o *RealmRepresentation) GetClientTemplates() []ClientTemplateRepresentation` + +GetClientTemplates returns the ClientTemplates field if non-nil, zero value otherwise. + +### GetClientTemplatesOk + +`func (o *RealmRepresentation) GetClientTemplatesOk() (*[]ClientTemplateRepresentation, bool)` + +GetClientTemplatesOk returns a tuple with the ClientTemplates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTemplates + +`func (o *RealmRepresentation) SetClientTemplates(v []ClientTemplateRepresentation)` + +SetClientTemplates sets ClientTemplates field to given value. + +### HasClientTemplates + +`func (o *RealmRepresentation) HasClientTemplates() bool` + +HasClientTemplates returns a boolean if a field has been set. + +### GetOAuth2DeviceCodeLifespan + +`func (o *RealmRepresentation) GetOAuth2DeviceCodeLifespan() int32` + +GetOAuth2DeviceCodeLifespan returns the OAuth2DeviceCodeLifespan field if non-nil, zero value otherwise. + +### GetOAuth2DeviceCodeLifespanOk + +`func (o *RealmRepresentation) GetOAuth2DeviceCodeLifespanOk() (*int32, bool)` + +GetOAuth2DeviceCodeLifespanOk returns a tuple with the OAuth2DeviceCodeLifespan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOAuth2DeviceCodeLifespan + +`func (o *RealmRepresentation) SetOAuth2DeviceCodeLifespan(v int32)` + +SetOAuth2DeviceCodeLifespan sets OAuth2DeviceCodeLifespan field to given value. + +### HasOAuth2DeviceCodeLifespan + +`func (o *RealmRepresentation) HasOAuth2DeviceCodeLifespan() bool` + +HasOAuth2DeviceCodeLifespan returns a boolean if a field has been set. + +### GetOAuth2DevicePollingInterval + +`func (o *RealmRepresentation) GetOAuth2DevicePollingInterval() int32` + +GetOAuth2DevicePollingInterval returns the OAuth2DevicePollingInterval field if non-nil, zero value otherwise. + +### GetOAuth2DevicePollingIntervalOk + +`func (o *RealmRepresentation) GetOAuth2DevicePollingIntervalOk() (*int32, bool)` + +GetOAuth2DevicePollingIntervalOk returns a tuple with the OAuth2DevicePollingInterval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOAuth2DevicePollingInterval + +`func (o *RealmRepresentation) SetOAuth2DevicePollingInterval(v int32)` + +SetOAuth2DevicePollingInterval sets OAuth2DevicePollingInterval field to given value. + +### HasOAuth2DevicePollingInterval + +`func (o *RealmRepresentation) HasOAuth2DevicePollingInterval() bool` + +HasOAuth2DevicePollingInterval returns a boolean if a field has been set. + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RealmsAdminAPI.md b/docs/RealmsAdminAPI.md new file mode 100644 index 0000000..f2998f4 --- /dev/null +++ b/docs/RealmsAdminAPI.md @@ -0,0 +1,3198 @@ +# \RealmsAdminAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsGet**](RealmsAdminAPI.md#AdminRealmsGet) | **Get** /admin/realms | Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. +[**AdminRealmsPost**](RealmsAdminAPI.md#AdminRealmsPost) | **Post** /admin/realms | Import a realm. Imports a realm from a full representation of that realm. +[**AdminRealmsRealmAdminEventsDelete**](RealmsAdminAPI.md#AdminRealmsRealmAdminEventsDelete) | **Delete** /admin/realms/{realm}/admin-events | Delete all admin events +[**AdminRealmsRealmAdminEventsGet**](RealmsAdminAPI.md#AdminRealmsRealmAdminEventsGet) | **Get** /admin/realms/{realm}/admin-events | Get admin events Returns all admin events, or filters events based on URL query parameters listed here +[**AdminRealmsRealmClientDescriptionConverterPost**](RealmsAdminAPI.md#AdminRealmsRealmClientDescriptionConverterPost) | **Post** /admin/realms/{realm}/client-description-converter | Base path for importing clients under this realm. +[**AdminRealmsRealmClientPoliciesPoliciesGet**](RealmsAdminAPI.md#AdminRealmsRealmClientPoliciesPoliciesGet) | **Get** /admin/realms/{realm}/client-policies/policies | +[**AdminRealmsRealmClientPoliciesPoliciesPut**](RealmsAdminAPI.md#AdminRealmsRealmClientPoliciesPoliciesPut) | **Put** /admin/realms/{realm}/client-policies/policies | +[**AdminRealmsRealmClientPoliciesProfilesGet**](RealmsAdminAPI.md#AdminRealmsRealmClientPoliciesProfilesGet) | **Get** /admin/realms/{realm}/client-policies/profiles | +[**AdminRealmsRealmClientPoliciesProfilesPut**](RealmsAdminAPI.md#AdminRealmsRealmClientPoliciesProfilesPut) | **Put** /admin/realms/{realm}/client-policies/profiles | +[**AdminRealmsRealmClientSessionStatsGet**](RealmsAdminAPI.md#AdminRealmsRealmClientSessionStatsGet) | **Get** /admin/realms/{realm}/client-session-stats | Get client session stats Returns a JSON map. +[**AdminRealmsRealmClientTypesGet**](RealmsAdminAPI.md#AdminRealmsRealmClientTypesGet) | **Get** /admin/realms/{realm}/client-types | List all client types available in the current realm +[**AdminRealmsRealmClientTypesPut**](RealmsAdminAPI.md#AdminRealmsRealmClientTypesPut) | **Put** /admin/realms/{realm}/client-types | Update a client type +[**AdminRealmsRealmCredentialRegistratorsGet**](RealmsAdminAPI.md#AdminRealmsRealmCredentialRegistratorsGet) | **Get** /admin/realms/{realm}/credential-registrators | +[**AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete**](RealmsAdminAPI.md#AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete) | **Delete** /admin/realms/{realm}/default-default-client-scopes/{clientScopeId} | +[**AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut**](RealmsAdminAPI.md#AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut) | **Put** /admin/realms/{realm}/default-default-client-scopes/{clientScopeId} | +[**AdminRealmsRealmDefaultDefaultClientScopesGet**](RealmsAdminAPI.md#AdminRealmsRealmDefaultDefaultClientScopesGet) | **Get** /admin/realms/{realm}/default-default-client-scopes | Get realm default client scopes. Only name and ids are returned. +[**AdminRealmsRealmDefaultGroupsGet**](RealmsAdminAPI.md#AdminRealmsRealmDefaultGroupsGet) | **Get** /admin/realms/{realm}/default-groups | Get group hierarchy. Only name and ids are returned. +[**AdminRealmsRealmDefaultGroupsGroupIdDelete**](RealmsAdminAPI.md#AdminRealmsRealmDefaultGroupsGroupIdDelete) | **Delete** /admin/realms/{realm}/default-groups/{groupId} | +[**AdminRealmsRealmDefaultGroupsGroupIdPut**](RealmsAdminAPI.md#AdminRealmsRealmDefaultGroupsGroupIdPut) | **Put** /admin/realms/{realm}/default-groups/{groupId} | +[**AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete**](RealmsAdminAPI.md#AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete) | **Delete** /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId} | +[**AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut**](RealmsAdminAPI.md#AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut) | **Put** /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId} | +[**AdminRealmsRealmDefaultOptionalClientScopesGet**](RealmsAdminAPI.md#AdminRealmsRealmDefaultOptionalClientScopesGet) | **Get** /admin/realms/{realm}/default-optional-client-scopes | Get realm optional client scopes. Only name and ids are returned. +[**AdminRealmsRealmDelete**](RealmsAdminAPI.md#AdminRealmsRealmDelete) | **Delete** /admin/realms/{realm} | Delete the realm +[**AdminRealmsRealmEventsConfigGet**](RealmsAdminAPI.md#AdminRealmsRealmEventsConfigGet) | **Get** /admin/realms/{realm}/events/config | Get the events provider configuration Returns JSON object with events provider configuration +[**AdminRealmsRealmEventsConfigPut**](RealmsAdminAPI.md#AdminRealmsRealmEventsConfigPut) | **Put** /admin/realms/{realm}/events/config | +[**AdminRealmsRealmEventsDelete**](RealmsAdminAPI.md#AdminRealmsRealmEventsDelete) | **Delete** /admin/realms/{realm}/events | Delete all events +[**AdminRealmsRealmEventsGet**](RealmsAdminAPI.md#AdminRealmsRealmEventsGet) | **Get** /admin/realms/{realm}/events | Get events Returns all events, or filters them based on URL query parameters listed here +[**AdminRealmsRealmGet**](RealmsAdminAPI.md#AdminRealmsRealmGet) | **Get** /admin/realms/{realm} | Get the top-level representation of the realm It will not include nested information like User and Client representations. +[**AdminRealmsRealmGroupByPathPathGet**](RealmsAdminAPI.md#AdminRealmsRealmGroupByPathPathGet) | **Get** /admin/realms/{realm}/group-by-path/{path} | +[**AdminRealmsRealmLocalizationGet**](RealmsAdminAPI.md#AdminRealmsRealmLocalizationGet) | **Get** /admin/realms/{realm}/localization | +[**AdminRealmsRealmLocalizationLocaleDelete**](RealmsAdminAPI.md#AdminRealmsRealmLocalizationLocaleDelete) | **Delete** /admin/realms/{realm}/localization/{locale} | +[**AdminRealmsRealmLocalizationLocaleGet**](RealmsAdminAPI.md#AdminRealmsRealmLocalizationLocaleGet) | **Get** /admin/realms/{realm}/localization/{locale} | +[**AdminRealmsRealmLocalizationLocaleKeyDelete**](RealmsAdminAPI.md#AdminRealmsRealmLocalizationLocaleKeyDelete) | **Delete** /admin/realms/{realm}/localization/{locale}/{key} | +[**AdminRealmsRealmLocalizationLocaleKeyGet**](RealmsAdminAPI.md#AdminRealmsRealmLocalizationLocaleKeyGet) | **Get** /admin/realms/{realm}/localization/{locale}/{key} | +[**AdminRealmsRealmLocalizationLocaleKeyPut**](RealmsAdminAPI.md#AdminRealmsRealmLocalizationLocaleKeyPut) | **Put** /admin/realms/{realm}/localization/{locale}/{key} | +[**AdminRealmsRealmLocalizationLocalePost**](RealmsAdminAPI.md#AdminRealmsRealmLocalizationLocalePost) | **Post** /admin/realms/{realm}/localization/{locale} | Import localization from uploaded JSON file +[**AdminRealmsRealmLogoutAllPost**](RealmsAdminAPI.md#AdminRealmsRealmLogoutAllPost) | **Post** /admin/realms/{realm}/logout-all | Removes all user sessions. +[**AdminRealmsRealmPartialExportPost**](RealmsAdminAPI.md#AdminRealmsRealmPartialExportPost) | **Post** /admin/realms/{realm}/partial-export | Partial export of existing realm into a JSON file. +[**AdminRealmsRealmPartialImportPost**](RealmsAdminAPI.md#AdminRealmsRealmPartialImportPost) | **Post** /admin/realms/{realm}/partialImport | Partial import from a JSON file to an existing realm. +[**AdminRealmsRealmPushRevocationPost**](RealmsAdminAPI.md#AdminRealmsRealmPushRevocationPost) | **Post** /admin/realms/{realm}/push-revocation | Push the realm's revocation policy to any client that has an admin url associated with it. +[**AdminRealmsRealmPut**](RealmsAdminAPI.md#AdminRealmsRealmPut) | **Put** /admin/realms/{realm} | Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. +[**AdminRealmsRealmSessionsSessionDelete**](RealmsAdminAPI.md#AdminRealmsRealmSessionsSessionDelete) | **Delete** /admin/realms/{realm}/sessions/{session} | Remove a specific user session. +[**AdminRealmsRealmTestSMTPConnectionPost**](RealmsAdminAPI.md#AdminRealmsRealmTestSMTPConnectionPost) | **Post** /admin/realms/{realm}/testSMTPConnection | Test SMTP connection with current logged in user +[**AdminRealmsRealmUsersManagementPermissionsGet**](RealmsAdminAPI.md#AdminRealmsRealmUsersManagementPermissionsGet) | **Get** /admin/realms/{realm}/users-management-permissions | +[**AdminRealmsRealmUsersManagementPermissionsPut**](RealmsAdminAPI.md#AdminRealmsRealmUsersManagementPermissionsPut) | **Put** /admin/realms/{realm}/users-management-permissions | + + + +## AdminRealmsGet + +> []RealmRepresentation AdminRealmsGet(ctx).BriefRepresentation(briefRepresentation).Execute() + +Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + briefRepresentation := true // bool | (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsGet(context.Background()).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsGet`: []RealmRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **briefRepresentation** | **bool** | | [default to false] + +### Return type + +[**[]RealmRepresentation**](RealmRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsPost + +> AdminRealmsPost(ctx).Body(body).Execute() + +Import a realm. Imports a realm from a full representation of that realm. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + body := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsPost(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsPost``: %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 apiAdminRealmsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | ***os.File** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAdminEventsDelete + +> AdminRealmsRealmAdminEventsDelete(ctx, realm).Execute() + +Delete all admin events + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmAdminEventsDelete(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmAdminEventsDelete``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAdminEventsDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmAdminEventsGet + +> []AdminEventRepresentation AdminRealmsRealmAdminEventsGet(ctx, realm).AuthClient(authClient).AuthIpAddress(authIpAddress).AuthRealm(authRealm).AuthUser(authUser).DateFrom(dateFrom).DateTo(dateTo).First(first).Max(max).OperationTypes(operationTypes).ResourcePath(resourcePath).ResourceTypes(resourceTypes).Execute() + +Get admin events Returns all admin events, or filters events based on URL query parameters listed here + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + authClient := "authClient_example" // string | (optional) + authIpAddress := "authIpAddress_example" // string | (optional) + authRealm := "authRealm_example" // string | (optional) + authUser := "authUser_example" // string | user id (optional) + dateFrom := "dateFrom_example" // string | (optional) + dateTo := "dateTo_example" // string | (optional) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | Maximum results size (defaults to 100) (optional) + operationTypes := []string{"Inner_example"} // []string | (optional) + resourcePath := "resourcePath_example" // string | (optional) + resourceTypes := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmAdminEventsGet(context.Background(), realm).AuthClient(authClient).AuthIpAddress(authIpAddress).AuthRealm(authRealm).AuthUser(authUser).DateFrom(dateFrom).DateTo(dateTo).First(first).Max(max).OperationTypes(operationTypes).ResourcePath(resourcePath).ResourceTypes(resourceTypes).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmAdminEventsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmAdminEventsGet`: []AdminEventRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmAdminEventsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmAdminEventsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authClient** | **string** | | + **authIpAddress** | **string** | | + **authRealm** | **string** | | + **authUser** | **string** | user id | + **dateFrom** | **string** | | + **dateTo** | **string** | | + **first** | **int32** | | + **max** | **int32** | Maximum results size (defaults to 100) | + **operationTypes** | **[]string** | | + **resourcePath** | **string** | | + **resourceTypes** | **[]string** | | + +### Return type + +[**[]AdminEventRepresentation**](AdminEventRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientDescriptionConverterPost + +> ClientRepresentation AdminRealmsRealmClientDescriptionConverterPost(ctx, realm).Body(body).Execute() + +Base path for importing clients under this realm. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + body := "body_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientDescriptionConverterPost(context.Background(), realm).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientDescriptionConverterPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientDescriptionConverterPost`: ClientRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmClientDescriptionConverterPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientDescriptionConverterPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **string** | | + +### Return type + +[**ClientRepresentation**](ClientRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json, application/xml, text/plain +- **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) + + +## AdminRealmsRealmClientPoliciesPoliciesGet + +> ClientPoliciesRepresentation AdminRealmsRealmClientPoliciesPoliciesGet(ctx, realm).IncludeGlobalPolicies(includeGlobalPolicies).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + includeGlobalPolicies := true // bool | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesPoliciesGet(context.Background(), realm).IncludeGlobalPolicies(includeGlobalPolicies).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientPoliciesPoliciesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientPoliciesPoliciesGet`: ClientPoliciesRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmClientPoliciesPoliciesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientPoliciesPoliciesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **includeGlobalPolicies** | **bool** | | + +### Return type + +[**ClientPoliciesRepresentation**](ClientPoliciesRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientPoliciesPoliciesPut + +> AdminRealmsRealmClientPoliciesPoliciesPut(ctx, realm).ClientPoliciesRepresentation(clientPoliciesRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientPoliciesRepresentation := *openapiclient.NewClientPoliciesRepresentation() // ClientPoliciesRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesPoliciesPut(context.Background(), realm).ClientPoliciesRepresentation(clientPoliciesRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientPoliciesPoliciesPut``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientPoliciesPoliciesPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientPoliciesRepresentation** | [**ClientPoliciesRepresentation**](ClientPoliciesRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientPoliciesProfilesGet + +> ClientProfilesRepresentation AdminRealmsRealmClientPoliciesProfilesGet(ctx, realm).IncludeGlobalProfiles(includeGlobalProfiles).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + includeGlobalProfiles := true // bool | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesProfilesGet(context.Background(), realm).IncludeGlobalProfiles(includeGlobalProfiles).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientPoliciesProfilesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientPoliciesProfilesGet`: ClientProfilesRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmClientPoliciesProfilesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientPoliciesProfilesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **includeGlobalProfiles** | **bool** | | + +### Return type + +[**ClientProfilesRepresentation**](ClientProfilesRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientPoliciesProfilesPut + +> AdminRealmsRealmClientPoliciesProfilesPut(ctx, realm).ClientProfilesRepresentation(clientProfilesRepresentation).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientProfilesRepresentation := *openapiclient.NewClientProfilesRepresentation() // ClientProfilesRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesProfilesPut(context.Background(), realm).ClientProfilesRepresentation(clientProfilesRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientPoliciesProfilesPut``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientPoliciesProfilesPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientProfilesRepresentation** | [**ClientProfilesRepresentation**](ClientProfilesRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientSessionStatsGet + +> []map[string]string AdminRealmsRealmClientSessionStatsGet(ctx, realm).Execute() + +Get client session stats Returns a JSON map. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientSessionStatsGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientSessionStatsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientSessionStatsGet`: []map[string]string + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmClientSessionStatsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientSessionStatsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]map[string]string**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTypesGet + +> ClientTypesRepresentation AdminRealmsRealmClientTypesGet(ctx, realm).Execute() + +List all client types available in the current realm + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientTypesGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientTypesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTypesGet`: ClientTypesRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmClientTypesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTypesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ClientTypesRepresentation**](ClientTypesRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTypesPut + +> AdminRealmsRealmClientTypesPut(ctx, realm).ClientTypesRepresentation(clientTypesRepresentation).Execute() + +Update a client type + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientTypesRepresentation := *openapiclient.NewClientTypesRepresentation() // ClientTypesRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientTypesPut(context.Background(), realm).ClientTypesRepresentation(clientTypesRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmClientTypesPut``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTypesPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clientTypesRepresentation** | [**ClientTypesRepresentation**](ClientTypesRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmCredentialRegistratorsGet + +> []string AdminRealmsRealmCredentialRegistratorsGet(ctx, realm).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmCredentialRegistratorsGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmCredentialRegistratorsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmCredentialRegistratorsGet`: []string + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmCredentialRegistratorsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmCredentialRegistratorsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**[]string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete + +> AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete(ctx, realm, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut + +> AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut(ctx, realm, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmDefaultDefaultClientScopesGet + +> []ClientScopeRepresentation AdminRealmsRealmDefaultDefaultClientScopesGet(ctx, realm).Execute() + +Get realm default client scopes. Only name and ids are returned. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmDefaultDefaultClientScopesGet`: []ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultDefaultClientScopesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmDefaultGroupsGet + +> []GroupRepresentation AdminRealmsRealmDefaultGroupsGet(ctx, realm).Execute() + +Get group hierarchy. Only name and ids are returned. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmDefaultGroupsGet`: []GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultGroupsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmDefaultGroupsGroupIdDelete + +> AdminRealmsRealmDefaultGroupsGroupIdDelete(ctx, realm, groupId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGroupIdDelete(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGroupIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmDefaultGroupsGroupIdPut + +> AdminRealmsRealmDefaultGroupsGroupIdPut(ctx, realm, groupId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGroupIdPut(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGroupIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultGroupsGroupIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete + +> AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete(ctx, realm, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut + +> AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut(ctx, realm, clientScopeId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmDefaultOptionalClientScopesGet + +> []ClientScopeRepresentation AdminRealmsRealmDefaultOptionalClientScopesGet(ctx, realm).Execute() + +Get realm optional client scopes. Only name and ids are returned. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmDefaultOptionalClientScopesGet`: []ClientScopeRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDefaultOptionalClientScopesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ClientScopeRepresentation**](ClientScopeRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmDelete + +> AdminRealmsRealmDelete(ctx, realm).Execute() + +Delete the realm + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDelete(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmDelete``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmEventsConfigGet + +> RealmEventsConfigRepresentation AdminRealmsRealmEventsConfigGet(ctx, realm).Execute() + +Get the events provider configuration Returns JSON object with events provider configuration + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsConfigGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmEventsConfigGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmEventsConfigGet`: RealmEventsConfigRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmEventsConfigGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmEventsConfigGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RealmEventsConfigRepresentation**](RealmEventsConfigRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmEventsConfigPut + +> AdminRealmsRealmEventsConfigPut(ctx, realm).RealmEventsConfigRepresentation(realmEventsConfigRepresentation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + realmEventsConfigRepresentation := *openapiclient.NewRealmEventsConfigRepresentation() // RealmEventsConfigRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsConfigPut(context.Background(), realm).RealmEventsConfigRepresentation(realmEventsConfigRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmEventsConfigPut``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmEventsConfigPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **realmEventsConfigRepresentation** | [**RealmEventsConfigRepresentation**](RealmEventsConfigRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmEventsDelete + +> AdminRealmsRealmEventsDelete(ctx, realm).Execute() + +Delete all events + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsDelete(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmEventsDelete``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmEventsDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmEventsGet + +> []EventRepresentation AdminRealmsRealmEventsGet(ctx, realm).Client(client).DateFrom(dateFrom).DateTo(dateTo).First(first).IpAddress(ipAddress).Max(max).Type_(type_).User(user).Execute() + +Get events Returns all events, or filters them based on URL query parameters listed here + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + client := "client_example" // string | App or oauth client name (optional) + dateFrom := "dateFrom_example" // string | From date (optional) + dateTo := "dateTo_example" // string | To date (optional) + first := int32(56) // int32 | Paging offset (optional) + ipAddress := "ipAddress_example" // string | IP Address (optional) + max := int32(56) // int32 | Maximum results size (defaults to 100) (optional) + type_ := []string{"Inner_example"} // []string | The types of events to return (optional) + user := "user_example" // string | User id (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsGet(context.Background(), realm).Client(client).DateFrom(dateFrom).DateTo(dateTo).First(first).IpAddress(ipAddress).Max(max).Type_(type_).User(user).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmEventsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmEventsGet`: []EventRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmEventsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmEventsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **client** | **string** | App or oauth client name | + **dateFrom** | **string** | From date | + **dateTo** | **string** | To date | + **first** | **int32** | Paging offset | + **ipAddress** | **string** | IP Address | + **max** | **int32** | Maximum results size (defaults to 100) | + **type_** | **[]string** | The types of events to return | + **user** | **string** | User id | + +### Return type + +[**[]EventRepresentation**](EventRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGet + +> RealmRepresentation AdminRealmsRealmGet(ctx, realm).Execute() + +Get the top-level representation of the realm It will not include nested information like User and Client representations. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGet`: RealmRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RealmRepresentation**](RealmRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupByPathPathGet + +> GroupRepresentation AdminRealmsRealmGroupByPathPathGet(ctx, realm, path).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + path := "path_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmGroupByPathPathGet(context.Background(), realm, path).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmGroupByPathPathGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupByPathPathGet`: GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmGroupByPathPathGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupByPathPathGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmLocalizationGet + +> []string AdminRealmsRealmLocalizationGet(ctx, realm).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLocalizationGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmLocalizationGet`: []string + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmLocalizationGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLocalizationGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**[]string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmLocalizationLocaleDelete + +> AdminRealmsRealmLocalizationLocaleDelete(ctx, realm, locale).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + locale := "locale_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleDelete(context.Background(), realm, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleDelete``: %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. +**realm** | **string** | realm name (not id!) | +**locale** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLocalizationLocaleDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmLocalizationLocaleGet + +> map[string]string AdminRealmsRealmLocalizationLocaleGet(ctx, realm, locale).UseRealmDefaultLocaleFallback(useRealmDefaultLocaleFallback).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + locale := "locale_example" // string | + useRealmDefaultLocaleFallback := true // bool | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleGet(context.Background(), realm, locale).UseRealmDefaultLocaleFallback(useRealmDefaultLocaleFallback).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmLocalizationLocaleGet`: map[string]string + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**locale** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLocalizationLocaleGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **useRealmDefaultLocaleFallback** | **bool** | | + +### Return type + +**map[string]string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmLocalizationLocaleKeyDelete + +> AdminRealmsRealmLocalizationLocaleKeyDelete(ctx, realm, key, locale).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + key := "key_example" // string | + locale := "locale_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyDelete(context.Background(), realm, key, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyDelete``: %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. +**realm** | **string** | realm name (not id!) | +**key** | **string** | | +**locale** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmLocalizationLocaleKeyGet + +> string AdminRealmsRealmLocalizationLocaleKeyGet(ctx, realm, key, locale).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + key := "key_example" // string | + locale := "locale_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyGet(context.Background(), realm, key, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmLocalizationLocaleKeyGet`: string + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**key** | **string** | | +**locale** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLocalizationLocaleKeyGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmLocalizationLocaleKeyPut + +> AdminRealmsRealmLocalizationLocaleKeyPut(ctx, realm, key, locale).Body(body).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + key := "key_example" // string | + locale := "locale_example" // string | + body := "body_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyPut(context.Background(), realm, key, locale).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyPut``: %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. +**realm** | **string** | realm name (not id!) | +**key** | **string** | | +**locale** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLocalizationLocaleKeyPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **body** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: text/plain +- **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) + + +## AdminRealmsRealmLocalizationLocalePost + +> AdminRealmsRealmLocalizationLocalePost(ctx, realm, locale).RequestBody(requestBody).Execute() + +Import localization from uploaded JSON file + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + locale := "locale_example" // string | + requestBody := map[string]string{"key": "Inner_example"} // map[string]string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocalePost(context.Background(), realm, locale).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLocalizationLocalePost``: %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. +**realm** | **string** | realm name (not id!) | +**locale** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLocalizationLocalePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requestBody** | **map[string]string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmLogoutAllPost + +> GlobalRequestResult AdminRealmsRealmLogoutAllPost(ctx, realm).Execute() + +Removes all user sessions. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLogoutAllPost(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmLogoutAllPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmLogoutAllPost`: GlobalRequestResult + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmLogoutAllPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmLogoutAllPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GlobalRequestResult**](GlobalRequestResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmPartialExportPost + +> AdminRealmsRealmPartialExportPost(ctx, realm).ExportClients(exportClients).ExportGroupsAndRoles(exportGroupsAndRoles).Execute() + +Partial export of existing realm into a JSON file. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + exportClients := true // bool | (optional) + exportGroupsAndRoles := true // bool | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPartialExportPost(context.Background(), realm).ExportClients(exportClients).ExportGroupsAndRoles(exportGroupsAndRoles).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmPartialExportPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmPartialExportPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **exportClients** | **bool** | | + **exportGroupsAndRoles** | **bool** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmPartialImportPost + +> AdminRealmsRealmPartialImportPost(ctx, realm).Body(body).Execute() + +Partial import from a JSON file to an existing realm. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + body := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPartialImportPost(context.Background(), realm).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmPartialImportPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmPartialImportPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | ***os.File** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmPushRevocationPost + +> GlobalRequestResult AdminRealmsRealmPushRevocationPost(ctx, realm).Execute() + +Push the realm's revocation policy to any client that has an admin url associated with it. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPushRevocationPost(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmPushRevocationPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmPushRevocationPost`: GlobalRequestResult + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmPushRevocationPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmPushRevocationPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GlobalRequestResult**](GlobalRequestResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmPut + +> AdminRealmsRealmPut(ctx, realm).RealmRepresentation(realmRepresentation).Execute() + +Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + realmRepresentation := *openapiclient.NewRealmRepresentation() // RealmRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPut(context.Background(), realm).RealmRepresentation(realmRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmPut``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **realmRepresentation** | [**RealmRepresentation**](RealmRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmSessionsSessionDelete + +> AdminRealmsRealmSessionsSessionDelete(ctx, realm, session).IsOffline(isOffline).Execute() + +Remove a specific user session. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + session := "session_example" // string | + isOffline := true // bool | (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmSessionsSessionDelete(context.Background(), realm, session).IsOffline(isOffline).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmSessionsSessionDelete``: %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. +**realm** | **string** | realm name (not id!) | +**session** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmSessionsSessionDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **isOffline** | **bool** | | [default to false] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmTestSMTPConnectionPost + +> AdminRealmsRealmTestSMTPConnectionPost(ctx, realm).RequestBody(requestBody).Execute() + +Test SMTP connection with current logged in user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + requestBody := map[string]string{"key": "Inner_example"} // map[string]string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmTestSMTPConnectionPost(context.Background(), realm).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmTestSMTPConnectionPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmTestSMTPConnectionPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **requestBody** | **map[string]string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json, 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) + + +## AdminRealmsRealmUsersManagementPermissionsGet + +> ManagementPermissionReference AdminRealmsRealmUsersManagementPermissionsGet(ctx, realm).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersManagementPermissionsGet`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersManagementPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersManagementPermissionsPut + +> ManagementPermissionReference AdminRealmsRealmUsersManagementPermissionsPut(ctx, realm).ManagementPermissionReference(managementPermissionReference).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsPut(context.Background(), realm).ManagementPermissionReference(managementPermissionReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersManagementPermissionsPut`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersManagementPermissionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **managementPermissionReference** | [**ManagementPermissionReference**](ManagementPermissionReference.md) | | + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/RequiredActionConfigInfoRepresentation.md b/docs/RequiredActionConfigInfoRepresentation.md new file mode 100644 index 0000000..d3e0f27 --- /dev/null +++ b/docs/RequiredActionConfigInfoRepresentation.md @@ -0,0 +1,56 @@ +# RequiredActionConfigInfoRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Properties** | Pointer to [**[]ConfigPropertyRepresentation**](ConfigPropertyRepresentation.md) | | [optional] + +## Methods + +### NewRequiredActionConfigInfoRepresentation + +`func NewRequiredActionConfigInfoRepresentation() *RequiredActionConfigInfoRepresentation` + +NewRequiredActionConfigInfoRepresentation instantiates a new RequiredActionConfigInfoRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRequiredActionConfigInfoRepresentationWithDefaults + +`func NewRequiredActionConfigInfoRepresentationWithDefaults() *RequiredActionConfigInfoRepresentation` + +NewRequiredActionConfigInfoRepresentationWithDefaults instantiates a new RequiredActionConfigInfoRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProperties + +`func (o *RequiredActionConfigInfoRepresentation) GetProperties() []ConfigPropertyRepresentation` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *RequiredActionConfigInfoRepresentation) GetPropertiesOk() (*[]ConfigPropertyRepresentation, 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 *RequiredActionConfigInfoRepresentation) SetProperties(v []ConfigPropertyRepresentation)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *RequiredActionConfigInfoRepresentation) 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/docs/RequiredActionConfigRepresentation.md b/docs/RequiredActionConfigRepresentation.md new file mode 100644 index 0000000..a04af20 --- /dev/null +++ b/docs/RequiredActionConfigRepresentation.md @@ -0,0 +1,56 @@ +# RequiredActionConfigRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewRequiredActionConfigRepresentation + +`func NewRequiredActionConfigRepresentation() *RequiredActionConfigRepresentation` + +NewRequiredActionConfigRepresentation instantiates a new RequiredActionConfigRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRequiredActionConfigRepresentationWithDefaults + +`func NewRequiredActionConfigRepresentationWithDefaults() *RequiredActionConfigRepresentation` + +NewRequiredActionConfigRepresentationWithDefaults instantiates a new RequiredActionConfigRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *RequiredActionConfigRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *RequiredActionConfigRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *RequiredActionConfigRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *RequiredActionConfigRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RequiredActionProviderRepresentation.md b/docs/RequiredActionProviderRepresentation.md new file mode 100644 index 0000000..97c0856 --- /dev/null +++ b/docs/RequiredActionProviderRepresentation.md @@ -0,0 +1,212 @@ +# RequiredActionProviderRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alias** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**DefaultAction** | Pointer to **bool** | | [optional] +**Priority** | Pointer to **int32** | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewRequiredActionProviderRepresentation + +`func NewRequiredActionProviderRepresentation() *RequiredActionProviderRepresentation` + +NewRequiredActionProviderRepresentation instantiates a new RequiredActionProviderRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRequiredActionProviderRepresentationWithDefaults + +`func NewRequiredActionProviderRepresentationWithDefaults() *RequiredActionProviderRepresentation` + +NewRequiredActionProviderRepresentationWithDefaults instantiates a new RequiredActionProviderRepresentation object +This 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 *RequiredActionProviderRepresentation) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *RequiredActionProviderRepresentation) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetName + +`func (o *RequiredActionProviderRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RequiredActionProviderRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProviderId + +`func (o *RequiredActionProviderRepresentation) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *RequiredActionProviderRepresentation) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *RequiredActionProviderRepresentation) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *RequiredActionProviderRepresentation) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetEnabled + +`func (o *RequiredActionProviderRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *RequiredActionProviderRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDefaultAction + +`func (o *RequiredActionProviderRepresentation) GetDefaultAction() bool` + +GetDefaultAction returns the DefaultAction field if non-nil, zero value otherwise. + +### GetDefaultActionOk + +`func (o *RequiredActionProviderRepresentation) GetDefaultActionOk() (*bool, bool)` + +GetDefaultActionOk returns a tuple with the DefaultAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultAction + +`func (o *RequiredActionProviderRepresentation) SetDefaultAction(v bool)` + +SetDefaultAction sets DefaultAction field to given value. + +### HasDefaultAction + +`func (o *RequiredActionProviderRepresentation) HasDefaultAction() bool` + +HasDefaultAction returns a boolean if a field has been set. + +### GetPriority + +`func (o *RequiredActionProviderRepresentation) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *RequiredActionProviderRepresentation) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *RequiredActionProviderRepresentation) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *RequiredActionProviderRepresentation) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetConfig + +`func (o *RequiredActionProviderRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *RequiredActionProviderRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *RequiredActionProviderRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *RequiredActionProviderRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceOwnerRepresentation.md b/docs/ResourceOwnerRepresentation.md new file mode 100644 index 0000000..64eed00 --- /dev/null +++ b/docs/ResourceOwnerRepresentation.md @@ -0,0 +1,82 @@ +# ResourceOwnerRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewResourceOwnerRepresentation + +`func NewResourceOwnerRepresentation() *ResourceOwnerRepresentation` + +NewResourceOwnerRepresentation instantiates a new ResourceOwnerRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceOwnerRepresentationWithDefaults + +`func NewResourceOwnerRepresentationWithDefaults() *ResourceOwnerRepresentation` + +NewResourceOwnerRepresentationWithDefaults instantiates a new ResourceOwnerRepresentation object +This 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 *ResourceOwnerRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ResourceOwnerRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ResourceOwnerRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ResourceOwnerRepresentation) 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/docs/ResourceRepresentation.md b/docs/ResourceRepresentation.md new file mode 100644 index 0000000..a0baa94 --- /dev/null +++ b/docs/ResourceRepresentation.md @@ -0,0 +1,342 @@ +# ResourceRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Uris** | Pointer to **[]string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Scopes** | Pointer to [**[]ScopeRepresentation**](ScopeRepresentation.md) | | [optional] +**IconUri** | Pointer to **string** | | [optional] +**Owner** | Pointer to [**ResourceOwnerRepresentation**](ResourceOwnerRepresentation.md) | | [optional] [readonly] +**OwnerManagedAccess** | Pointer to **bool** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Attributes** | Pointer to **map[string][]string** | | [optional] +**Uri** | Pointer to **string** | | [optional] +**ScopesUma** | Pointer to [**[]ScopeRepresentation**](ScopeRepresentation.md) | | [optional] + +## Methods + +### NewResourceRepresentation + +`func NewResourceRepresentation() *ResourceRepresentation` + +NewResourceRepresentation instantiates a new ResourceRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceRepresentationWithDefaults + +`func NewResourceRepresentationWithDefaults() *ResourceRepresentation` + +NewResourceRepresentationWithDefaults instantiates a new ResourceRepresentation object +This 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 *ResourceRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourceRepresentation) 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 *ResourceRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ResourceRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ResourceRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ResourceRepresentation) 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 *ResourceRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ResourceRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUris + +`func (o *ResourceRepresentation) GetUris() []string` + +GetUris returns the Uris field if non-nil, zero value otherwise. + +### GetUrisOk + +`func (o *ResourceRepresentation) GetUrisOk() (*[]string, bool)` + +GetUrisOk returns a tuple with the Uris field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUris + +`func (o *ResourceRepresentation) SetUris(v []string)` + +SetUris sets Uris field to given value. + +### HasUris + +`func (o *ResourceRepresentation) HasUris() bool` + +HasUris returns a boolean if a field has been set. + +### GetType + +`func (o *ResourceRepresentation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResourceRepresentation) 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 *ResourceRepresentation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ResourceRepresentation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetScopes + +`func (o *ResourceRepresentation) GetScopes() []ScopeRepresentation` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *ResourceRepresentation) GetScopesOk() (*[]ScopeRepresentation, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *ResourceRepresentation) SetScopes(v []ScopeRepresentation)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *ResourceRepresentation) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetIconUri + +`func (o *ResourceRepresentation) GetIconUri() string` + +GetIconUri returns the IconUri field if non-nil, zero value otherwise. + +### GetIconUriOk + +`func (o *ResourceRepresentation) GetIconUriOk() (*string, bool)` + +GetIconUriOk returns a tuple with the IconUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIconUri + +`func (o *ResourceRepresentation) SetIconUri(v string)` + +SetIconUri sets IconUri field to given value. + +### HasIconUri + +`func (o *ResourceRepresentation) HasIconUri() bool` + +HasIconUri returns a boolean if a field has been set. + +### GetOwner + +`func (o *ResourceRepresentation) GetOwner() ResourceOwnerRepresentation` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ResourceRepresentation) GetOwnerOk() (*ResourceOwnerRepresentation, 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 *ResourceRepresentation) SetOwner(v ResourceOwnerRepresentation)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ResourceRepresentation) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetOwnerManagedAccess + +`func (o *ResourceRepresentation) GetOwnerManagedAccess() bool` + +GetOwnerManagedAccess returns the OwnerManagedAccess field if non-nil, zero value otherwise. + +### GetOwnerManagedAccessOk + +`func (o *ResourceRepresentation) GetOwnerManagedAccessOk() (*bool, bool)` + +GetOwnerManagedAccessOk returns a tuple with the OwnerManagedAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerManagedAccess + +`func (o *ResourceRepresentation) SetOwnerManagedAccess(v bool)` + +SetOwnerManagedAccess sets OwnerManagedAccess field to given value. + +### HasOwnerManagedAccess + +`func (o *ResourceRepresentation) HasOwnerManagedAccess() bool` + +HasOwnerManagedAccess returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ResourceRepresentation) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ResourceRepresentation) 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 *ResourceRepresentation) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ResourceRepresentation) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetAttributes + +`func (o *ResourceRepresentation) GetAttributes() map[string][]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ResourceRepresentation) GetAttributesOk() (*map[string][]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ResourceRepresentation) SetAttributes(v map[string][]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *ResourceRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetUri + +`func (o *ResourceRepresentation) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *ResourceRepresentation) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *ResourceRepresentation) SetUri(v string)` + +SetUri sets Uri field to given value. + +### HasUri + +`func (o *ResourceRepresentation) HasUri() bool` + +HasUri returns a boolean if a field has been set. + +### GetScopesUma + +`func (o *ResourceRepresentation) GetScopesUma() []ScopeRepresentation` + +GetScopesUma returns the ScopesUma field if non-nil, zero value otherwise. + +### GetScopesUmaOk + +`func (o *ResourceRepresentation) GetScopesUmaOk() (*[]ScopeRepresentation, bool)` + +GetScopesUmaOk returns a tuple with the ScopesUma field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopesUma + +`func (o *ResourceRepresentation) SetScopesUma(v []ScopeRepresentation)` + +SetScopesUma sets ScopesUma field to given value. + +### HasScopesUma + +`func (o *ResourceRepresentation) HasScopesUma() bool` + +HasScopesUma returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceServerRepresentation.md b/docs/ResourceServerRepresentation.md new file mode 100644 index 0000000..a584aab --- /dev/null +++ b/docs/ResourceServerRepresentation.md @@ -0,0 +1,264 @@ +# ResourceServerRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**AllowRemoteResourceManagement** | Pointer to **bool** | | [optional] +**PolicyEnforcementMode** | Pointer to [**PolicyEnforcementMode**](PolicyEnforcementMode.md) | | [optional] +**Resources** | Pointer to [**[]ResourceRepresentation**](ResourceRepresentation.md) | | [optional] +**Policies** | Pointer to [**[]PolicyRepresentation**](PolicyRepresentation.md) | | [optional] +**Scopes** | Pointer to [**[]ScopeRepresentation**](ScopeRepresentation.md) | | [optional] +**DecisionStrategy** | Pointer to [**DecisionStrategy**](DecisionStrategy.md) | | [optional] + +## Methods + +### NewResourceServerRepresentation + +`func NewResourceServerRepresentation() *ResourceServerRepresentation` + +NewResourceServerRepresentation instantiates a new ResourceServerRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceServerRepresentationWithDefaults + +`func NewResourceServerRepresentationWithDefaults() *ResourceServerRepresentation` + +NewResourceServerRepresentationWithDefaults instantiates a new ResourceServerRepresentation object +This 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 *ResourceServerRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourceServerRepresentation) 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 *ResourceServerRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ResourceServerRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientId + +`func (o *ResourceServerRepresentation) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ResourceServerRepresentation) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ResourceServerRepresentation) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ResourceServerRepresentation) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetName + +`func (o *ResourceServerRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ResourceServerRepresentation) 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 *ResourceServerRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ResourceServerRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAllowRemoteResourceManagement + +`func (o *ResourceServerRepresentation) GetAllowRemoteResourceManagement() bool` + +GetAllowRemoteResourceManagement returns the AllowRemoteResourceManagement field if non-nil, zero value otherwise. + +### GetAllowRemoteResourceManagementOk + +`func (o *ResourceServerRepresentation) GetAllowRemoteResourceManagementOk() (*bool, bool)` + +GetAllowRemoteResourceManagementOk returns a tuple with the AllowRemoteResourceManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowRemoteResourceManagement + +`func (o *ResourceServerRepresentation) SetAllowRemoteResourceManagement(v bool)` + +SetAllowRemoteResourceManagement sets AllowRemoteResourceManagement field to given value. + +### HasAllowRemoteResourceManagement + +`func (o *ResourceServerRepresentation) HasAllowRemoteResourceManagement() bool` + +HasAllowRemoteResourceManagement returns a boolean if a field has been set. + +### GetPolicyEnforcementMode + +`func (o *ResourceServerRepresentation) GetPolicyEnforcementMode() PolicyEnforcementMode` + +GetPolicyEnforcementMode returns the PolicyEnforcementMode field if non-nil, zero value otherwise. + +### GetPolicyEnforcementModeOk + +`func (o *ResourceServerRepresentation) GetPolicyEnforcementModeOk() (*PolicyEnforcementMode, bool)` + +GetPolicyEnforcementModeOk returns a tuple with the PolicyEnforcementMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyEnforcementMode + +`func (o *ResourceServerRepresentation) SetPolicyEnforcementMode(v PolicyEnforcementMode)` + +SetPolicyEnforcementMode sets PolicyEnforcementMode field to given value. + +### HasPolicyEnforcementMode + +`func (o *ResourceServerRepresentation) HasPolicyEnforcementMode() bool` + +HasPolicyEnforcementMode returns a boolean if a field has been set. + +### GetResources + +`func (o *ResourceServerRepresentation) GetResources() []ResourceRepresentation` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ResourceServerRepresentation) GetResourcesOk() (*[]ResourceRepresentation, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ResourceServerRepresentation) SetResources(v []ResourceRepresentation)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ResourceServerRepresentation) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetPolicies + +`func (o *ResourceServerRepresentation) GetPolicies() []PolicyRepresentation` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *ResourceServerRepresentation) GetPoliciesOk() (*[]PolicyRepresentation, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *ResourceServerRepresentation) SetPolicies(v []PolicyRepresentation)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *ResourceServerRepresentation) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + +### GetScopes + +`func (o *ResourceServerRepresentation) GetScopes() []ScopeRepresentation` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *ResourceServerRepresentation) GetScopesOk() (*[]ScopeRepresentation, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *ResourceServerRepresentation) SetScopes(v []ScopeRepresentation)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *ResourceServerRepresentation) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetDecisionStrategy + +`func (o *ResourceServerRepresentation) GetDecisionStrategy() DecisionStrategy` + +GetDecisionStrategy returns the DecisionStrategy field if non-nil, zero value otherwise. + +### GetDecisionStrategyOk + +`func (o *ResourceServerRepresentation) GetDecisionStrategyOk() (*DecisionStrategy, bool)` + +GetDecisionStrategyOk returns a tuple with the DecisionStrategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecisionStrategy + +`func (o *ResourceServerRepresentation) SetDecisionStrategy(v DecisionStrategy)` + +SetDecisionStrategy sets DecisionStrategy field to given value. + +### HasDecisionStrategy + +`func (o *ResourceServerRepresentation) HasDecisionStrategy() bool` + +HasDecisionStrategy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleMapperAPI.md b/docs/RoleMapperAPI.md new file mode 100644 index 0000000..2a031c8 --- /dev/null +++ b/docs/RoleMapperAPI.md @@ -0,0 +1,876 @@ +# \RoleMapperAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmGroupsGroupIdRoleMappingsGet**](RoleMapperAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsGet) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings | Get role mappings +[**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet**](RoleMapperAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/available | Get realm-level roles that can be mapped +[**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet**](RoleMapperAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/composite | Get effective realm-level role mappings This will recurse all composite roles to get the result. +[**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete**](RoleMapperAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete) | **Delete** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm | Delete realm-level role mappings +[**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet**](RoleMapperAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet) | **Get** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm | Get realm-level role mappings +[**AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost**](RoleMapperAPI.md#AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost) | **Post** /admin/realms/{realm}/groups/{group-id}/role-mappings/realm | Add realm-level role mappings to the user +[**AdminRealmsRealmUsersUserIdRoleMappingsGet**](RoleMapperAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsGet) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings | Get role mappings +[**AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet**](RoleMapperAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/realm/available | Get realm-level roles that can be mapped +[**AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet**](RoleMapperAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/realm/composite | Get effective realm-level role mappings This will recurse all composite roles to get the result. +[**AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete**](RoleMapperAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete) | **Delete** /admin/realms/{realm}/users/{user-id}/role-mappings/realm | Delete realm-level role mappings +[**AdminRealmsRealmUsersUserIdRoleMappingsRealmGet**](RoleMapperAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsRealmGet) | **Get** /admin/realms/{realm}/users/{user-id}/role-mappings/realm | Get realm-level role mappings +[**AdminRealmsRealmUsersUserIdRoleMappingsRealmPost**](RoleMapperAPI.md#AdminRealmsRealmUsersUserIdRoleMappingsRealmPost) | **Post** /admin/realms/{realm}/users/{user-id}/role-mappings/realm | Add realm-level role mappings to the user + + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsGet + +> MappingsRepresentation AdminRealmsRealmGroupsGroupIdRoleMappingsGet(ctx, realm, groupId).Execute() + +Get role mappings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsGet(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdRoleMappingsGet`: MappingsRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**MappingsRepresentation**](MappingsRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet + +> []RoleRepresentation AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet(ctx, realm, groupId).Execute() + +Get realm-level roles that can be mapped + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet + +> []RoleRepresentation AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet(ctx, realm, groupId).BriefRepresentation(briefRepresentation).Execute() + +Get effective realm-level role mappings This will recurse all composite roles to get the result. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet(context.Background(), realm, groupId).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete + +> AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete(ctx, realm, groupId).RoleRepresentation(roleRepresentation).Execute() + +Delete realm-level role mappings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete(context.Background(), realm, groupId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet + +> []RoleRepresentation AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet(ctx, realm, groupId).Execute() + +Get realm-level role mappings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet(context.Background(), realm, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost + +> AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost(ctx, realm, groupId).RoleRepresentation(roleRepresentation).Execute() + +Add realm-level role mappings to the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + groupId := "groupId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost(context.Background(), realm, groupId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost``: %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. +**realm** | **string** | realm name (not id!) | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdRoleMappingsGet + +> MappingsRepresentation AdminRealmsRealmUsersUserIdRoleMappingsGet(ctx, realm, userId).Execute() + +Get role mappings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdRoleMappingsGet`: MappingsRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**MappingsRepresentation**](MappingsRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet + +> []RoleRepresentation AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet(ctx, realm, userId).Execute() + +Get realm-level roles that can be mapped + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet + +> []RoleRepresentation AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet(ctx, realm, userId).BriefRepresentation(briefRepresentation).Execute() + +Get effective realm-level role mappings This will recurse all composite roles to get the result. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet(context.Background(), realm, userId).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete + +> AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete(ctx, realm, userId).RoleRepresentation(roleRepresentation).Execute() + +Delete realm-level role mappings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete(context.Background(), realm, userId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdRoleMappingsRealmGet + +> []RoleRepresentation AdminRealmsRealmUsersUserIdRoleMappingsRealmGet(ctx, realm, userId).Execute() + +Get realm-level role mappings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdRoleMappingsRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdRoleMappingsRealmPost + +> AdminRealmsRealmUsersUserIdRoleMappingsRealmPost(ctx, realm, userId).RoleRepresentation(roleRepresentation).Execute() + +Add realm-level role mappings to the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmPost(context.Background(), realm, userId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmPost``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/RoleRepresentation.md b/docs/RoleRepresentation.md new file mode 100644 index 0000000..ce6ce81 --- /dev/null +++ b/docs/RoleRepresentation.md @@ -0,0 +1,264 @@ +# RoleRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ScopeParamRequired** | Pointer to **bool** | | [optional] +**Composite** | Pointer to **bool** | | [optional] +**Composites** | Pointer to [**Composites**](Composites.md) | | [optional] +**ClientRole** | Pointer to **bool** | | [optional] +**ContainerId** | Pointer to **string** | | [optional] +**Attributes** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewRoleRepresentation + +`func NewRoleRepresentation() *RoleRepresentation` + +NewRoleRepresentation instantiates a new RoleRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleRepresentationWithDefaults + +`func NewRoleRepresentationWithDefaults() *RoleRepresentation` + +NewRoleRepresentationWithDefaults instantiates a new RoleRepresentation object +This 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 *RoleRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RoleRepresentation) 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 *RoleRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RoleRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *RoleRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RoleRepresentation) 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 *RoleRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RoleRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *RoleRepresentation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RoleRepresentation) 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 *RoleRepresentation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RoleRepresentation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetScopeParamRequired + +`func (o *RoleRepresentation) GetScopeParamRequired() bool` + +GetScopeParamRequired returns the ScopeParamRequired field if non-nil, zero value otherwise. + +### GetScopeParamRequiredOk + +`func (o *RoleRepresentation) GetScopeParamRequiredOk() (*bool, bool)` + +GetScopeParamRequiredOk returns a tuple with the ScopeParamRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeParamRequired + +`func (o *RoleRepresentation) SetScopeParamRequired(v bool)` + +SetScopeParamRequired sets ScopeParamRequired field to given value. + +### HasScopeParamRequired + +`func (o *RoleRepresentation) HasScopeParamRequired() bool` + +HasScopeParamRequired returns a boolean if a field has been set. + +### GetComposite + +`func (o *RoleRepresentation) GetComposite() bool` + +GetComposite returns the Composite field if non-nil, zero value otherwise. + +### GetCompositeOk + +`func (o *RoleRepresentation) GetCompositeOk() (*bool, bool)` + +GetCompositeOk returns a tuple with the Composite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComposite + +`func (o *RoleRepresentation) SetComposite(v bool)` + +SetComposite sets Composite field to given value. + +### HasComposite + +`func (o *RoleRepresentation) HasComposite() bool` + +HasComposite returns a boolean if a field has been set. + +### GetComposites + +`func (o *RoleRepresentation) GetComposites() Composites` + +GetComposites returns the Composites field if non-nil, zero value otherwise. + +### GetCompositesOk + +`func (o *RoleRepresentation) GetCompositesOk() (*Composites, bool)` + +GetCompositesOk returns a tuple with the Composites field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComposites + +`func (o *RoleRepresentation) SetComposites(v Composites)` + +SetComposites sets Composites field to given value. + +### HasComposites + +`func (o *RoleRepresentation) HasComposites() bool` + +HasComposites returns a boolean if a field has been set. + +### GetClientRole + +`func (o *RoleRepresentation) GetClientRole() bool` + +GetClientRole returns the ClientRole field if non-nil, zero value otherwise. + +### GetClientRoleOk + +`func (o *RoleRepresentation) GetClientRoleOk() (*bool, bool)` + +GetClientRoleOk returns a tuple with the ClientRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientRole + +`func (o *RoleRepresentation) SetClientRole(v bool)` + +SetClientRole sets ClientRole field to given value. + +### HasClientRole + +`func (o *RoleRepresentation) HasClientRole() bool` + +HasClientRole returns a boolean if a field has been set. + +### GetContainerId + +`func (o *RoleRepresentation) GetContainerId() string` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *RoleRepresentation) GetContainerIdOk() (*string, 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 *RoleRepresentation) SetContainerId(v string)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *RoleRepresentation) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetAttributes + +`func (o *RoleRepresentation) GetAttributes() map[string][]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *RoleRepresentation) GetAttributesOk() (*map[string][]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *RoleRepresentation) SetAttributes(v map[string][]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *RoleRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RolesAPI.md b/docs/RolesAPI.md new file mode 100644 index 0000000..ba85ff1 --- /dev/null +++ b/docs/RolesAPI.md @@ -0,0 +1,2100 @@ +# \RolesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientsClientUuidRolesGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles | Get all roles for the realm or client +[**AdminRealmsRealmClientsClientUuidRolesPost**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/roles | Create a new role for the realm or client +[**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-in-composite-uuid} | Get client-level roles for the client that are in the role's composite +[**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites | Remove roles from the role's composite +[**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites | Get composites of the role +[**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites | Add a composite to the role +[**AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm | Get realm-level roles of the role's composite +[**AdminRealmsRealmClientsClientUuidRolesRoleNameDelete**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name} | Delete a role by name +[**AdminRealmsRealmClientsClientUuidRolesRoleNameGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name} | Get a role by name +[**AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups | Returns a stream of groups that have the specified role name +[**AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmClientsClientUuidRolesRoleNamePut**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNamePut) | **Put** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name} | Update a role by name +[**AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet**](RolesAPI.md#AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users | Returns a stream of users that have the specified role name. +[**AdminRealmsRealmRolesGet**](RolesAPI.md#AdminRealmsRealmRolesGet) | **Get** /admin/realms/{realm}/roles | Get all roles for the realm or client +[**AdminRealmsRealmRolesPost**](RolesAPI.md#AdminRealmsRealmRolesPost) | **Post** /admin/realms/{realm}/roles | Create a new role for the realm or client +[**AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet**](RolesAPI.md#AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet) | **Get** /admin/realms/{realm}/roles/{role-name}/composites/clients/{client-uuid} | Get client-level roles for the client that are in the role's composite +[**AdminRealmsRealmRolesRoleNameCompositesDelete**](RolesAPI.md#AdminRealmsRealmRolesRoleNameCompositesDelete) | **Delete** /admin/realms/{realm}/roles/{role-name}/composites | Remove roles from the role's composite +[**AdminRealmsRealmRolesRoleNameCompositesGet**](RolesAPI.md#AdminRealmsRealmRolesRoleNameCompositesGet) | **Get** /admin/realms/{realm}/roles/{role-name}/composites | Get composites of the role +[**AdminRealmsRealmRolesRoleNameCompositesPost**](RolesAPI.md#AdminRealmsRealmRolesRoleNameCompositesPost) | **Post** /admin/realms/{realm}/roles/{role-name}/composites | Add a composite to the role +[**AdminRealmsRealmRolesRoleNameCompositesRealmGet**](RolesAPI.md#AdminRealmsRealmRolesRoleNameCompositesRealmGet) | **Get** /admin/realms/{realm}/roles/{role-name}/composites/realm | Get realm-level roles of the role's composite +[**AdminRealmsRealmRolesRoleNameDelete**](RolesAPI.md#AdminRealmsRealmRolesRoleNameDelete) | **Delete** /admin/realms/{realm}/roles/{role-name} | Delete a role by name +[**AdminRealmsRealmRolesRoleNameGet**](RolesAPI.md#AdminRealmsRealmRolesRoleNameGet) | **Get** /admin/realms/{realm}/roles/{role-name} | Get a role by name +[**AdminRealmsRealmRolesRoleNameGroupsGet**](RolesAPI.md#AdminRealmsRealmRolesRoleNameGroupsGet) | **Get** /admin/realms/{realm}/roles/{role-name}/groups | Returns a stream of groups that have the specified role name +[**AdminRealmsRealmRolesRoleNameManagementPermissionsGet**](RolesAPI.md#AdminRealmsRealmRolesRoleNameManagementPermissionsGet) | **Get** /admin/realms/{realm}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmRolesRoleNameManagementPermissionsPut**](RolesAPI.md#AdminRealmsRealmRolesRoleNameManagementPermissionsPut) | **Put** /admin/realms/{realm}/roles/{role-name}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmRolesRoleNamePut**](RolesAPI.md#AdminRealmsRealmRolesRoleNamePut) | **Put** /admin/realms/{realm}/roles/{role-name} | Update a role by name +[**AdminRealmsRealmRolesRoleNameUsersGet**](RolesAPI.md#AdminRealmsRealmRolesRoleNameUsersGet) | **Get** /admin/realms/{realm}/roles/{role-name}/users | Returns a stream of users that have the specified role name. + + + +## AdminRealmsRealmClientsClientUuidRolesGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidRolesGet(ctx, realm, clientUuid).BriefRepresentation(briefRepresentation).First(first).Max(max).Search(search).Execute() + +Get all roles for the realm or client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + briefRepresentation := true // bool | (optional) (default to true) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + search := "search_example" // string | (optional) (default to "") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesGet(context.Background(), realm, clientUuid).BriefRepresentation(briefRepresentation).First(first).Max(max).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | | [default to true] + **first** | **int32** | | + **max** | **int32** | | + **search** | **string** | | [default to ""] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesPost + +> AdminRealmsRealmClientsClientUuidRolesPost(ctx, realm, clientUuid).RoleRepresentation(roleRepresentation).Execute() + +Create a new role for the realm or client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleRepresentation := *openapiclient.NewRoleRepresentation() // RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesPost(context.Background(), realm, clientUuid).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet(ctx, realm, clientUuid, roleName, clientInCompositeUuid).Execute() + +Get client-level roles for the client that are in the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | + roleName := "roleName_example" // string | role's name (not id!) + clientInCompositeUuid := "clientInCompositeUuid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet(context.Background(), realm, clientUuid, roleName, clientInCompositeUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | | +**roleName** | **string** | role's name (not id!) | +**clientInCompositeUuid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete + +> AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete(ctx, realm, clientUuid, roleName).RoleRepresentation(roleRepresentation).Execute() + +Remove roles from the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | role's name (not id!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete(context.Background(), realm, clientUuid, roleName).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet(ctx, realm, clientUuid, roleName).Execute() + +Get composites of the role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet(context.Background(), realm, clientUuid, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost + +> AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost(ctx, realm, clientUuid, roleName).RoleRepresentation(roleRepresentation).Execute() + +Add a composite to the role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | role's name (not id!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost(context.Background(), realm, clientUuid, roleName).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet(ctx, realm, clientUuid, roleName).Execute() + +Get realm-level roles of the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet(context.Background(), realm, clientUuid, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameDelete + +> AdminRealmsRealmClientsClientUuidRolesRoleNameDelete(ctx, realm, clientUuid, roleName).Execute() + +Delete a role by name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameDelete(context.Background(), realm, clientUuid, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameGet + +> RoleRepresentation AdminRealmsRealmClientsClientUuidRolesRoleNameGet(ctx, realm, clientUuid, roleName).Execute() + +Get a role by name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGet(context.Background(), realm, clientUuid, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameGet`: RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet + +> []GroupRepresentation AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet(ctx, realm, clientUuid, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + +Returns a stream of groups that have the specified role name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | the role name. + briefRepresentation := true // bool | if false, return a full representation of the {@code GroupRepresentation} objects. (optional) (default to true) + first := int32(56) // int32 | first result to return. Ignored if negative or {@code null}. (optional) + max := int32(56) // int32 | maximum number of results to return. Ignored if negative or {@code null}. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet(context.Background(), realm, clientUuid, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet`: []GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | the role name. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **briefRepresentation** | **bool** | if false, return a full representation of the {@code GroupRepresentation} objects. | [default to true] + **first** | **int32** | first result to return. Ignored if negative or {@code null}. | + **max** | **int32** | maximum number of results to return. Ignored if negative or {@code null}. | + +### Return type + +[**[]GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet + +> ManagementPermissionReference AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet(ctx, realm, clientUuid, roleName).Execute() + +Return object stating whether role Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet(context.Background(), realm, clientUuid, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut + +> ManagementPermissionReference AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut(ctx, realm, clientUuid, roleName).ManagementPermissionReference(managementPermissionReference).Execute() + +Return object stating whether role Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | + managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut(context.Background(), realm, clientUuid, roleName).ManagementPermissionReference(managementPermissionReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **managementPermissionReference** | [**ManagementPermissionReference**](ManagementPermissionReference.md) | | + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNamePut + +> AdminRealmsRealmClientsClientUuidRolesRoleNamePut(ctx, realm, clientUuid, roleName).RoleRepresentation(roleRepresentation).Execute() + +Update a role by name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | role's name (not id!) + roleRepresentation := *openapiclient.NewRoleRepresentation() // RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNamePut(context.Background(), realm, clientUuid, roleName).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNamePut``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet + +> []UserRepresentation AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet(ctx, realm, clientUuid, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + +Returns a stream of users that have the specified role name. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleName := "roleName_example" // string | the role name. + briefRepresentation := true // bool | Boolean which defines whether brief representations are returned (default: false) (optional) + first := int32(56) // int32 | first result to return. Ignored if negative or {@code null}. (optional) + max := int32(56) // int32 | maximum number of results to return. Ignored if negative or {@code null}. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet(context.Background(), realm, clientUuid, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet`: []UserRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**roleName** | **string** | the role name. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **briefRepresentation** | **bool** | Boolean which defines whether brief representations are returned (default: false) | + **first** | **int32** | first result to return. Ignored if negative or {@code null}. | + **max** | **int32** | maximum number of results to return. Ignored if negative or {@code null}. | + +### Return type + +[**[]UserRepresentation**](UserRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesGet + +> []RoleRepresentation AdminRealmsRealmRolesGet(ctx, realm).BriefRepresentation(briefRepresentation).First(first).Max(max).Search(search).Execute() + +Get all roles for the realm or client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + briefRepresentation := true // bool | (optional) (default to true) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + search := "search_example" // string | (optional) (default to "") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesGet(context.Background(), realm).BriefRepresentation(briefRepresentation).First(first).Max(max).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **briefRepresentation** | **bool** | | [default to true] + **first** | **int32** | | + **max** | **int32** | | + **search** | **string** | | [default to ""] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesPost + +> AdminRealmsRealmRolesPost(ctx, realm).RoleRepresentation(roleRepresentation).Execute() + +Create a new role for the realm or client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleRepresentation := *openapiclient.NewRoleRepresentation() // RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmRolesPost(context.Background(), realm).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **roleRepresentation** | [**RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet + +> []RoleRepresentation AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet(ctx, realm, clientUuid, roleName).Execute() + +Get client-level roles for the client that are in the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet(context.Background(), realm, clientUuid, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesRoleNameCompositesDelete + +> AdminRealmsRealmRolesRoleNameCompositesDelete(ctx, realm, roleName).RoleRepresentation(roleRepresentation).Execute() + +Remove roles from the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | role's name (not id!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesDelete(context.Background(), realm, roleName).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesDelete``: %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. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesRoleNameCompositesGet + +> []RoleRepresentation AdminRealmsRealmRolesRoleNameCompositesGet(ctx, realm, roleName).Execute() + +Get composites of the role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesGet(context.Background(), realm, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameCompositesGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameCompositesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesRoleNameCompositesPost + +> AdminRealmsRealmRolesRoleNameCompositesPost(ctx, realm, roleName).RoleRepresentation(roleRepresentation).Execute() + +Add a composite to the role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | role's name (not id!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesPost(context.Background(), realm, roleName).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesPost``: %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. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameCompositesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesRoleNameCompositesRealmGet + +> []RoleRepresentation AdminRealmsRealmRolesRoleNameCompositesRealmGet(ctx, realm, roleName).Execute() + +Get realm-level roles of the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesRealmGet(context.Background(), realm, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameCompositesRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameCompositesRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesRoleNameDelete + +> AdminRealmsRealmRolesRoleNameDelete(ctx, realm, roleName).Execute() + +Delete a role by name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameDelete(context.Background(), realm, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameDelete``: %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. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesRoleNameGet + +> RoleRepresentation AdminRealmsRealmRolesRoleNameGet(ctx, realm, roleName).Execute() + +Get a role by name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | role's name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameGet(context.Background(), realm, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameGet`: RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesRoleNameGroupsGet + +> []GroupRepresentation AdminRealmsRealmRolesRoleNameGroupsGet(ctx, realm, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + +Returns a stream of groups that have the specified role name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | the role name. + briefRepresentation := true // bool | if false, return a full representation of the {@code GroupRepresentation} objects. (optional) (default to true) + first := int32(56) // int32 | first result to return. Ignored if negative or {@code null}. (optional) + max := int32(56) // int32 | maximum number of results to return. Ignored if negative or {@code null}. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameGroupsGet(context.Background(), realm, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameGroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameGroupsGet`: []GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameGroupsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | the role name. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameGroupsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | if false, return a full representation of the {@code GroupRepresentation} objects. | [default to true] + **first** | **int32** | first result to return. Ignored if negative or {@code null}. | + **max** | **int32** | maximum number of results to return. Ignored if negative or {@code null}. | + +### Return type + +[**[]GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesRoleNameManagementPermissionsGet + +> ManagementPermissionReference AdminRealmsRealmRolesRoleNameManagementPermissionsGet(ctx, realm, roleName).Execute() + +Return object stating whether role Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsGet(context.Background(), realm, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameManagementPermissionsGet`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesRoleNameManagementPermissionsPut + +> ManagementPermissionReference AdminRealmsRealmRolesRoleNameManagementPermissionsPut(ctx, realm, roleName).ManagementPermissionReference(managementPermissionReference).Execute() + +Return object stating whether role Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | + managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsPut(context.Background(), realm, roleName).ManagementPermissionReference(managementPermissionReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameManagementPermissionsPut`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **managementPermissionReference** | [**ManagementPermissionReference**](ManagementPermissionReference.md) | | + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesRoleNamePut + +> AdminRealmsRealmRolesRoleNamePut(ctx, realm, roleName).RoleRepresentation(roleRepresentation).Execute() + +Update a role by name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | role's name (not id!) + roleRepresentation := *openapiclient.NewRoleRepresentation() // RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNamePut(context.Background(), realm, roleName).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNamePut``: %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. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | role's name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNamePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesRoleNameUsersGet + +> []UserRepresentation AdminRealmsRealmRolesRoleNameUsersGet(ctx, realm, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + +Returns a stream of users that have the specified role name. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleName := "roleName_example" // string | the role name. + briefRepresentation := true // bool | Boolean which defines whether brief representations are returned (default: false) (optional) + first := int32(56) // int32 | first result to return. Ignored if negative or {@code null}. (optional) + max := int32(56) // int32 | maximum number of results to return. Ignored if negative or {@code null}. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameUsersGet(context.Background(), realm, roleName).BriefRepresentation(briefRepresentation).First(first).Max(max).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.AdminRealmsRealmRolesRoleNameUsersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesRoleNameUsersGet`: []UserRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.AdminRealmsRealmRolesRoleNameUsersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleName** | **string** | the role name. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesRoleNameUsersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | Boolean which defines whether brief representations are returned (default: false) | + **first** | **int32** | first result to return. Ignored if negative or {@code null}. | + **max** | **int32** | maximum number of results to return. Ignored if negative or {@code null}. | + +### Return type + +[**[]UserRepresentation**](UserRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/RolesByIDAPI.md b/docs/RolesByIDAPI.md new file mode 100644 index 0000000..c37a8e8 --- /dev/null +++ b/docs/RolesByIDAPI.md @@ -0,0 +1,737 @@ +# \RolesByIDAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid} | Get client-level roles for the client that are in the role's composite +[**AdminRealmsRealmRolesByIdRoleIdCompositesDelete**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdCompositesDelete) | **Delete** /admin/realms/{realm}/roles-by-id/{role-id}/composites | Remove a set of roles from the role's composite +[**AdminRealmsRealmRolesByIdRoleIdCompositesGet**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdCompositesGet) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/composites | Get role's children Returns a set of role's children provided the role is a composite. +[**AdminRealmsRealmRolesByIdRoleIdCompositesPost**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdCompositesPost) | **Post** /admin/realms/{realm}/roles-by-id/{role-id}/composites | Make the role a composite role by associating some child roles +[**AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/composites/realm | Get realm-level roles that are in the role's composite +[**AdminRealmsRealmRolesByIdRoleIdDelete**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdDelete) | **Delete** /admin/realms/{realm}/roles-by-id/{role-id} | Delete the role +[**AdminRealmsRealmRolesByIdRoleIdGet**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdGet) | **Get** /admin/realms/{realm}/roles-by-id/{role-id} | Get a specific role's representation +[**AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet) | **Get** /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut) | **Put** /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions | Return object stating whether role Authorization permissions have been initialized or not and a reference +[**AdminRealmsRealmRolesByIdRoleIdPut**](RolesByIDAPI.md#AdminRealmsRealmRolesByIdRoleIdPut) | **Put** /admin/realms/{realm}/roles-by-id/{role-id} | Update the role + + + +## AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet + +> []RoleRepresentation AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet(ctx, realm, clientUuid, roleId).Execute() + +Get client-level roles for the client that are in the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | + roleId := "roleId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet(context.Background(), realm, clientUuid, roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | | +**roleId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesByIdRoleIdCompositesDelete + +> AdminRealmsRealmRolesByIdRoleIdCompositesDelete(ctx, realm, roleId).RoleRepresentation(roleRepresentation).Execute() + +Remove a set of roles from the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | Role id + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesDelete(context.Background(), realm, roleId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesDelete``: %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. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | Role id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesByIdRoleIdCompositesGet + +> []RoleRepresentation AdminRealmsRealmRolesByIdRoleIdCompositesGet(ctx, realm, roleId).First(first).Max(max).Search(search).Execute() + +Get role's children Returns a set of role's children provided the role is a composite. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + search := "search_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesGet(context.Background(), realm, roleId).First(first).Max(max).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesByIdRoleIdCompositesGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **first** | **int32** | | + **max** | **int32** | | + **search** | **string** | | + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesByIdRoleIdCompositesPost + +> AdminRealmsRealmRolesByIdRoleIdCompositesPost(ctx, realm, roleId).RoleRepresentation(roleRepresentation).Execute() + +Make the role a composite role by associating some child roles + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesPost(context.Background(), realm, roleId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesPost``: %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. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet + +> []RoleRepresentation AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet(ctx, realm, roleId).Execute() + +Get realm-level roles that are in the role's composite + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet(context.Background(), realm, roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesByIdRoleIdDelete + +> AdminRealmsRealmRolesByIdRoleIdDelete(ctx, realm, roleId).Execute() + +Delete the role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | id of role + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdDelete(context.Background(), realm, roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | id of role | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmRolesByIdRoleIdGet + +> RoleRepresentation AdminRealmsRealmRolesByIdRoleIdGet(ctx, realm, roleId).Execute() + +Get a specific role's representation + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | id of role + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdGet(context.Background(), realm, roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesByIdRoleIdGet`: RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | id of role | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet + +> ManagementPermissionReference AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet(ctx, realm, roleId).Execute() + +Return object stating whether role Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet(context.Background(), realm, roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut + +> ManagementPermissionReference AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut(ctx, realm, roleId).ManagementPermissionReference(managementPermissionReference).Execute() + +Return object stating whether role Authorization permissions have been initialized or not and a reference + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | + managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut(context.Background(), realm, roleId).ManagementPermissionReference(managementPermissionReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut`: ManagementPermissionReference + fmt.Fprintf(os.Stdout, "Response from `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **managementPermissionReference** | [**ManagementPermissionReference**](ManagementPermissionReference.md) | | + +### Return type + +[**ManagementPermissionReference**](ManagementPermissionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmRolesByIdRoleIdPut + +> AdminRealmsRealmRolesByIdRoleIdPut(ctx, realm, roleId).RoleRepresentation(roleRepresentation).Execute() + +Update the role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + roleId := "roleId_example" // string | id of role + roleRepresentation := *openapiclient.NewRoleRepresentation() // RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdPut(context.Background(), realm, roleId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**roleId** | **string** | id of role | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmRolesByIdRoleIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/RolesRepresentation.md b/docs/RolesRepresentation.md new file mode 100644 index 0000000..a4a9541 --- /dev/null +++ b/docs/RolesRepresentation.md @@ -0,0 +1,108 @@ +# RolesRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Realm** | Pointer to [**[]RoleRepresentation**](RoleRepresentation.md) | | [optional] +**Client** | Pointer to [**map[string][]RoleRepresentation**](array.md) | | [optional] +**Application** | Pointer to [**map[string][]RoleRepresentation**](array.md) | | [optional] + +## Methods + +### NewRolesRepresentation + +`func NewRolesRepresentation() *RolesRepresentation` + +NewRolesRepresentation instantiates a new RolesRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolesRepresentationWithDefaults + +`func NewRolesRepresentationWithDefaults() *RolesRepresentation` + +NewRolesRepresentationWithDefaults instantiates a new RolesRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRealm + +`func (o *RolesRepresentation) GetRealm() []RoleRepresentation` + +GetRealm returns the Realm field if non-nil, zero value otherwise. + +### GetRealmOk + +`func (o *RolesRepresentation) GetRealmOk() (*[]RoleRepresentation, bool)` + +GetRealmOk returns a tuple with the Realm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealm + +`func (o *RolesRepresentation) SetRealm(v []RoleRepresentation)` + +SetRealm sets Realm field to given value. + +### HasRealm + +`func (o *RolesRepresentation) HasRealm() bool` + +HasRealm returns a boolean if a field has been set. + +### GetClient + +`func (o *RolesRepresentation) GetClient() map[string][]RoleRepresentation` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *RolesRepresentation) GetClientOk() (*map[string][]RoleRepresentation, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *RolesRepresentation) SetClient(v map[string][]RoleRepresentation)` + +SetClient sets Client field to given value. + +### HasClient + +`func (o *RolesRepresentation) HasClient() bool` + +HasClient returns a boolean if a field has been set. + +### GetApplication + +`func (o *RolesRepresentation) GetApplication() map[string][]RoleRepresentation` + +GetApplication returns the Application field if non-nil, zero value otherwise. + +### GetApplicationOk + +`func (o *RolesRepresentation) GetApplicationOk() (*map[string][]RoleRepresentation, bool)` + +GetApplicationOk returns a tuple with the Application field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplication + +`func (o *RolesRepresentation) SetApplication(v map[string][]RoleRepresentation)` + +SetApplication sets Application field to given value. + +### HasApplication + +`func (o *RolesRepresentation) HasApplication() bool` + +HasApplication returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ScopeEnforcementMode.md b/docs/ScopeEnforcementMode.md new file mode 100644 index 0000000..494854c --- /dev/null +++ b/docs/ScopeEnforcementMode.md @@ -0,0 +1,15 @@ +# ScopeEnforcementMode + +## Enum + + +* `ALL` (value: `"ALL"`) + +* `ANY` (value: `"ANY"`) + +* `DISABLED` (value: `"DISABLED"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ScopeMappingRepresentation.md b/docs/ScopeMappingRepresentation.md new file mode 100644 index 0000000..12fcb50 --- /dev/null +++ b/docs/ScopeMappingRepresentation.md @@ -0,0 +1,160 @@ +# ScopeMappingRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to **string** | | [optional] +**Client** | Pointer to **string** | | [optional] +**ClientTemplate** | Pointer to **string** | | [optional] +**ClientScope** | Pointer to **string** | | [optional] +**Roles** | Pointer to **[]string** | | [optional] + +## Methods + +### NewScopeMappingRepresentation + +`func NewScopeMappingRepresentation() *ScopeMappingRepresentation` + +NewScopeMappingRepresentation instantiates a new ScopeMappingRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScopeMappingRepresentationWithDefaults + +`func NewScopeMappingRepresentationWithDefaults() *ScopeMappingRepresentation` + +NewScopeMappingRepresentationWithDefaults instantiates a new ScopeMappingRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *ScopeMappingRepresentation) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ScopeMappingRepresentation) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ScopeMappingRepresentation) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ScopeMappingRepresentation) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetClient + +`func (o *ScopeMappingRepresentation) GetClient() string` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *ScopeMappingRepresentation) GetClientOk() (*string, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *ScopeMappingRepresentation) SetClient(v string)` + +SetClient sets Client field to given value. + +### HasClient + +`func (o *ScopeMappingRepresentation) HasClient() bool` + +HasClient returns a boolean if a field has been set. + +### GetClientTemplate + +`func (o *ScopeMappingRepresentation) GetClientTemplate() string` + +GetClientTemplate returns the ClientTemplate field if non-nil, zero value otherwise. + +### GetClientTemplateOk + +`func (o *ScopeMappingRepresentation) GetClientTemplateOk() (*string, bool)` + +GetClientTemplateOk returns a tuple with the ClientTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTemplate + +`func (o *ScopeMappingRepresentation) SetClientTemplate(v string)` + +SetClientTemplate sets ClientTemplate field to given value. + +### HasClientTemplate + +`func (o *ScopeMappingRepresentation) HasClientTemplate() bool` + +HasClientTemplate returns a boolean if a field has been set. + +### GetClientScope + +`func (o *ScopeMappingRepresentation) GetClientScope() string` + +GetClientScope returns the ClientScope field if non-nil, zero value otherwise. + +### GetClientScopeOk + +`func (o *ScopeMappingRepresentation) GetClientScopeOk() (*string, bool)` + +GetClientScopeOk returns a tuple with the ClientScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientScope + +`func (o *ScopeMappingRepresentation) SetClientScope(v string)` + +SetClientScope sets ClientScope field to given value. + +### HasClientScope + +`func (o *ScopeMappingRepresentation) HasClientScope() bool` + +HasClientScope returns a boolean if a field has been set. + +### GetRoles + +`func (o *ScopeMappingRepresentation) GetRoles() []string` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *ScopeMappingRepresentation) GetRolesOk() (*[]string, 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 *ScopeMappingRepresentation) SetRoles(v []string)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *ScopeMappingRepresentation) 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/docs/ScopeMappingsAPI.md b/docs/ScopeMappingsAPI.md new file mode 100644 index 0000000..60b9f30 --- /dev/null +++ b/docs/ScopeMappingsAPI.md @@ -0,0 +1,2447 @@ +# \ScopeMappingsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/available | The available client-level roles Returns the roles for the client that can be associated with the client's scope +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/composite | Get effective client roles Returns the roles for the client that are associated with the client's scope. +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client} | Remove client-level roles from the client's scope. +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client} | Get the roles associated with a client's scope Returns roles for the client. +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client} | Add client-level roles to the client's scope +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings | Get all scope mappings for the client +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/available | Get realm-level roles that are available to attach to this client's scope +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/composite | Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete) | **Delete** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm | Remove a set of realm-level roles from the client's scope +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm | Get realm-level roles associated with the client's scope +[**AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost**](ScopeMappingsAPI.md#AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm | Add a set of realm-level roles to the client's scope +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/available | The available client-level roles Returns the roles for the client that can be associated with the client's scope +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/composite | Get effective client roles Returns the roles for the client that are associated with the client's scope. +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client} | Remove client-level roles from the client's scope. +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client} | Get the roles associated with a client's scope Returns roles for the client. +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client} | Add client-level roles to the client's scope +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings | Get all scope mappings for the client +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/available | Get realm-level roles that are available to attach to this client's scope +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/composite | Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete) | **Delete** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm | Remove a set of realm-level roles from the client's scope +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet) | **Get** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm | Get realm-level roles associated with the client's scope +[**AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost**](ScopeMappingsAPI.md#AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost) | **Post** /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm | Add a set of realm-level roles to the client's scope +[**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/available | The available client-level roles Returns the roles for the client that can be associated with the client's scope +[**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/composite | Get effective client roles Returns the roles for the client that are associated with the client's scope. +[**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client} | Remove client-level roles from the client's scope. +[**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client} | Get the roles associated with a client's scope Returns roles for the client. +[**AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client} | Add client-level roles to the client's scope +[**AdminRealmsRealmClientsClientUuidScopeMappingsGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings | Get all scope mappings for the client +[**AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/available | Get realm-level roles that are available to attach to this client's scope +[**AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/composite | Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. +[**AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete) | **Delete** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm | Remove a set of realm-level roles from the client's scope +[**AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet) | **Get** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm | Get realm-level roles associated with the client's scope +[**AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost**](ScopeMappingsAPI.md#AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost) | **Post** /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm | Add a set of realm-level roles to the client's scope + + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet + +> []RoleRepresentation AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet(ctx, realm, clientScopeId, client).Execute() + +The available client-level roles Returns the roles for the client that can be associated with the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet(context.Background(), realm, clientScopeId, client).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet + +> []RoleRepresentation AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet(ctx, realm, clientScopeId, client).BriefRepresentation(briefRepresentation).Execute() + +Get effective client roles Returns the roles for the client that are associated with the client's scope. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet(context.Background(), realm, clientScopeId, client).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete + +> AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete(ctx, realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + +Remove client-level roles from the client's scope. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete(context.Background(), realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet + +> []RoleRepresentation AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet(ctx, realm, clientScopeId, client).Execute() + +Get the roles associated with a client's scope Returns roles for the client. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet(context.Background(), realm, clientScopeId, client).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost + +> AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost(ctx, realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + +Add client-level roles to the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost(context.Background(), realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet + +> MappingsRepresentation AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet(ctx, realm, clientScopeId).Execute() + +Get all scope mappings for the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet`: MappingsRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**MappingsRepresentation**](MappingsRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet + +> []RoleRepresentation AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet(ctx, realm, clientScopeId).Execute() + +Get realm-level roles that are available to attach to this client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet + +> []RoleRepresentation AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet(ctx, realm, clientScopeId).BriefRepresentation(briefRepresentation).Execute() + +Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet(context.Background(), realm, clientScopeId).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete + +> AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete(ctx, realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + +Remove a set of realm-level roles from the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete(context.Background(), realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet + +> []RoleRepresentation AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet(ctx, realm, clientScopeId).Execute() + +Get realm-level roles associated with the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost + +> AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost(ctx, realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + +Add a set of realm-level roles to the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost(context.Background(), realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet + +> []RoleRepresentation AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet(ctx, realm, clientScopeId, client).Execute() + +The available client-level roles Returns the roles for the client that can be associated with the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet(context.Background(), realm, clientScopeId, client).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet + +> []RoleRepresentation AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet(ctx, realm, clientScopeId, client).BriefRepresentation(briefRepresentation).Execute() + +Get effective client roles Returns the roles for the client that are associated with the client's scope. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet(context.Background(), realm, clientScopeId, client).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete + +> AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete(ctx, realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + +Remove client-level roles from the client's scope. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete(context.Background(), realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet + +> []RoleRepresentation AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet(ctx, realm, clientScopeId, client).Execute() + +Get the roles associated with a client's scope Returns roles for the client. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet(context.Background(), realm, clientScopeId, client).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost + +> AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost(ctx, realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + +Add client-level roles to the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + client := "client_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost(context.Background(), realm, clientScopeId, client).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet + +> MappingsRepresentation AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet(ctx, realm, clientScopeId).Execute() + +Get all scope mappings for the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet`: MappingsRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**MappingsRepresentation**](MappingsRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet + +> []RoleRepresentation AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet(ctx, realm, clientScopeId).Execute() + +Get realm-level roles that are available to attach to this client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet + +> []RoleRepresentation AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet(ctx, realm, clientScopeId).BriefRepresentation(briefRepresentation).Execute() + +Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet(context.Background(), realm, clientScopeId).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete + +> AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete(ctx, realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + +Remove a set of realm-level roles from the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete(context.Background(), realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet + +> []RoleRepresentation AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet(ctx, realm, clientScopeId).Execute() + +Get realm-level roles associated with the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet(context.Background(), realm, clientScopeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost + +> AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost(ctx, realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + +Add a set of realm-level roles to the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientScopeId := "clientScopeId_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost(context.Background(), realm, clientScopeId).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientScopeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet(ctx, realm, clientUuid, client).Execute() + +The available client-level roles Returns the roles for the client that can be associated with the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + client := "client_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet(context.Background(), realm, clientUuid, client).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet(ctx, realm, clientUuid, client).BriefRepresentation(briefRepresentation).Execute() + +Get effective client roles Returns the roles for the client that are associated with the client's scope. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + client := "client_example" // string | + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet(context.Background(), realm, clientUuid, client).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete + +> AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete(ctx, realm, clientUuid, client).RoleRepresentation(roleRepresentation).Execute() + +Remove client-level roles from the client's scope. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + client := "client_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete(context.Background(), realm, clientUuid, client).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet(ctx, realm, clientUuid, client).Execute() + +Get the roles associated with a client's scope Returns roles for the client. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + client := "client_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet(context.Background(), realm, clientUuid, client).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost + +> AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost(ctx, realm, clientUuid, client).RoleRepresentation(roleRepresentation).Execute() + +Add client-level roles to the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + client := "client_example" // string | + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost(context.Background(), realm, clientUuid, client).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | +**client** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsGet + +> MappingsRepresentation AdminRealmsRealmClientsClientUuidScopeMappingsGet(ctx, realm, clientUuid).Execute() + +Get all scope mappings for the client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidScopeMappingsGet`: MappingsRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**MappingsRepresentation**](MappingsRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet(ctx, realm, clientUuid).Execute() + +Get realm-level roles that are available to attach to this client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet(ctx, realm, clientUuid).BriefRepresentation(briefRepresentation).Execute() + +Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + briefRepresentation := true // bool | if false, return roles with their attributes (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet(context.Background(), realm, clientUuid).BriefRepresentation(briefRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | if false, return roles with their attributes | [default to true] + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete + +> AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete(ctx, realm, clientUuid).RoleRepresentation(roleRepresentation).Execute() + +Remove a set of realm-level roles from the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete(context.Background(), realm, clientUuid).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet + +> []RoleRepresentation AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet(ctx, realm, clientUuid).Execute() + +Get realm-level roles associated with the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet(context.Background(), realm, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet`: []RoleRepresentation + fmt.Fprintf(os.Stdout, "Response from `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RoleRepresentation**](RoleRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost + +> AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost(ctx, realm, clientUuid).RoleRepresentation(roleRepresentation).Execute() + +Add a set of realm-level roles to the client's scope + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + clientUuid := "clientUuid_example" // string | id of client (not client-id!) + roleRepresentation := []openapiclient.RoleRepresentation{*openapiclient.NewRoleRepresentation()} // []RoleRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost(context.Background(), realm, clientUuid).RoleRepresentation(roleRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost``: %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. +**realm** | **string** | realm name (not id!) | +**clientUuid** | **string** | id of client (not client-id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **roleRepresentation** | [**[]RoleRepresentation**](RoleRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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/docs/ScopeRepresentation.md b/docs/ScopeRepresentation.md new file mode 100644 index 0000000..b7571b1 --- /dev/null +++ b/docs/ScopeRepresentation.md @@ -0,0 +1,186 @@ +# ScopeRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**IconUri** | Pointer to **string** | | [optional] +**Policies** | Pointer to [**[]PolicyRepresentation**](PolicyRepresentation.md) | | [optional] +**Resources** | Pointer to [**[]ResourceRepresentation**](ResourceRepresentation.md) | | [optional] +**DisplayName** | Pointer to **string** | | [optional] + +## Methods + +### NewScopeRepresentation + +`func NewScopeRepresentation() *ScopeRepresentation` + +NewScopeRepresentation instantiates a new ScopeRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScopeRepresentationWithDefaults + +`func NewScopeRepresentationWithDefaults() *ScopeRepresentation` + +NewScopeRepresentationWithDefaults instantiates a new ScopeRepresentation object +This 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 *ScopeRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ScopeRepresentation) 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 *ScopeRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ScopeRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ScopeRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ScopeRepresentation) 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 *ScopeRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ScopeRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetIconUri + +`func (o *ScopeRepresentation) GetIconUri() string` + +GetIconUri returns the IconUri field if non-nil, zero value otherwise. + +### GetIconUriOk + +`func (o *ScopeRepresentation) GetIconUriOk() (*string, bool)` + +GetIconUriOk returns a tuple with the IconUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIconUri + +`func (o *ScopeRepresentation) SetIconUri(v string)` + +SetIconUri sets IconUri field to given value. + +### HasIconUri + +`func (o *ScopeRepresentation) HasIconUri() bool` + +HasIconUri returns a boolean if a field has been set. + +### GetPolicies + +`func (o *ScopeRepresentation) GetPolicies() []PolicyRepresentation` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *ScopeRepresentation) GetPoliciesOk() (*[]PolicyRepresentation, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *ScopeRepresentation) SetPolicies(v []PolicyRepresentation)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *ScopeRepresentation) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + +### GetResources + +`func (o *ScopeRepresentation) GetResources() []ResourceRepresentation` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ScopeRepresentation) GetResourcesOk() (*[]ResourceRepresentation, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ScopeRepresentation) SetResources(v []ResourceRepresentation)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ScopeRepresentation) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ScopeRepresentation) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ScopeRepresentation) 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 *ScopeRepresentation) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ScopeRepresentation) 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/docs/SocialLinkRepresentation.md b/docs/SocialLinkRepresentation.md new file mode 100644 index 0000000..769faf8 --- /dev/null +++ b/docs/SocialLinkRepresentation.md @@ -0,0 +1,108 @@ +# SocialLinkRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SocialProvider** | Pointer to **string** | | [optional] +**SocialUserId** | Pointer to **string** | | [optional] +**SocialUsername** | Pointer to **string** | | [optional] + +## Methods + +### NewSocialLinkRepresentation + +`func NewSocialLinkRepresentation() *SocialLinkRepresentation` + +NewSocialLinkRepresentation instantiates a new SocialLinkRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSocialLinkRepresentationWithDefaults + +`func NewSocialLinkRepresentationWithDefaults() *SocialLinkRepresentation` + +NewSocialLinkRepresentationWithDefaults instantiates a new SocialLinkRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSocialProvider + +`func (o *SocialLinkRepresentation) GetSocialProvider() string` + +GetSocialProvider returns the SocialProvider field if non-nil, zero value otherwise. + +### GetSocialProviderOk + +`func (o *SocialLinkRepresentation) GetSocialProviderOk() (*string, bool)` + +GetSocialProviderOk returns a tuple with the SocialProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocialProvider + +`func (o *SocialLinkRepresentation) SetSocialProvider(v string)` + +SetSocialProvider sets SocialProvider field to given value. + +### HasSocialProvider + +`func (o *SocialLinkRepresentation) HasSocialProvider() bool` + +HasSocialProvider returns a boolean if a field has been set. + +### GetSocialUserId + +`func (o *SocialLinkRepresentation) GetSocialUserId() string` + +GetSocialUserId returns the SocialUserId field if non-nil, zero value otherwise. + +### GetSocialUserIdOk + +`func (o *SocialLinkRepresentation) GetSocialUserIdOk() (*string, bool)` + +GetSocialUserIdOk returns a tuple with the SocialUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocialUserId + +`func (o *SocialLinkRepresentation) SetSocialUserId(v string)` + +SetSocialUserId sets SocialUserId field to given value. + +### HasSocialUserId + +`func (o *SocialLinkRepresentation) HasSocialUserId() bool` + +HasSocialUserId returns a boolean if a field has been set. + +### GetSocialUsername + +`func (o *SocialLinkRepresentation) GetSocialUsername() string` + +GetSocialUsername returns the SocialUsername field if non-nil, zero value otherwise. + +### GetSocialUsernameOk + +`func (o *SocialLinkRepresentation) GetSocialUsernameOk() (*string, bool)` + +GetSocialUsernameOk returns a tuple with the SocialUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocialUsername + +`func (o *SocialLinkRepresentation) SetSocialUsername(v string)` + +SetSocialUsername sets SocialUsername field to given value. + +### HasSocialUsername + +`func (o *SocialLinkRepresentation) HasSocialUsername() bool` + +HasSocialUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UPAttribute.md b/docs/UPAttribute.md new file mode 100644 index 0000000..ec85627 --- /dev/null +++ b/docs/UPAttribute.md @@ -0,0 +1,264 @@ +# UPAttribute + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Validations** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Annotations** | Pointer to **map[string]interface{}** | | [optional] +**Required** | Pointer to [**UPAttributeRequired**](UPAttributeRequired.md) | | [optional] +**Permissions** | Pointer to [**UPAttributePermissions**](UPAttributePermissions.md) | | [optional] +**Selector** | Pointer to [**UPAttributeSelector**](UPAttributeSelector.md) | | [optional] +**Group** | Pointer to **string** | | [optional] +**Multivalued** | Pointer to **bool** | | [optional] + +## Methods + +### NewUPAttribute + +`func NewUPAttribute() *UPAttribute` + +NewUPAttribute instantiates a new UPAttribute object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUPAttributeWithDefaults + +`func NewUPAttributeWithDefaults() *UPAttribute` + +NewUPAttributeWithDefaults instantiates a new UPAttribute object +This 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 *UPAttribute) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UPAttribute) 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 *UPAttribute) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UPAttribute) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *UPAttribute) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *UPAttribute) 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 *UPAttribute) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *UPAttribute) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetValidations + +`func (o *UPAttribute) GetValidations() map[string]map[string]interface{}` + +GetValidations returns the Validations field if non-nil, zero value otherwise. + +### GetValidationsOk + +`func (o *UPAttribute) GetValidationsOk() (*map[string]map[string]interface{}, bool)` + +GetValidationsOk returns a tuple with the Validations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidations + +`func (o *UPAttribute) SetValidations(v map[string]map[string]interface{})` + +SetValidations sets Validations field to given value. + +### HasValidations + +`func (o *UPAttribute) HasValidations() bool` + +HasValidations returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *UPAttribute) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *UPAttribute) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *UPAttribute) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *UPAttribute) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetRequired + +`func (o *UPAttribute) GetRequired() UPAttributeRequired` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *UPAttribute) GetRequiredOk() (*UPAttributeRequired, 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 *UPAttribute) SetRequired(v UPAttributeRequired)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *UPAttribute) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetPermissions + +`func (o *UPAttribute) GetPermissions() UPAttributePermissions` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *UPAttribute) GetPermissionsOk() (*UPAttributePermissions, 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 *UPAttribute) SetPermissions(v UPAttributePermissions)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *UPAttribute) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### GetSelector + +`func (o *UPAttribute) GetSelector() UPAttributeSelector` + +GetSelector returns the Selector field if non-nil, zero value otherwise. + +### GetSelectorOk + +`func (o *UPAttribute) GetSelectorOk() (*UPAttributeSelector, bool)` + +GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelector + +`func (o *UPAttribute) SetSelector(v UPAttributeSelector)` + +SetSelector sets Selector field to given value. + +### HasSelector + +`func (o *UPAttribute) HasSelector() bool` + +HasSelector returns a boolean if a field has been set. + +### GetGroup + +`func (o *UPAttribute) GetGroup() string` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *UPAttribute) GetGroupOk() (*string, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *UPAttribute) SetGroup(v string)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *UPAttribute) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetMultivalued + +`func (o *UPAttribute) GetMultivalued() bool` + +GetMultivalued returns the Multivalued field if non-nil, zero value otherwise. + +### GetMultivaluedOk + +`func (o *UPAttribute) GetMultivaluedOk() (*bool, bool)` + +GetMultivaluedOk returns a tuple with the Multivalued field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMultivalued + +`func (o *UPAttribute) SetMultivalued(v bool)` + +SetMultivalued sets Multivalued field to given value. + +### HasMultivalued + +`func (o *UPAttribute) HasMultivalued() bool` + +HasMultivalued returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UPAttributePermissions.md b/docs/UPAttributePermissions.md new file mode 100644 index 0000000..04c7635 --- /dev/null +++ b/docs/UPAttributePermissions.md @@ -0,0 +1,82 @@ +# UPAttributePermissions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**View** | Pointer to **[]string** | | [optional] +**Edit** | Pointer to **[]string** | | [optional] + +## Methods + +### NewUPAttributePermissions + +`func NewUPAttributePermissions() *UPAttributePermissions` + +NewUPAttributePermissions instantiates a new UPAttributePermissions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUPAttributePermissionsWithDefaults + +`func NewUPAttributePermissionsWithDefaults() *UPAttributePermissions` + +NewUPAttributePermissionsWithDefaults instantiates a new UPAttributePermissions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetView + +`func (o *UPAttributePermissions) GetView() []string` + +GetView returns the View field if non-nil, zero value otherwise. + +### GetViewOk + +`func (o *UPAttributePermissions) GetViewOk() (*[]string, bool)` + +GetViewOk returns a tuple with the View field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetView + +`func (o *UPAttributePermissions) SetView(v []string)` + +SetView sets View field to given value. + +### HasView + +`func (o *UPAttributePermissions) HasView() bool` + +HasView returns a boolean if a field has been set. + +### GetEdit + +`func (o *UPAttributePermissions) GetEdit() []string` + +GetEdit returns the Edit field if non-nil, zero value otherwise. + +### GetEditOk + +`func (o *UPAttributePermissions) GetEditOk() (*[]string, bool)` + +GetEditOk returns a tuple with the Edit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdit + +`func (o *UPAttributePermissions) SetEdit(v []string)` + +SetEdit sets Edit field to given value. + +### HasEdit + +`func (o *UPAttributePermissions) HasEdit() bool` + +HasEdit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UPAttributeRequired.md b/docs/UPAttributeRequired.md new file mode 100644 index 0000000..7293702 --- /dev/null +++ b/docs/UPAttributeRequired.md @@ -0,0 +1,82 @@ +# UPAttributeRequired + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Roles** | Pointer to **[]string** | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] + +## Methods + +### NewUPAttributeRequired + +`func NewUPAttributeRequired() *UPAttributeRequired` + +NewUPAttributeRequired instantiates a new UPAttributeRequired object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUPAttributeRequiredWithDefaults + +`func NewUPAttributeRequiredWithDefaults() *UPAttributeRequired` + +NewUPAttributeRequiredWithDefaults instantiates a new UPAttributeRequired object +This 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 *UPAttributeRequired) GetRoles() []string` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *UPAttributeRequired) GetRolesOk() (*[]string, 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 *UPAttributeRequired) SetRoles(v []string)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *UPAttributeRequired) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### GetScopes + +`func (o *UPAttributeRequired) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *UPAttributeRequired) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *UPAttributeRequired) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *UPAttributeRequired) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UPAttributeSelector.md b/docs/UPAttributeSelector.md new file mode 100644 index 0000000..7628f03 --- /dev/null +++ b/docs/UPAttributeSelector.md @@ -0,0 +1,56 @@ +# UPAttributeSelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Scopes** | Pointer to **[]string** | | [optional] + +## Methods + +### NewUPAttributeSelector + +`func NewUPAttributeSelector() *UPAttributeSelector` + +NewUPAttributeSelector instantiates a new UPAttributeSelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUPAttributeSelectorWithDefaults + +`func NewUPAttributeSelectorWithDefaults() *UPAttributeSelector` + +NewUPAttributeSelectorWithDefaults instantiates a new UPAttributeSelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetScopes + +`func (o *UPAttributeSelector) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *UPAttributeSelector) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *UPAttributeSelector) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *UPAttributeSelector) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UPConfig.md b/docs/UPConfig.md new file mode 100644 index 0000000..06034ea --- /dev/null +++ b/docs/UPConfig.md @@ -0,0 +1,108 @@ +# UPConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | Pointer to [**[]UPAttribute**](UPAttribute.md) | | [optional] +**Groups** | Pointer to [**[]UPGroup**](UPGroup.md) | | [optional] +**UnmanagedAttributePolicy** | Pointer to [**UnmanagedAttributePolicy**](UnmanagedAttributePolicy.md) | | [optional] + +## Methods + +### NewUPConfig + +`func NewUPConfig() *UPConfig` + +NewUPConfig instantiates a new UPConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUPConfigWithDefaults + +`func NewUPConfigWithDefaults() *UPConfig` + +NewUPConfigWithDefaults instantiates a new UPConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAttributes + +`func (o *UPConfig) GetAttributes() []UPAttribute` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *UPConfig) GetAttributesOk() (*[]UPAttribute, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *UPConfig) SetAttributes(v []UPAttribute)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *UPConfig) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetGroups + +`func (o *UPConfig) GetGroups() []UPGroup` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *UPConfig) GetGroupsOk() (*[]UPGroup, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *UPConfig) SetGroups(v []UPGroup)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *UPConfig) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUnmanagedAttributePolicy + +`func (o *UPConfig) GetUnmanagedAttributePolicy() UnmanagedAttributePolicy` + +GetUnmanagedAttributePolicy returns the UnmanagedAttributePolicy field if non-nil, zero value otherwise. + +### GetUnmanagedAttributePolicyOk + +`func (o *UPConfig) GetUnmanagedAttributePolicyOk() (*UnmanagedAttributePolicy, bool)` + +GetUnmanagedAttributePolicyOk returns a tuple with the UnmanagedAttributePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnmanagedAttributePolicy + +`func (o *UPConfig) SetUnmanagedAttributePolicy(v UnmanagedAttributePolicy)` + +SetUnmanagedAttributePolicy sets UnmanagedAttributePolicy field to given value. + +### HasUnmanagedAttributePolicy + +`func (o *UPConfig) HasUnmanagedAttributePolicy() bool` + +HasUnmanagedAttributePolicy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UPGroup.md b/docs/UPGroup.md new file mode 100644 index 0000000..4635fdc --- /dev/null +++ b/docs/UPGroup.md @@ -0,0 +1,134 @@ +# UPGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**DisplayHeader** | Pointer to **string** | | [optional] +**DisplayDescription** | Pointer to **string** | | [optional] +**Annotations** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewUPGroup + +`func NewUPGroup() *UPGroup` + +NewUPGroup instantiates a new UPGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUPGroupWithDefaults + +`func NewUPGroupWithDefaults() *UPGroup` + +NewUPGroupWithDefaults instantiates a new UPGroup object +This 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 *UPGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UPGroup) 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 *UPGroup) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UPGroup) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayHeader + +`func (o *UPGroup) GetDisplayHeader() string` + +GetDisplayHeader returns the DisplayHeader field if non-nil, zero value otherwise. + +### GetDisplayHeaderOk + +`func (o *UPGroup) GetDisplayHeaderOk() (*string, bool)` + +GetDisplayHeaderOk returns a tuple with the DisplayHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayHeader + +`func (o *UPGroup) SetDisplayHeader(v string)` + +SetDisplayHeader sets DisplayHeader field to given value. + +### HasDisplayHeader + +`func (o *UPGroup) HasDisplayHeader() bool` + +HasDisplayHeader returns a boolean if a field has been set. + +### GetDisplayDescription + +`func (o *UPGroup) GetDisplayDescription() string` + +GetDisplayDescription returns the DisplayDescription field if non-nil, zero value otherwise. + +### GetDisplayDescriptionOk + +`func (o *UPGroup) GetDisplayDescriptionOk() (*string, bool)` + +GetDisplayDescriptionOk returns a tuple with the DisplayDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayDescription + +`func (o *UPGroup) SetDisplayDescription(v string)` + +SetDisplayDescription sets DisplayDescription field to given value. + +### HasDisplayDescription + +`func (o *UPGroup) HasDisplayDescription() bool` + +HasDisplayDescription returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *UPGroup) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *UPGroup) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *UPGroup) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *UPGroup) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UnmanagedAttributePolicy.md b/docs/UnmanagedAttributePolicy.md new file mode 100644 index 0000000..c7b4753 --- /dev/null +++ b/docs/UnmanagedAttributePolicy.md @@ -0,0 +1,15 @@ +# UnmanagedAttributePolicy + +## Enum + + +* `ENABLED` (value: `"ENABLED"`) + +* `ADMIN_VIEW` (value: `"ADMIN_VIEW"`) + +* `ADMIN_EDIT` (value: `"ADMIN_EDIT"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserConsentRepresentation.md b/docs/UserConsentRepresentation.md new file mode 100644 index 0000000..78e93ef --- /dev/null +++ b/docs/UserConsentRepresentation.md @@ -0,0 +1,160 @@ +# UserConsentRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientId** | Pointer to **string** | | [optional] +**GrantedClientScopes** | Pointer to **[]string** | | [optional] +**CreatedDate** | Pointer to **int64** | | [optional] +**LastUpdatedDate** | Pointer to **int64** | | [optional] +**GrantedRealmRoles** | Pointer to **[]string** | | [optional] + +## Methods + +### NewUserConsentRepresentation + +`func NewUserConsentRepresentation() *UserConsentRepresentation` + +NewUserConsentRepresentation instantiates a new UserConsentRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserConsentRepresentationWithDefaults + +`func NewUserConsentRepresentationWithDefaults() *UserConsentRepresentation` + +NewUserConsentRepresentationWithDefaults instantiates a new UserConsentRepresentation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientId + +`func (o *UserConsentRepresentation) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *UserConsentRepresentation) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *UserConsentRepresentation) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *UserConsentRepresentation) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetGrantedClientScopes + +`func (o *UserConsentRepresentation) GetGrantedClientScopes() []string` + +GetGrantedClientScopes returns the GrantedClientScopes field if non-nil, zero value otherwise. + +### GetGrantedClientScopesOk + +`func (o *UserConsentRepresentation) GetGrantedClientScopesOk() (*[]string, bool)` + +GetGrantedClientScopesOk returns a tuple with the GrantedClientScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantedClientScopes + +`func (o *UserConsentRepresentation) SetGrantedClientScopes(v []string)` + +SetGrantedClientScopes sets GrantedClientScopes field to given value. + +### HasGrantedClientScopes + +`func (o *UserConsentRepresentation) HasGrantedClientScopes() bool` + +HasGrantedClientScopes returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *UserConsentRepresentation) GetCreatedDate() int64` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *UserConsentRepresentation) GetCreatedDateOk() (*int64, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *UserConsentRepresentation) SetCreatedDate(v int64)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *UserConsentRepresentation) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *UserConsentRepresentation) GetLastUpdatedDate() int64` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *UserConsentRepresentation) GetLastUpdatedDateOk() (*int64, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *UserConsentRepresentation) SetLastUpdatedDate(v int64)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *UserConsentRepresentation) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetGrantedRealmRoles + +`func (o *UserConsentRepresentation) GetGrantedRealmRoles() []string` + +GetGrantedRealmRoles returns the GrantedRealmRoles field if non-nil, zero value otherwise. + +### GetGrantedRealmRolesOk + +`func (o *UserConsentRepresentation) GetGrantedRealmRolesOk() (*[]string, bool)` + +GetGrantedRealmRolesOk returns a tuple with the GrantedRealmRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantedRealmRoles + +`func (o *UserConsentRepresentation) SetGrantedRealmRoles(v []string)` + +SetGrantedRealmRoles sets GrantedRealmRoles field to given value. + +### HasGrantedRealmRoles + +`func (o *UserConsentRepresentation) HasGrantedRealmRoles() bool` + +HasGrantedRealmRoles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserFederationMapperRepresentation.md b/docs/UserFederationMapperRepresentation.md new file mode 100644 index 0000000..0b3cd55 --- /dev/null +++ b/docs/UserFederationMapperRepresentation.md @@ -0,0 +1,160 @@ +# UserFederationMapperRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**FederationProviderDisplayName** | Pointer to **string** | | [optional] +**FederationMapperType** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewUserFederationMapperRepresentation + +`func NewUserFederationMapperRepresentation() *UserFederationMapperRepresentation` + +NewUserFederationMapperRepresentation instantiates a new UserFederationMapperRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserFederationMapperRepresentationWithDefaults + +`func NewUserFederationMapperRepresentationWithDefaults() *UserFederationMapperRepresentation` + +NewUserFederationMapperRepresentationWithDefaults instantiates a new UserFederationMapperRepresentation object +This 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 *UserFederationMapperRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *UserFederationMapperRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *UserFederationMapperRepresentation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UserFederationMapperRepresentation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetFederationProviderDisplayName + +`func (o *UserFederationMapperRepresentation) GetFederationProviderDisplayName() string` + +GetFederationProviderDisplayName returns the FederationProviderDisplayName field if non-nil, zero value otherwise. + +### GetFederationProviderDisplayNameOk + +`func (o *UserFederationMapperRepresentation) GetFederationProviderDisplayNameOk() (*string, bool)` + +GetFederationProviderDisplayNameOk returns a tuple with the FederationProviderDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederationProviderDisplayName + +`func (o *UserFederationMapperRepresentation) SetFederationProviderDisplayName(v string)` + +SetFederationProviderDisplayName sets FederationProviderDisplayName field to given value. + +### HasFederationProviderDisplayName + +`func (o *UserFederationMapperRepresentation) HasFederationProviderDisplayName() bool` + +HasFederationProviderDisplayName returns a boolean if a field has been set. + +### GetFederationMapperType + +`func (o *UserFederationMapperRepresentation) GetFederationMapperType() string` + +GetFederationMapperType returns the FederationMapperType field if non-nil, zero value otherwise. + +### GetFederationMapperTypeOk + +`func (o *UserFederationMapperRepresentation) GetFederationMapperTypeOk() (*string, bool)` + +GetFederationMapperTypeOk returns a tuple with the FederationMapperType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederationMapperType + +`func (o *UserFederationMapperRepresentation) SetFederationMapperType(v string)` + +SetFederationMapperType sets FederationMapperType field to given value. + +### HasFederationMapperType + +`func (o *UserFederationMapperRepresentation) HasFederationMapperType() bool` + +HasFederationMapperType returns a boolean if a field has been set. + +### GetConfig + +`func (o *UserFederationMapperRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UserFederationMapperRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UserFederationMapperRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *UserFederationMapperRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserFederationProviderRepresentation.md b/docs/UserFederationProviderRepresentation.md new file mode 100644 index 0000000..ec28ce4 --- /dev/null +++ b/docs/UserFederationProviderRepresentation.md @@ -0,0 +1,238 @@ +# UserFederationProviderRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ProviderName** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string]string** | | [optional] +**Priority** | Pointer to **int32** | | [optional] +**FullSyncPeriod** | Pointer to **int32** | | [optional] +**ChangedSyncPeriod** | Pointer to **int32** | | [optional] +**LastSync** | Pointer to **int32** | | [optional] + +## Methods + +### NewUserFederationProviderRepresentation + +`func NewUserFederationProviderRepresentation() *UserFederationProviderRepresentation` + +NewUserFederationProviderRepresentation instantiates a new UserFederationProviderRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserFederationProviderRepresentationWithDefaults + +`func NewUserFederationProviderRepresentationWithDefaults() *UserFederationProviderRepresentation` + +NewUserFederationProviderRepresentationWithDefaults instantiates a new UserFederationProviderRepresentation object +This 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 *UserFederationProviderRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *UserFederationProviderRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *UserFederationProviderRepresentation) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *UserFederationProviderRepresentation) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetProviderName + +`func (o *UserFederationProviderRepresentation) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *UserFederationProviderRepresentation) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *UserFederationProviderRepresentation) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + +### HasProviderName + +`func (o *UserFederationProviderRepresentation) HasProviderName() bool` + +HasProviderName returns a boolean if a field has been set. + +### GetConfig + +`func (o *UserFederationProviderRepresentation) GetConfig() map[string]string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UserFederationProviderRepresentation) GetConfigOk() (*map[string]string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UserFederationProviderRepresentation) SetConfig(v map[string]string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *UserFederationProviderRepresentation) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetPriority + +`func (o *UserFederationProviderRepresentation) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *UserFederationProviderRepresentation) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *UserFederationProviderRepresentation) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *UserFederationProviderRepresentation) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetFullSyncPeriod + +`func (o *UserFederationProviderRepresentation) GetFullSyncPeriod() int32` + +GetFullSyncPeriod returns the FullSyncPeriod field if non-nil, zero value otherwise. + +### GetFullSyncPeriodOk + +`func (o *UserFederationProviderRepresentation) GetFullSyncPeriodOk() (*int32, bool)` + +GetFullSyncPeriodOk returns a tuple with the FullSyncPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullSyncPeriod + +`func (o *UserFederationProviderRepresentation) SetFullSyncPeriod(v int32)` + +SetFullSyncPeriod sets FullSyncPeriod field to given value. + +### HasFullSyncPeriod + +`func (o *UserFederationProviderRepresentation) HasFullSyncPeriod() bool` + +HasFullSyncPeriod returns a boolean if a field has been set. + +### GetChangedSyncPeriod + +`func (o *UserFederationProviderRepresentation) GetChangedSyncPeriod() int32` + +GetChangedSyncPeriod returns the ChangedSyncPeriod field if non-nil, zero value otherwise. + +### GetChangedSyncPeriodOk + +`func (o *UserFederationProviderRepresentation) GetChangedSyncPeriodOk() (*int32, bool)` + +GetChangedSyncPeriodOk returns a tuple with the ChangedSyncPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangedSyncPeriod + +`func (o *UserFederationProviderRepresentation) SetChangedSyncPeriod(v int32)` + +SetChangedSyncPeriod sets ChangedSyncPeriod field to given value. + +### HasChangedSyncPeriod + +`func (o *UserFederationProviderRepresentation) HasChangedSyncPeriod() bool` + +HasChangedSyncPeriod returns a boolean if a field has been set. + +### GetLastSync + +`func (o *UserFederationProviderRepresentation) GetLastSync() int32` + +GetLastSync returns the LastSync field if non-nil, zero value otherwise. + +### GetLastSyncOk + +`func (o *UserFederationProviderRepresentation) GetLastSyncOk() (*int32, bool)` + +GetLastSyncOk returns a tuple with the LastSync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSync + +`func (o *UserFederationProviderRepresentation) SetLastSync(v int32)` + +SetLastSync sets LastSync field to given value. + +### HasLastSync + +`func (o *UserFederationProviderRepresentation) HasLastSync() bool` + +HasLastSync returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserProfileAttributeGroupMetadata.md b/docs/UserProfileAttributeGroupMetadata.md new file mode 100644 index 0000000..ce238d3 --- /dev/null +++ b/docs/UserProfileAttributeGroupMetadata.md @@ -0,0 +1,134 @@ +# UserProfileAttributeGroupMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**DisplayHeader** | Pointer to **string** | | [optional] +**DisplayDescription** | Pointer to **string** | | [optional] +**Annotations** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewUserProfileAttributeGroupMetadata + +`func NewUserProfileAttributeGroupMetadata() *UserProfileAttributeGroupMetadata` + +NewUserProfileAttributeGroupMetadata instantiates a new UserProfileAttributeGroupMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserProfileAttributeGroupMetadataWithDefaults + +`func NewUserProfileAttributeGroupMetadataWithDefaults() *UserProfileAttributeGroupMetadata` + +NewUserProfileAttributeGroupMetadataWithDefaults instantiates a new UserProfileAttributeGroupMetadata object +This 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 *UserProfileAttributeGroupMetadata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserProfileAttributeGroupMetadata) 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 *UserProfileAttributeGroupMetadata) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UserProfileAttributeGroupMetadata) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayHeader + +`func (o *UserProfileAttributeGroupMetadata) GetDisplayHeader() string` + +GetDisplayHeader returns the DisplayHeader field if non-nil, zero value otherwise. + +### GetDisplayHeaderOk + +`func (o *UserProfileAttributeGroupMetadata) GetDisplayHeaderOk() (*string, bool)` + +GetDisplayHeaderOk returns a tuple with the DisplayHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayHeader + +`func (o *UserProfileAttributeGroupMetadata) SetDisplayHeader(v string)` + +SetDisplayHeader sets DisplayHeader field to given value. + +### HasDisplayHeader + +`func (o *UserProfileAttributeGroupMetadata) HasDisplayHeader() bool` + +HasDisplayHeader returns a boolean if a field has been set. + +### GetDisplayDescription + +`func (o *UserProfileAttributeGroupMetadata) GetDisplayDescription() string` + +GetDisplayDescription returns the DisplayDescription field if non-nil, zero value otherwise. + +### GetDisplayDescriptionOk + +`func (o *UserProfileAttributeGroupMetadata) GetDisplayDescriptionOk() (*string, bool)` + +GetDisplayDescriptionOk returns a tuple with the DisplayDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayDescription + +`func (o *UserProfileAttributeGroupMetadata) SetDisplayDescription(v string)` + +SetDisplayDescription sets DisplayDescription field to given value. + +### HasDisplayDescription + +`func (o *UserProfileAttributeGroupMetadata) HasDisplayDescription() bool` + +HasDisplayDescription returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *UserProfileAttributeGroupMetadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *UserProfileAttributeGroupMetadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *UserProfileAttributeGroupMetadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *UserProfileAttributeGroupMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserProfileAttributeMetadata.md b/docs/UserProfileAttributeMetadata.md new file mode 100644 index 0000000..3d88fc5 --- /dev/null +++ b/docs/UserProfileAttributeMetadata.md @@ -0,0 +1,238 @@ +# UserProfileAttributeMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Required** | Pointer to **bool** | | [optional] +**ReadOnly** | Pointer to **bool** | | [optional] +**Annotations** | Pointer to **map[string]interface{}** | | [optional] +**Validators** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Group** | Pointer to **string** | | [optional] +**Multivalued** | Pointer to **bool** | | [optional] + +## Methods + +### NewUserProfileAttributeMetadata + +`func NewUserProfileAttributeMetadata() *UserProfileAttributeMetadata` + +NewUserProfileAttributeMetadata instantiates a new UserProfileAttributeMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserProfileAttributeMetadataWithDefaults + +`func NewUserProfileAttributeMetadataWithDefaults() *UserProfileAttributeMetadata` + +NewUserProfileAttributeMetadataWithDefaults instantiates a new UserProfileAttributeMetadata object +This 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 *UserProfileAttributeMetadata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UserProfileAttributeMetadata) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *UserProfileAttributeMetadata) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *UserProfileAttributeMetadata) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetRequired + +`func (o *UserProfileAttributeMetadata) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *UserProfileAttributeMetadata) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetReadOnly + +`func (o *UserProfileAttributeMetadata) GetReadOnly() bool` + +GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise. + +### GetReadOnlyOk + +`func (o *UserProfileAttributeMetadata) GetReadOnlyOk() (*bool, bool)` + +GetReadOnlyOk returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadOnly + +`func (o *UserProfileAttributeMetadata) SetReadOnly(v bool)` + +SetReadOnly sets ReadOnly field to given value. + +### HasReadOnly + +`func (o *UserProfileAttributeMetadata) HasReadOnly() bool` + +HasReadOnly returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *UserProfileAttributeMetadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *UserProfileAttributeMetadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *UserProfileAttributeMetadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *UserProfileAttributeMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetValidators + +`func (o *UserProfileAttributeMetadata) GetValidators() map[string]map[string]interface{}` + +GetValidators returns the Validators field if non-nil, zero value otherwise. + +### GetValidatorsOk + +`func (o *UserProfileAttributeMetadata) GetValidatorsOk() (*map[string]map[string]interface{}, bool)` + +GetValidatorsOk returns a tuple with the Validators field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidators + +`func (o *UserProfileAttributeMetadata) SetValidators(v map[string]map[string]interface{})` + +SetValidators sets Validators field to given value. + +### HasValidators + +`func (o *UserProfileAttributeMetadata) HasValidators() bool` + +HasValidators returns a boolean if a field has been set. + +### GetGroup + +`func (o *UserProfileAttributeMetadata) GetGroup() string` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *UserProfileAttributeMetadata) GetGroupOk() (*string, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *UserProfileAttributeMetadata) SetGroup(v string)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *UserProfileAttributeMetadata) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetMultivalued + +`func (o *UserProfileAttributeMetadata) GetMultivalued() bool` + +GetMultivalued returns the Multivalued field if non-nil, zero value otherwise. + +### GetMultivaluedOk + +`func (o *UserProfileAttributeMetadata) GetMultivaluedOk() (*bool, bool)` + +GetMultivaluedOk returns a tuple with the Multivalued field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMultivalued + +`func (o *UserProfileAttributeMetadata) SetMultivalued(v bool)` + +SetMultivalued sets Multivalued field to given value. + +### HasMultivalued + +`func (o *UserProfileAttributeMetadata) HasMultivalued() bool` + +HasMultivalued returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserProfileMetadata.md b/docs/UserProfileMetadata.md new file mode 100644 index 0000000..0da3b63 --- /dev/null +++ b/docs/UserProfileMetadata.md @@ -0,0 +1,82 @@ +# UserProfileMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | Pointer to [**[]UserProfileAttributeMetadata**](UserProfileAttributeMetadata.md) | | [optional] +**Groups** | Pointer to [**[]UserProfileAttributeGroupMetadata**](UserProfileAttributeGroupMetadata.md) | | [optional] + +## Methods + +### NewUserProfileMetadata + +`func NewUserProfileMetadata() *UserProfileMetadata` + +NewUserProfileMetadata instantiates a new UserProfileMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserProfileMetadataWithDefaults + +`func NewUserProfileMetadataWithDefaults() *UserProfileMetadata` + +NewUserProfileMetadataWithDefaults instantiates a new UserProfileMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAttributes + +`func (o *UserProfileMetadata) GetAttributes() []UserProfileAttributeMetadata` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *UserProfileMetadata) GetAttributesOk() (*[]UserProfileAttributeMetadata, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *UserProfileMetadata) SetAttributes(v []UserProfileAttributeMetadata)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *UserProfileMetadata) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetGroups + +`func (o *UserProfileMetadata) GetGroups() []UserProfileAttributeGroupMetadata` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *UserProfileMetadata) GetGroupsOk() (*[]UserProfileAttributeGroupMetadata, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *UserProfileMetadata) SetGroups(v []UserProfileAttributeGroupMetadata)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *UserProfileMetadata) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserRepresentation.md b/docs/UserRepresentation.md new file mode 100644 index 0000000..7cb9ef1 --- /dev/null +++ b/docs/UserRepresentation.md @@ -0,0 +1,732 @@ +# UserRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**EmailVerified** | Pointer to **bool** | | [optional] +**Attributes** | Pointer to **map[string][]string** | | [optional] +**UserProfileMetadata** | Pointer to [**UserProfileMetadata**](UserProfileMetadata.md) | | [optional] +**Self** | Pointer to **string** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**CreatedTimestamp** | Pointer to **int64** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Totp** | Pointer to **bool** | | [optional] +**FederationLink** | Pointer to **string** | | [optional] +**ServiceAccountClientId** | Pointer to **string** | | [optional] +**Credentials** | Pointer to [**[]CredentialRepresentation**](CredentialRepresentation.md) | | [optional] +**DisableableCredentialTypes** | Pointer to **[]string** | | [optional] +**RequiredActions** | Pointer to **[]string** | | [optional] +**FederatedIdentities** | Pointer to [**[]FederatedIdentityRepresentation**](FederatedIdentityRepresentation.md) | | [optional] +**RealmRoles** | Pointer to **[]string** | | [optional] +**ClientRoles** | Pointer to **map[string][]string** | | [optional] +**ClientConsents** | Pointer to [**[]UserConsentRepresentation**](UserConsentRepresentation.md) | | [optional] +**NotBefore** | Pointer to **int32** | | [optional] +**ApplicationRoles** | Pointer to **map[string][]string** | | [optional] +**SocialLinks** | Pointer to [**[]SocialLinkRepresentation**](SocialLinkRepresentation.md) | | [optional] +**Groups** | Pointer to **[]string** | | [optional] +**Access** | Pointer to **map[string]bool** | | [optional] + +## Methods + +### NewUserRepresentation + +`func NewUserRepresentation() *UserRepresentation` + +NewUserRepresentation instantiates a new UserRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserRepresentationWithDefaults + +`func NewUserRepresentationWithDefaults() *UserRepresentation` + +NewUserRepresentationWithDefaults instantiates a new UserRepresentation object +This 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 *UserRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserRepresentation) 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 *UserRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *UserRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *UserRepresentation) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *UserRepresentation) 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 *UserRepresentation) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *UserRepresentation) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetFirstName + +`func (o *UserRepresentation) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *UserRepresentation) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *UserRepresentation) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *UserRepresentation) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *UserRepresentation) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *UserRepresentation) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *UserRepresentation) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *UserRepresentation) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *UserRepresentation) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserRepresentation) 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 *UserRepresentation) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *UserRepresentation) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetEmailVerified + +`func (o *UserRepresentation) GetEmailVerified() bool` + +GetEmailVerified returns the EmailVerified field if non-nil, zero value otherwise. + +### GetEmailVerifiedOk + +`func (o *UserRepresentation) GetEmailVerifiedOk() (*bool, bool)` + +GetEmailVerifiedOk returns a tuple with the EmailVerified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailVerified + +`func (o *UserRepresentation) SetEmailVerified(v bool)` + +SetEmailVerified sets EmailVerified field to given value. + +### HasEmailVerified + +`func (o *UserRepresentation) HasEmailVerified() bool` + +HasEmailVerified returns a boolean if a field has been set. + +### GetAttributes + +`func (o *UserRepresentation) GetAttributes() map[string][]string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *UserRepresentation) GetAttributesOk() (*map[string][]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *UserRepresentation) SetAttributes(v map[string][]string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *UserRepresentation) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetUserProfileMetadata + +`func (o *UserRepresentation) GetUserProfileMetadata() UserProfileMetadata` + +GetUserProfileMetadata returns the UserProfileMetadata field if non-nil, zero value otherwise. + +### GetUserProfileMetadataOk + +`func (o *UserRepresentation) GetUserProfileMetadataOk() (*UserProfileMetadata, bool)` + +GetUserProfileMetadataOk returns a tuple with the UserProfileMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserProfileMetadata + +`func (o *UserRepresentation) SetUserProfileMetadata(v UserProfileMetadata)` + +SetUserProfileMetadata sets UserProfileMetadata field to given value. + +### HasUserProfileMetadata + +`func (o *UserRepresentation) HasUserProfileMetadata() bool` + +HasUserProfileMetadata returns a boolean if a field has been set. + +### GetSelf + +`func (o *UserRepresentation) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *UserRepresentation) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *UserRepresentation) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *UserRepresentation) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetOrigin + +`func (o *UserRepresentation) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *UserRepresentation) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *UserRepresentation) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *UserRepresentation) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetCreatedTimestamp + +`func (o *UserRepresentation) GetCreatedTimestamp() int64` + +GetCreatedTimestamp returns the CreatedTimestamp field if non-nil, zero value otherwise. + +### GetCreatedTimestampOk + +`func (o *UserRepresentation) GetCreatedTimestampOk() (*int64, bool)` + +GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedTimestamp + +`func (o *UserRepresentation) SetCreatedTimestamp(v int64)` + +SetCreatedTimestamp sets CreatedTimestamp field to given value. + +### HasCreatedTimestamp + +`func (o *UserRepresentation) HasCreatedTimestamp() bool` + +HasCreatedTimestamp returns a boolean if a field has been set. + +### GetEnabled + +`func (o *UserRepresentation) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *UserRepresentation) 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 *UserRepresentation) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *UserRepresentation) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetTotp + +`func (o *UserRepresentation) GetTotp() bool` + +GetTotp returns the Totp field if non-nil, zero value otherwise. + +### GetTotpOk + +`func (o *UserRepresentation) GetTotpOk() (*bool, bool)` + +GetTotpOk returns a tuple with the Totp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotp + +`func (o *UserRepresentation) SetTotp(v bool)` + +SetTotp sets Totp field to given value. + +### HasTotp + +`func (o *UserRepresentation) HasTotp() bool` + +HasTotp returns a boolean if a field has been set. + +### GetFederationLink + +`func (o *UserRepresentation) GetFederationLink() string` + +GetFederationLink returns the FederationLink field if non-nil, zero value otherwise. + +### GetFederationLinkOk + +`func (o *UserRepresentation) GetFederationLinkOk() (*string, bool)` + +GetFederationLinkOk returns a tuple with the FederationLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederationLink + +`func (o *UserRepresentation) SetFederationLink(v string)` + +SetFederationLink sets FederationLink field to given value. + +### HasFederationLink + +`func (o *UserRepresentation) HasFederationLink() bool` + +HasFederationLink returns a boolean if a field has been set. + +### GetServiceAccountClientId + +`func (o *UserRepresentation) GetServiceAccountClientId() string` + +GetServiceAccountClientId returns the ServiceAccountClientId field if non-nil, zero value otherwise. + +### GetServiceAccountClientIdOk + +`func (o *UserRepresentation) GetServiceAccountClientIdOk() (*string, bool)` + +GetServiceAccountClientIdOk returns a tuple with the ServiceAccountClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountClientId + +`func (o *UserRepresentation) SetServiceAccountClientId(v string)` + +SetServiceAccountClientId sets ServiceAccountClientId field to given value. + +### HasServiceAccountClientId + +`func (o *UserRepresentation) HasServiceAccountClientId() bool` + +HasServiceAccountClientId returns a boolean if a field has been set. + +### GetCredentials + +`func (o *UserRepresentation) GetCredentials() []CredentialRepresentation` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *UserRepresentation) GetCredentialsOk() (*[]CredentialRepresentation, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *UserRepresentation) SetCredentials(v []CredentialRepresentation)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *UserRepresentation) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetDisableableCredentialTypes + +`func (o *UserRepresentation) GetDisableableCredentialTypes() []string` + +GetDisableableCredentialTypes returns the DisableableCredentialTypes field if non-nil, zero value otherwise. + +### GetDisableableCredentialTypesOk + +`func (o *UserRepresentation) GetDisableableCredentialTypesOk() (*[]string, bool)` + +GetDisableableCredentialTypesOk returns a tuple with the DisableableCredentialTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableableCredentialTypes + +`func (o *UserRepresentation) SetDisableableCredentialTypes(v []string)` + +SetDisableableCredentialTypes sets DisableableCredentialTypes field to given value. + +### HasDisableableCredentialTypes + +`func (o *UserRepresentation) HasDisableableCredentialTypes() bool` + +HasDisableableCredentialTypes returns a boolean if a field has been set. + +### GetRequiredActions + +`func (o *UserRepresentation) GetRequiredActions() []string` + +GetRequiredActions returns the RequiredActions field if non-nil, zero value otherwise. + +### GetRequiredActionsOk + +`func (o *UserRepresentation) GetRequiredActionsOk() (*[]string, bool)` + +GetRequiredActionsOk returns a tuple with the RequiredActions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredActions + +`func (o *UserRepresentation) SetRequiredActions(v []string)` + +SetRequiredActions sets RequiredActions field to given value. + +### HasRequiredActions + +`func (o *UserRepresentation) HasRequiredActions() bool` + +HasRequiredActions returns a boolean if a field has been set. + +### GetFederatedIdentities + +`func (o *UserRepresentation) GetFederatedIdentities() []FederatedIdentityRepresentation` + +GetFederatedIdentities returns the FederatedIdentities field if non-nil, zero value otherwise. + +### GetFederatedIdentitiesOk + +`func (o *UserRepresentation) GetFederatedIdentitiesOk() (*[]FederatedIdentityRepresentation, bool)` + +GetFederatedIdentitiesOk returns a tuple with the FederatedIdentities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedIdentities + +`func (o *UserRepresentation) SetFederatedIdentities(v []FederatedIdentityRepresentation)` + +SetFederatedIdentities sets FederatedIdentities field to given value. + +### HasFederatedIdentities + +`func (o *UserRepresentation) HasFederatedIdentities() bool` + +HasFederatedIdentities returns a boolean if a field has been set. + +### GetRealmRoles + +`func (o *UserRepresentation) GetRealmRoles() []string` + +GetRealmRoles returns the RealmRoles field if non-nil, zero value otherwise. + +### GetRealmRolesOk + +`func (o *UserRepresentation) GetRealmRolesOk() (*[]string, bool)` + +GetRealmRolesOk returns a tuple with the RealmRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealmRoles + +`func (o *UserRepresentation) SetRealmRoles(v []string)` + +SetRealmRoles sets RealmRoles field to given value. + +### HasRealmRoles + +`func (o *UserRepresentation) HasRealmRoles() bool` + +HasRealmRoles returns a boolean if a field has been set. + +### GetClientRoles + +`func (o *UserRepresentation) GetClientRoles() map[string][]string` + +GetClientRoles returns the ClientRoles field if non-nil, zero value otherwise. + +### GetClientRolesOk + +`func (o *UserRepresentation) GetClientRolesOk() (*map[string][]string, bool)` + +GetClientRolesOk returns a tuple with the ClientRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientRoles + +`func (o *UserRepresentation) SetClientRoles(v map[string][]string)` + +SetClientRoles sets ClientRoles field to given value. + +### HasClientRoles + +`func (o *UserRepresentation) HasClientRoles() bool` + +HasClientRoles returns a boolean if a field has been set. + +### GetClientConsents + +`func (o *UserRepresentation) GetClientConsents() []UserConsentRepresentation` + +GetClientConsents returns the ClientConsents field if non-nil, zero value otherwise. + +### GetClientConsentsOk + +`func (o *UserRepresentation) GetClientConsentsOk() (*[]UserConsentRepresentation, bool)` + +GetClientConsentsOk returns a tuple with the ClientConsents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientConsents + +`func (o *UserRepresentation) SetClientConsents(v []UserConsentRepresentation)` + +SetClientConsents sets ClientConsents field to given value. + +### HasClientConsents + +`func (o *UserRepresentation) HasClientConsents() bool` + +HasClientConsents returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *UserRepresentation) GetNotBefore() int32` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *UserRepresentation) GetNotBeforeOk() (*int32, 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 *UserRepresentation) SetNotBefore(v int32)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *UserRepresentation) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetApplicationRoles + +`func (o *UserRepresentation) GetApplicationRoles() map[string][]string` + +GetApplicationRoles returns the ApplicationRoles field if non-nil, zero value otherwise. + +### GetApplicationRolesOk + +`func (o *UserRepresentation) GetApplicationRolesOk() (*map[string][]string, bool)` + +GetApplicationRolesOk returns a tuple with the ApplicationRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationRoles + +`func (o *UserRepresentation) SetApplicationRoles(v map[string][]string)` + +SetApplicationRoles sets ApplicationRoles field to given value. + +### HasApplicationRoles + +`func (o *UserRepresentation) HasApplicationRoles() bool` + +HasApplicationRoles returns a boolean if a field has been set. + +### GetSocialLinks + +`func (o *UserRepresentation) GetSocialLinks() []SocialLinkRepresentation` + +GetSocialLinks returns the SocialLinks field if non-nil, zero value otherwise. + +### GetSocialLinksOk + +`func (o *UserRepresentation) GetSocialLinksOk() (*[]SocialLinkRepresentation, bool)` + +GetSocialLinksOk returns a tuple with the SocialLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocialLinks + +`func (o *UserRepresentation) SetSocialLinks(v []SocialLinkRepresentation)` + +SetSocialLinks sets SocialLinks field to given value. + +### HasSocialLinks + +`func (o *UserRepresentation) HasSocialLinks() bool` + +HasSocialLinks returns a boolean if a field has been set. + +### GetGroups + +`func (o *UserRepresentation) GetGroups() []string` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *UserRepresentation) GetGroupsOk() (*[]string, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *UserRepresentation) SetGroups(v []string)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *UserRepresentation) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetAccess + +`func (o *UserRepresentation) GetAccess() map[string]bool` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *UserRepresentation) GetAccessOk() (*map[string]bool, 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 *UserRepresentation) SetAccess(v map[string]bool)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *UserRepresentation) 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/docs/UserSessionRepresentation.md b/docs/UserSessionRepresentation.md new file mode 100644 index 0000000..e30ab9c --- /dev/null +++ b/docs/UserSessionRepresentation.md @@ -0,0 +1,264 @@ +# UserSessionRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] +**UserId** | Pointer to **string** | | [optional] +**IpAddress** | Pointer to **string** | | [optional] +**Start** | Pointer to **int64** | | [optional] +**LastAccess** | Pointer to **int64** | | [optional] +**RememberMe** | Pointer to **bool** | | [optional] +**Clients** | Pointer to **map[string]string** | | [optional] +**TransientUser** | Pointer to **bool** | | [optional] + +## Methods + +### NewUserSessionRepresentation + +`func NewUserSessionRepresentation() *UserSessionRepresentation` + +NewUserSessionRepresentation instantiates a new UserSessionRepresentation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserSessionRepresentationWithDefaults + +`func NewUserSessionRepresentationWithDefaults() *UserSessionRepresentation` + +NewUserSessionRepresentationWithDefaults instantiates a new UserSessionRepresentation object +This 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 *UserSessionRepresentation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserSessionRepresentation) 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 *UserSessionRepresentation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *UserSessionRepresentation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *UserSessionRepresentation) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *UserSessionRepresentation) 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 *UserSessionRepresentation) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *UserSessionRepresentation) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetUserId + +`func (o *UserSessionRepresentation) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *UserSessionRepresentation) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *UserSessionRepresentation) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *UserSessionRepresentation) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetIpAddress + +`func (o *UserSessionRepresentation) GetIpAddress() string` + +GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. + +### GetIpAddressOk + +`func (o *UserSessionRepresentation) 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 *UserSessionRepresentation) SetIpAddress(v string)` + +SetIpAddress sets IpAddress field to given value. + +### HasIpAddress + +`func (o *UserSessionRepresentation) HasIpAddress() bool` + +HasIpAddress returns a boolean if a field has been set. + +### GetStart + +`func (o *UserSessionRepresentation) GetStart() int64` + +GetStart returns the Start field if non-nil, zero value otherwise. + +### GetStartOk + +`func (o *UserSessionRepresentation) GetStartOk() (*int64, bool)` + +GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStart + +`func (o *UserSessionRepresentation) SetStart(v int64)` + +SetStart sets Start field to given value. + +### HasStart + +`func (o *UserSessionRepresentation) HasStart() bool` + +HasStart returns a boolean if a field has been set. + +### GetLastAccess + +`func (o *UserSessionRepresentation) GetLastAccess() int64` + +GetLastAccess returns the LastAccess field if non-nil, zero value otherwise. + +### GetLastAccessOk + +`func (o *UserSessionRepresentation) GetLastAccessOk() (*int64, bool)` + +GetLastAccessOk returns a tuple with the LastAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastAccess + +`func (o *UserSessionRepresentation) SetLastAccess(v int64)` + +SetLastAccess sets LastAccess field to given value. + +### HasLastAccess + +`func (o *UserSessionRepresentation) HasLastAccess() bool` + +HasLastAccess returns a boolean if a field has been set. + +### GetRememberMe + +`func (o *UserSessionRepresentation) GetRememberMe() bool` + +GetRememberMe returns the RememberMe field if non-nil, zero value otherwise. + +### GetRememberMeOk + +`func (o *UserSessionRepresentation) GetRememberMeOk() (*bool, bool)` + +GetRememberMeOk returns a tuple with the RememberMe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRememberMe + +`func (o *UserSessionRepresentation) SetRememberMe(v bool)` + +SetRememberMe sets RememberMe field to given value. + +### HasRememberMe + +`func (o *UserSessionRepresentation) HasRememberMe() bool` + +HasRememberMe returns a boolean if a field has been set. + +### GetClients + +`func (o *UserSessionRepresentation) GetClients() map[string]string` + +GetClients returns the Clients field if non-nil, zero value otherwise. + +### GetClientsOk + +`func (o *UserSessionRepresentation) GetClientsOk() (*map[string]string, bool)` + +GetClientsOk returns a tuple with the Clients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClients + +`func (o *UserSessionRepresentation) SetClients(v map[string]string)` + +SetClients sets Clients field to given value. + +### HasClients + +`func (o *UserSessionRepresentation) HasClients() bool` + +HasClients returns a boolean if a field has been set. + +### GetTransientUser + +`func (o *UserSessionRepresentation) GetTransientUser() bool` + +GetTransientUser returns the TransientUser field if non-nil, zero value otherwise. + +### GetTransientUserOk + +`func (o *UserSessionRepresentation) GetTransientUserOk() (*bool, bool)` + +GetTransientUserOk returns a tuple with the TransientUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientUser + +`func (o *UserSessionRepresentation) SetTransientUser(v bool)` + +SetTransientUser sets TransientUser field to given value. + +### HasTransientUser + +`func (o *UserSessionRepresentation) HasTransientUser() bool` + +HasTransientUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersAPI.md b/docs/UsersAPI.md new file mode 100644 index 0000000..f4ac588 --- /dev/null +++ b/docs/UsersAPI.md @@ -0,0 +1,2537 @@ +# \UsersAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminRealmsRealmUsersCountGet**](UsersAPI.md#AdminRealmsRealmUsersCountGet) | **Get** /admin/realms/{realm}/users/count | Returns the number of users that match the given criteria. +[**AdminRealmsRealmUsersGet**](UsersAPI.md#AdminRealmsRealmUsersGet) | **Get** /admin/realms/{realm}/users | Get users Returns a stream of users, filtered according to query parameters. +[**AdminRealmsRealmUsersPost**](UsersAPI.md#AdminRealmsRealmUsersPost) | **Post** /admin/realms/{realm}/users | Create a new user Username must be unique. +[**AdminRealmsRealmUsersProfileGet**](UsersAPI.md#AdminRealmsRealmUsersProfileGet) | **Get** /admin/realms/{realm}/users/profile | +[**AdminRealmsRealmUsersProfileMetadataGet**](UsersAPI.md#AdminRealmsRealmUsersProfileMetadataGet) | **Get** /admin/realms/{realm}/users/profile/metadata | +[**AdminRealmsRealmUsersProfilePut**](UsersAPI.md#AdminRealmsRealmUsersProfilePut) | **Put** /admin/realms/{realm}/users/profile | +[**AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet) | **Get** /admin/realms/{realm}/users/{user-id}/configured-user-storage-credential-types | Return credential types, which are provided by the user storage where user is stored. +[**AdminRealmsRealmUsersUserIdConsentsClientDelete**](UsersAPI.md#AdminRealmsRealmUsersUserIdConsentsClientDelete) | **Delete** /admin/realms/{realm}/users/{user-id}/consents/{client} | Revoke consent and offline tokens for particular client from user +[**AdminRealmsRealmUsersUserIdConsentsGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdConsentsGet) | **Get** /admin/realms/{realm}/users/{user-id}/consents | Get consents granted by the user +[**AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete**](UsersAPI.md#AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete) | **Delete** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId} | Remove a credential for a user +[**AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost**](UsersAPI.md#AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost) | **Post** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId} | Move a credential to a position behind another credential +[**AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost**](UsersAPI.md#AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost) | **Post** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveToFirst | Move a credential to a first position in the credentials list of the user +[**AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut) | **Put** /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/userLabel | Update a credential label for a user +[**AdminRealmsRealmUsersUserIdCredentialsGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdCredentialsGet) | **Get** /admin/realms/{realm}/users/{user-id}/credentials | +[**AdminRealmsRealmUsersUserIdDelete**](UsersAPI.md#AdminRealmsRealmUsersUserIdDelete) | **Delete** /admin/realms/{realm}/users/{user-id} | Delete the user +[**AdminRealmsRealmUsersUserIdDisableCredentialTypesPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdDisableCredentialTypesPut) | **Put** /admin/realms/{realm}/users/{user-id}/disable-credential-types | Disable all credentials for a user of a specific type +[**AdminRealmsRealmUsersUserIdExecuteActionsEmailPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdExecuteActionsEmailPut) | **Put** /admin/realms/{realm}/users/{user-id}/execute-actions-email | Send an email to the user with a link they can click to execute particular actions. +[**AdminRealmsRealmUsersUserIdFederatedIdentityGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdFederatedIdentityGet) | **Get** /admin/realms/{realm}/users/{user-id}/federated-identity | Get social logins associated with the user +[**AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete**](UsersAPI.md#AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete) | **Delete** /admin/realms/{realm}/users/{user-id}/federated-identity/{provider} | Remove a social login provider from user +[**AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost**](UsersAPI.md#AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost) | **Post** /admin/realms/{realm}/users/{user-id}/federated-identity/{provider} | Add a social login provider to the user +[**AdminRealmsRealmUsersUserIdGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdGet) | **Get** /admin/realms/{realm}/users/{user-id} | Get representation of the user +[**AdminRealmsRealmUsersUserIdGroupsCountGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdGroupsCountGet) | **Get** /admin/realms/{realm}/users/{user-id}/groups/count | +[**AdminRealmsRealmUsersUserIdGroupsGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdGroupsGet) | **Get** /admin/realms/{realm}/users/{user-id}/groups | +[**AdminRealmsRealmUsersUserIdGroupsGroupIdDelete**](UsersAPI.md#AdminRealmsRealmUsersUserIdGroupsGroupIdDelete) | **Delete** /admin/realms/{realm}/users/{user-id}/groups/{groupId} | +[**AdminRealmsRealmUsersUserIdGroupsGroupIdPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdGroupsGroupIdPut) | **Put** /admin/realms/{realm}/users/{user-id}/groups/{groupId} | +[**AdminRealmsRealmUsersUserIdImpersonationPost**](UsersAPI.md#AdminRealmsRealmUsersUserIdImpersonationPost) | **Post** /admin/realms/{realm}/users/{user-id}/impersonation | Impersonate the user +[**AdminRealmsRealmUsersUserIdLogoutPost**](UsersAPI.md#AdminRealmsRealmUsersUserIdLogoutPost) | **Post** /admin/realms/{realm}/users/{user-id}/logout | Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. +[**AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet) | **Get** /admin/realms/{realm}/users/{user-id}/offline-sessions/{clientUuid} | Get offline sessions associated with the user and client +[**AdminRealmsRealmUsersUserIdPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdPut) | **Put** /admin/realms/{realm}/users/{user-id} | Update the user +[**AdminRealmsRealmUsersUserIdResetPasswordEmailPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdResetPasswordEmailPut) | **Put** /admin/realms/{realm}/users/{user-id}/reset-password-email | Send an email to the user with a link they can click to reset their password. +[**AdminRealmsRealmUsersUserIdResetPasswordPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdResetPasswordPut) | **Put** /admin/realms/{realm}/users/{user-id}/reset-password | Set up a new password for the user. +[**AdminRealmsRealmUsersUserIdSendVerifyEmailPut**](UsersAPI.md#AdminRealmsRealmUsersUserIdSendVerifyEmailPut) | **Put** /admin/realms/{realm}/users/{user-id}/send-verify-email | Send an email-verification email to the user An email contains a link the user can click to verify their email address. +[**AdminRealmsRealmUsersUserIdSessionsGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdSessionsGet) | **Get** /admin/realms/{realm}/users/{user-id}/sessions | Get sessions associated with the user +[**AdminRealmsRealmUsersUserIdUnmanagedAttributesGet**](UsersAPI.md#AdminRealmsRealmUsersUserIdUnmanagedAttributesGet) | **Get** /admin/realms/{realm}/users/{user-id}/unmanagedAttributes | + + + +## AdminRealmsRealmUsersCountGet + +> int32 AdminRealmsRealmUsersCountGet(ctx, realm).Email(email).EmailVerified(emailVerified).Enabled(enabled).FirstName(firstName).LastName(lastName).Q(q).Search(search).Username(username).Execute() + +Returns the number of users that match the given criteria. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + email := "email_example" // string | email filter (optional) + emailVerified := true // bool | (optional) + enabled := true // bool | Boolean representing if user is enabled or not (optional) + firstName := "firstName_example" // string | first name filter (optional) + lastName := "lastName_example" // string | last name filter (optional) + q := "q_example" // string | (optional) + search := "search_example" // string | arbitrary search string for all the fields below. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search. (optional) + username := "username_example" // string | username filter (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersCountGet(context.Background(), realm).Email(email).EmailVerified(emailVerified).Enabled(enabled).FirstName(firstName).LastName(lastName).Q(q).Search(search).Username(username).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersCountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersCountGet`: int32 + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersCountGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersCountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **email** | **string** | email filter | + **emailVerified** | **bool** | | + **enabled** | **bool** | Boolean representing if user is enabled or not | + **firstName** | **string** | first name filter | + **lastName** | **string** | last name filter | + **q** | **string** | | + **search** | **string** | arbitrary search string for all the fields below. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search. | + **username** | **string** | username filter | + +### Return type + +**int32** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersGet + +> []UserRepresentation AdminRealmsRealmUsersGet(ctx, realm).BriefRepresentation(briefRepresentation).Email(email).EmailVerified(emailVerified).Enabled(enabled).Exact(exact).First(first).FirstName(firstName).IdpAlias(idpAlias).IdpUserId(idpUserId).LastName(lastName).Max(max).Q(q).Search(search).Username(username).Execute() + +Get users Returns a stream of users, filtered according to query parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + briefRepresentation := true // bool | Boolean which defines whether brief representations are returned (default: false) (optional) + email := "email_example" // string | A String contained in email, or the complete email, if param \"exact\" is true (optional) + emailVerified := true // bool | whether the email has been verified (optional) + enabled := true // bool | Boolean representing if user is enabled or not (optional) + exact := true // bool | Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly (optional) + first := int32(56) // int32 | Pagination offset (optional) + firstName := "firstName_example" // string | A String contained in firstName, or the complete firstName, if param \"exact\" is true (optional) + idpAlias := "idpAlias_example" // string | The alias of an Identity Provider linked to the user (optional) + idpUserId := "idpUserId_example" // string | The userId at an Identity Provider linked to the user (optional) + lastName := "lastName_example" // string | A String contained in lastName, or the complete lastName, if param \"exact\" is true (optional) + max := int32(56) // int32 | Maximum results size (defaults to 100) (optional) + q := "q_example" // string | A query to search for custom attributes, in the format 'key1:value2 key2:value2' (optional) + search := "search_example" // string | A String contained in username, first or last name, or email. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search. (optional) + username := "username_example" // string | A String contained in username, or the complete username, if param \"exact\" is true (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersGet(context.Background(), realm).BriefRepresentation(briefRepresentation).Email(email).EmailVerified(emailVerified).Enabled(enabled).Exact(exact).First(first).FirstName(firstName).IdpAlias(idpAlias).IdpUserId(idpUserId).LastName(lastName).Max(max).Q(q).Search(search).Username(username).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersGet`: []UserRepresentation + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **briefRepresentation** | **bool** | Boolean which defines whether brief representations are returned (default: false) | + **email** | **string** | A String contained in email, or the complete email, if param \"exact\" is true | + **emailVerified** | **bool** | whether the email has been verified | + **enabled** | **bool** | Boolean representing if user is enabled or not | + **exact** | **bool** | Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly | + **first** | **int32** | Pagination offset | + **firstName** | **string** | A String contained in firstName, or the complete firstName, if param \"exact\" is true | + **idpAlias** | **string** | The alias of an Identity Provider linked to the user | + **idpUserId** | **string** | The userId at an Identity Provider linked to the user | + **lastName** | **string** | A String contained in lastName, or the complete lastName, if param \"exact\" is true | + **max** | **int32** | Maximum results size (defaults to 100) | + **q** | **string** | A query to search for custom attributes, in the format 'key1:value2 key2:value2' | + **search** | **string** | A String contained in username, first or last name, or email. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search. | + **username** | **string** | A String contained in username, or the complete username, if param \"exact\" is true | + +### Return type + +[**[]UserRepresentation**](UserRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersPost + +> AdminRealmsRealmUsersPost(ctx, realm).UserRepresentation(userRepresentation).Execute() + +Create a new user Username must be unique. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userRepresentation := *openapiclient.NewUserRepresentation() // UserRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersPost(context.Background(), realm).UserRepresentation(userRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersPost``: %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. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **userRepresentation** | [**UserRepresentation**](UserRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersProfileGet + +> UPConfig AdminRealmsRealmUsersProfileGet(ctx, realm).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersProfileGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersProfileGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersProfileGet`: UPConfig + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersProfileGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersProfileGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**UPConfig**](UPConfig.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersProfileMetadataGet + +> UserProfileMetadata AdminRealmsRealmUsersProfileMetadataGet(ctx, realm).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersProfileMetadataGet(context.Background(), realm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersProfileMetadataGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersProfileMetadataGet`: UserProfileMetadata + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersProfileMetadataGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersProfileMetadataGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**UserProfileMetadata**](UserProfileMetadata.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersProfilePut + +> UPConfig AdminRealmsRealmUsersProfilePut(ctx, realm).UPConfig(uPConfig).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + uPConfig := *openapiclient.NewUPConfig() // UPConfig | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersProfilePut(context.Background(), realm).UPConfig(uPConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersProfilePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersProfilePut`: UPConfig + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersProfilePut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersProfilePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **uPConfig** | [**UPConfig**](UPConfig.md) | | + +### Return type + +[**UPConfig**](UPConfig.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet + +> []string AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet(ctx, realm, userId).Execute() + +Return credential types, which are provided by the user storage where user is stored. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet`: []string + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**[]string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdConsentsClientDelete + +> AdminRealmsRealmUsersUserIdConsentsClientDelete(ctx, realm, userId, client).Execute() + +Revoke consent and offline tokens for particular client from user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + client := "client_example" // string | Client id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdConsentsClientDelete(context.Background(), realm, userId, client).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdConsentsClientDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**client** | **string** | Client id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdConsentsGet + +> []map[string]interface{} AdminRealmsRealmUsersUserIdConsentsGet(ctx, realm, userId).Execute() + +Get consents granted by the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdConsentsGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdConsentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdConsentsGet`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdConsentsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdConsentsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]map[string]interface{}**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete + +> AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete(ctx, realm, userId, credentialId).Execute() + +Remove a credential for a user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + credentialId := "credentialId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete(context.Background(), realm, userId, credentialId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**credentialId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost + +> AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(ctx, realm, userId, credentialId, newPreviousCredentialId).Execute() + +Move a credential to a position behind another credential + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + credentialId := "credentialId_example" // string | The credential to move + newPreviousCredentialId := "newPreviousCredentialId_example" // string | The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(context.Background(), realm, userId, credentialId, newPreviousCredentialId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**credentialId** | **string** | The credential to move | +**newPreviousCredentialId** | **string** | The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost + +> AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost(ctx, realm, userId, credentialId).Execute() + +Move a credential to a first position in the credentials list of the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + credentialId := "credentialId_example" // string | The credential to move + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost(context.Background(), realm, userId, credentialId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**credentialId** | **string** | The credential to move | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut + +> AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut(ctx, realm, userId, credentialId).Body(body).Execute() + +Update a credential label for a user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + credentialId := "credentialId_example" // string | + body := "body_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut(context.Background(), realm, userId, credentialId).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**credentialId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **body** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: text/plain +- **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) + + +## AdminRealmsRealmUsersUserIdCredentialsGet + +> []CredentialRepresentation AdminRealmsRealmUsersUserIdCredentialsGet(ctx, realm, userId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdCredentialsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdCredentialsGet`: []CredentialRepresentation + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdCredentialsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdCredentialsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]CredentialRepresentation**](CredentialRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdDelete + +> AdminRealmsRealmUsersUserIdDelete(ctx, realm, userId).Execute() + +Delete the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdDelete(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdDisableCredentialTypesPut + +> AdminRealmsRealmUsersUserIdDisableCredentialTypesPut(ctx, realm, userId).RequestBody(requestBody).Execute() + +Disable all credentials for a user of a specific type + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + requestBody := []string{"Property_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdDisableCredentialTypesPut(context.Background(), realm, userId).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdDisableCredentialTypesPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **requestBody** | **[]string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdExecuteActionsEmailPut + +> AdminRealmsRealmUsersUserIdExecuteActionsEmailPut(ctx, realm, userId).ClientId(clientId).Lifespan(lifespan).RedirectUri(redirectUri).RequestBody(requestBody).Execute() + +Send an email to the user with a link they can click to execute particular actions. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | Client id (optional) + lifespan := int32(56) // int32 | Number of seconds after which the generated token expires (optional) + redirectUri := "redirectUri_example" // string | Redirect uri (optional) + requestBody := []string{"Property_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdExecuteActionsEmailPut(context.Background(), realm, userId).ClientId(clientId).Lifespan(lifespan).RedirectUri(redirectUri).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdExecuteActionsEmailPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **clientId** | **string** | Client id | + **lifespan** | **int32** | Number of seconds after which the generated token expires | + **redirectUri** | **string** | Redirect uri | + **requestBody** | **[]string** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdFederatedIdentityGet + +> []FederatedIdentityRepresentation AdminRealmsRealmUsersUserIdFederatedIdentityGet(ctx, realm, userId).Execute() + +Get social logins associated with the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdFederatedIdentityGet`: []FederatedIdentityRepresentation + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]FederatedIdentityRepresentation**](FederatedIdentityRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete + +> AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete(ctx, realm, userId, provider).Execute() + +Remove a social login provider from user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + provider := "provider_example" // string | Social login provider id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete(context.Background(), realm, userId, provider).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**provider** | **string** | Social login provider id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost + +> AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost(ctx, realm, userId, provider).Execute() + +Add a social login provider to the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + provider := "provider_example" // string | Social login provider id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost(context.Background(), realm, userId, provider).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**provider** | **string** | Social login provider id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdGet + +> UserRepresentation AdminRealmsRealmUsersUserIdGet(ctx, realm, userId).UserProfileMetadata(userProfileMetadata).Execute() + +Get representation of the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + userProfileMetadata := true // bool | Indicates if the user profile metadata should be added to the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGet(context.Background(), realm, userId).UserProfileMetadata(userProfileMetadata).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdGet`: UserRepresentation + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **userProfileMetadata** | **bool** | Indicates if the user profile metadata should be added to the response | + +### Return type + +[**UserRepresentation**](UserRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdGroupsCountGet + +> map[string]int64 AdminRealmsRealmUsersUserIdGroupsCountGet(ctx, realm, userId).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + search := "search_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsCountGet(context.Background(), realm, userId).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdGroupsCountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdGroupsCountGet`: map[string]int64 + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdGroupsCountGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdGroupsCountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **search** | **string** | | + +### Return type + +**map[string]int64** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdGroupsGet + +> []GroupRepresentation AdminRealmsRealmUsersUserIdGroupsGet(ctx, realm, userId).BriefRepresentation(briefRepresentation).First(first).Max(max).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + briefRepresentation := true // bool | (optional) (default to true) + first := int32(56) // int32 | (optional) + max := int32(56) // int32 | (optional) + search := "search_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsGet(context.Background(), realm, userId).BriefRepresentation(briefRepresentation).First(first).Max(max).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdGroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdGroupsGet`: []GroupRepresentation + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdGroupsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdGroupsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **briefRepresentation** | **bool** | | [default to true] + **first** | **int32** | | + **max** | **int32** | | + **search** | **string** | | + +### Return type + +[**[]GroupRepresentation**](GroupRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdGroupsGroupIdDelete + +> AdminRealmsRealmUsersUserIdGroupsGroupIdDelete(ctx, realm, userId, groupId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsGroupIdDelete(context.Background(), realm, userId, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdGroupsGroupIdDelete``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdGroupsGroupIdPut + +> AdminRealmsRealmUsersUserIdGroupsGroupIdPut(ctx, realm, userId, groupId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + groupId := "groupId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsGroupIdPut(context.Background(), realm, userId, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdGroupsGroupIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**groupId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdImpersonationPost + +> map[string]interface{} AdminRealmsRealmUsersUserIdImpersonationPost(ctx, realm, userId).Execute() + +Impersonate the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdImpersonationPost(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdImpersonationPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdImpersonationPost`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdImpersonationPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdImpersonationPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdLogoutPost + +> AdminRealmsRealmUsersUserIdLogoutPost(ctx, realm, userId).Execute() + +Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdLogoutPost(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdLogoutPost``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdLogoutPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet + +> []UserSessionRepresentation AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet(ctx, realm, userId, clientUuid).Execute() + +Get offline sessions associated with the user and client + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientUuid := "clientUuid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet(context.Background(), realm, userId, clientUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet`: []UserSessionRepresentation + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | +**clientUuid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]UserSessionRepresentation**](UserSessionRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdPut + +> AdminRealmsRealmUsersUserIdPut(ctx, realm, userId).UserRepresentation(userRepresentation).Execute() + +Update the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + userRepresentation := *openapiclient.NewUserRepresentation() // UserRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdPut(context.Background(), realm, userId).UserRepresentation(userRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **userRepresentation** | [**UserRepresentation**](UserRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdResetPasswordEmailPut + +> AdminRealmsRealmUsersUserIdResetPasswordEmailPut(ctx, realm, userId).ClientId(clientId).RedirectUri(redirectUri).Execute() + +Send an email to the user with a link they can click to reset their password. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | client id (optional) + redirectUri := "redirectUri_example" // string | redirect uri (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdResetPasswordEmailPut(context.Background(), realm, userId).ClientId(clientId).RedirectUri(redirectUri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdResetPasswordEmailPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **clientId** | **string** | client id | + **redirectUri** | **string** | redirect uri | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdResetPasswordPut + +> AdminRealmsRealmUsersUserIdResetPasswordPut(ctx, realm, userId).CredentialRepresentation(credentialRepresentation).Execute() + +Set up a new password for the user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + credentialRepresentation := *openapiclient.NewCredentialRepresentation() // CredentialRepresentation | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdResetPasswordPut(context.Background(), realm, userId).CredentialRepresentation(credentialRepresentation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdResetPasswordPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdResetPasswordPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **credentialRepresentation** | [**CredentialRepresentation**](CredentialRepresentation.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdSendVerifyEmailPut + +> AdminRealmsRealmUsersUserIdSendVerifyEmailPut(ctx, realm, userId).ClientId(clientId).Lifespan(lifespan).RedirectUri(redirectUri).Execute() + +Send an email-verification email to the user An email contains a link the user can click to verify their email address. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + clientId := "clientId_example" // string | Client id (optional) + lifespan := int32(56) // int32 | Number of seconds after which the generated token expires (optional) + redirectUri := "redirectUri_example" // string | Redirect uri (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdSendVerifyEmailPut(context.Background(), realm, userId).ClientId(clientId).Lifespan(lifespan).RedirectUri(redirectUri).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdSendVerifyEmailPut``: %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. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **clientId** | **string** | Client id | + **lifespan** | **int32** | Number of seconds after which the generated token expires | + **redirectUri** | **string** | Redirect uri | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### 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) + + +## AdminRealmsRealmUsersUserIdSessionsGet + +> []UserSessionRepresentation AdminRealmsRealmUsersUserIdSessionsGet(ctx, realm, userId).Execute() + +Get sessions associated with the user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdSessionsGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdSessionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdSessionsGet`: []UserSessionRepresentation + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdSessionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdSessionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]UserSessionRepresentation**](UserSessionRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminRealmsRealmUsersUserIdUnmanagedAttributesGet + +> map[string][]string AdminRealmsRealmUsersUserIdUnmanagedAttributesGet(ctx, realm, userId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +) + +func main() { + realm := "realm_example" // string | realm name (not id!) + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdUnmanagedAttributesGet(context.Background(), realm, userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.AdminRealmsRealmUsersUserIdUnmanagedAttributesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminRealmsRealmUsersUserIdUnmanagedAttributesGet`: map[string][]string + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.AdminRealmsRealmUsersUserIdUnmanagedAttributesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**realm** | **string** | realm name (not id!) | +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**map[string][]string**](array.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..5e16cc3 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="daytonaio" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="daytona-ee-draft/pkg/keycloak-admin-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/model_abstract_policy_representation.go b/model_abstract_policy_representation.go new file mode 100644 index 0000000..6e6bbe4 --- /dev/null +++ b/model_abstract_policy_representation.go @@ -0,0 +1,520 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AbstractPolicyRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AbstractPolicyRepresentation{} + +// AbstractPolicyRepresentation struct for AbstractPolicyRepresentation +type AbstractPolicyRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Policies []string `json:"policies,omitempty"` + Resources []string `json:"resources,omitempty"` + Scopes []string `json:"scopes,omitempty"` + Logic *Logic `json:"logic,omitempty"` + DecisionStrategy *DecisionStrategy `json:"decisionStrategy,omitempty"` + Owner *string `json:"owner,omitempty"` + ResourcesData []ResourceRepresentation `json:"resourcesData,omitempty"` + ScopesData []ScopeRepresentation `json:"scopesData,omitempty"` +} + +// NewAbstractPolicyRepresentation instantiates a new AbstractPolicyRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAbstractPolicyRepresentation() *AbstractPolicyRepresentation { + this := AbstractPolicyRepresentation{} + return &this +} + +// NewAbstractPolicyRepresentationWithDefaults instantiates a new AbstractPolicyRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAbstractPolicyRepresentationWithDefaults() *AbstractPolicyRepresentation { + this := AbstractPolicyRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) 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 *AbstractPolicyRepresentation) SetType(v string) { + o.Type = &v +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetPolicies() []string { + if o == nil || IsNil(o.Policies) { + var ret []string + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AbstractPolicyRepresentation) GetPoliciesOk() ([]string, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *AbstractPolicyRepresentation) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []string and assigns it to the Policies field. +func (o *AbstractPolicyRepresentation) SetPolicies(v []string) { + o.Policies = v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetResources() []string { + if o == nil || IsNil(o.Resources) { + var ret []string + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AbstractPolicyRepresentation) GetResourcesOk() ([]string, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *AbstractPolicyRepresentation) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []string and assigns it to the Resources field. +func (o *AbstractPolicyRepresentation) SetResources(v []string) { + o.Resources = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AbstractPolicyRepresentation) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *AbstractPolicyRepresentation) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *AbstractPolicyRepresentation) SetScopes(v []string) { + o.Scopes = v +} + +// GetLogic returns the Logic field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetLogic() Logic { + if o == nil || IsNil(o.Logic) { + var ret Logic + return ret + } + return *o.Logic +} + +// GetLogicOk returns a tuple with the Logic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AbstractPolicyRepresentation) GetLogicOk() (*Logic, bool) { + if o == nil || IsNil(o.Logic) { + return nil, false + } + return o.Logic, true +} + +// HasLogic returns a boolean if a field has been set. +func (o *AbstractPolicyRepresentation) HasLogic() bool { + if o != nil && !IsNil(o.Logic) { + return true + } + + return false +} + +// SetLogic gets a reference to the given Logic and assigns it to the Logic field. +func (o *AbstractPolicyRepresentation) SetLogic(v Logic) { + o.Logic = &v +} + +// GetDecisionStrategy returns the DecisionStrategy field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetDecisionStrategy() DecisionStrategy { + if o == nil || IsNil(o.DecisionStrategy) { + var ret DecisionStrategy + return ret + } + return *o.DecisionStrategy +} + +// GetDecisionStrategyOk returns a tuple with the DecisionStrategy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AbstractPolicyRepresentation) GetDecisionStrategyOk() (*DecisionStrategy, bool) { + if o == nil || IsNil(o.DecisionStrategy) { + return nil, false + } + return o.DecisionStrategy, true +} + +// HasDecisionStrategy returns a boolean if a field has been set. +func (o *AbstractPolicyRepresentation) HasDecisionStrategy() bool { + if o != nil && !IsNil(o.DecisionStrategy) { + return true + } + + return false +} + +// SetDecisionStrategy gets a reference to the given DecisionStrategy and assigns it to the DecisionStrategy field. +func (o *AbstractPolicyRepresentation) SetDecisionStrategy(v DecisionStrategy) { + o.DecisionStrategy = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetOwner() string { + if o == nil || IsNil(o.Owner) { + var ret string + 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 *AbstractPolicyRepresentation) GetOwnerOk() (*string, 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 *AbstractPolicyRepresentation) HasOwner() bool { + if o != nil && !IsNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *AbstractPolicyRepresentation) SetOwner(v string) { + o.Owner = &v +} + +// GetResourcesData returns the ResourcesData field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetResourcesData() []ResourceRepresentation { + if o == nil || IsNil(o.ResourcesData) { + var ret []ResourceRepresentation + return ret + } + return o.ResourcesData +} + +// GetResourcesDataOk returns a tuple with the ResourcesData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AbstractPolicyRepresentation) GetResourcesDataOk() ([]ResourceRepresentation, bool) { + if o == nil || IsNil(o.ResourcesData) { + return nil, false + } + return o.ResourcesData, true +} + +// HasResourcesData returns a boolean if a field has been set. +func (o *AbstractPolicyRepresentation) HasResourcesData() bool { + if o != nil && !IsNil(o.ResourcesData) { + return true + } + + return false +} + +// SetResourcesData gets a reference to the given []ResourceRepresentation and assigns it to the ResourcesData field. +func (o *AbstractPolicyRepresentation) SetResourcesData(v []ResourceRepresentation) { + o.ResourcesData = v +} + +// GetScopesData returns the ScopesData field value if set, zero value otherwise. +func (o *AbstractPolicyRepresentation) GetScopesData() []ScopeRepresentation { + if o == nil || IsNil(o.ScopesData) { + var ret []ScopeRepresentation + return ret + } + return o.ScopesData +} + +// GetScopesDataOk returns a tuple with the ScopesData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AbstractPolicyRepresentation) GetScopesDataOk() ([]ScopeRepresentation, bool) { + if o == nil || IsNil(o.ScopesData) { + return nil, false + } + return o.ScopesData, true +} + +// HasScopesData returns a boolean if a field has been set. +func (o *AbstractPolicyRepresentation) HasScopesData() bool { + if o != nil && !IsNil(o.ScopesData) { + return true + } + + return false +} + +// SetScopesData gets a reference to the given []ScopeRepresentation and assigns it to the ScopesData field. +func (o *AbstractPolicyRepresentation) SetScopesData(v []ScopeRepresentation) { + o.ScopesData = v +} + +func (o AbstractPolicyRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AbstractPolicyRepresentation) 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.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.Logic) { + toSerialize["logic"] = o.Logic + } + if !IsNil(o.DecisionStrategy) { + toSerialize["decisionStrategy"] = o.DecisionStrategy + } + if !IsNil(o.Owner) { + toSerialize["owner"] = o.Owner + } + if !IsNil(o.ResourcesData) { + toSerialize["resourcesData"] = o.ResourcesData + } + if !IsNil(o.ScopesData) { + toSerialize["scopesData"] = o.ScopesData + } + return toSerialize, nil +} + +type NullableAbstractPolicyRepresentation struct { + value *AbstractPolicyRepresentation + isSet bool +} + +func (v NullableAbstractPolicyRepresentation) Get() *AbstractPolicyRepresentation { + return v.value +} + +func (v *NullableAbstractPolicyRepresentation) Set(val *AbstractPolicyRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAbstractPolicyRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAbstractPolicyRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAbstractPolicyRepresentation(val *AbstractPolicyRepresentation) *NullableAbstractPolicyRepresentation { + return &NullableAbstractPolicyRepresentation{value: val, isSet: true} +} + +func (v NullableAbstractPolicyRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAbstractPolicyRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_access.go b/model_access.go new file mode 100644 index 0000000..335d232 --- /dev/null +++ b/model_access.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the Access type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Access{} + +// Access struct for Access +type Access struct { + Roles []string `json:"roles,omitempty"` + VerifyCaller *bool `json:"verify_caller,omitempty"` +} + +// NewAccess instantiates a new Access object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccess() *Access { + this := Access{} + return &this +} + +// NewAccessWithDefaults instantiates a new Access object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessWithDefaults() *Access { + this := Access{} + return &this +} + +// GetRoles returns the Roles field value if set, zero value otherwise. +func (o *Access) GetRoles() []string { + if o == nil || IsNil(o.Roles) { + var ret []string + 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 *Access) GetRolesOk() ([]string, 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 *Access) HasRoles() bool { + if o != nil && !IsNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []string and assigns it to the Roles field. +func (o *Access) SetRoles(v []string) { + o.Roles = v +} + +// GetVerifyCaller returns the VerifyCaller field value if set, zero value otherwise. +func (o *Access) GetVerifyCaller() bool { + if o == nil || IsNil(o.VerifyCaller) { + var ret bool + return ret + } + return *o.VerifyCaller +} + +// GetVerifyCallerOk returns a tuple with the VerifyCaller field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Access) GetVerifyCallerOk() (*bool, bool) { + if o == nil || IsNil(o.VerifyCaller) { + return nil, false + } + return o.VerifyCaller, true +} + +// HasVerifyCaller returns a boolean if a field has been set. +func (o *Access) HasVerifyCaller() bool { + if o != nil && !IsNil(o.VerifyCaller) { + return true + } + + return false +} + +// SetVerifyCaller gets a reference to the given bool and assigns it to the VerifyCaller field. +func (o *Access) SetVerifyCaller(v bool) { + o.VerifyCaller = &v +} + +func (o Access) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Access) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Roles) { + toSerialize["roles"] = o.Roles + } + if !IsNil(o.VerifyCaller) { + toSerialize["verify_caller"] = o.VerifyCaller + } + return toSerialize, nil +} + +type NullableAccess struct { + value *Access + isSet bool +} + +func (v NullableAccess) Get() *Access { + return v.value +} + +func (v *NullableAccess) Set(val *Access) { + v.value = val + v.isSet = true +} + +func (v NullableAccess) IsSet() bool { + return v.isSet +} + +func (v *NullableAccess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccess(val *Access) *NullableAccess { + return &NullableAccess{value: val, isSet: true} +} + +func (v NullableAccess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_access_token.go b/model_access_token.go new file mode 100644 index 0000000..09f4b0c --- /dev/null +++ b/model_access_token.go @@ -0,0 +1,1636 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AccessToken type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessToken{} + +// AccessToken struct for AccessToken +type AccessToken struct { + Jti *string `json:"jti,omitempty"` + Exp *int64 `json:"exp,omitempty"` + Nbf *int64 `json:"nbf,omitempty"` + Iat *int64 `json:"iat,omitempty"` + Iss *string `json:"iss,omitempty"` + Sub *string `json:"sub,omitempty"` + Typ *string `json:"typ,omitempty"` + Azp *string `json:"azp,omitempty"` + OtherClaims map[string]interface{} `json:"otherClaims,omitempty"` + Nonce *string `json:"nonce,omitempty"` + AuthTime *int64 `json:"auth_time,omitempty"` + Sid *string `json:"sid,omitempty"` + AtHash *string `json:"at_hash,omitempty"` + CHash *string `json:"c_hash,omitempty"` + Name *string `json:"name,omitempty"` + GivenName *string `json:"given_name,omitempty"` + FamilyName *string `json:"family_name,omitempty"` + MiddleName *string `json:"middle_name,omitempty"` + Nickname *string `json:"nickname,omitempty"` + PreferredUsername *string `json:"preferred_username,omitempty"` + Profile *string `json:"profile,omitempty"` + Picture *string `json:"picture,omitempty"` + Website *string `json:"website,omitempty"` + Email *string `json:"email,omitempty"` + EmailVerified *bool `json:"email_verified,omitempty"` + Gender *string `json:"gender,omitempty"` + Birthdate *string `json:"birthdate,omitempty"` + Zoneinfo *string `json:"zoneinfo,omitempty"` + Locale *string `json:"locale,omitempty"` + PhoneNumber *string `json:"phone_number,omitempty"` + PhoneNumberVerified *bool `json:"phone_number_verified,omitempty"` + Address *AddressClaimSet `json:"address,omitempty"` + UpdatedAt *int64 `json:"updated_at,omitempty"` + ClaimsLocales *string `json:"claims_locales,omitempty"` + Acr *string `json:"acr,omitempty"` + SHash *string `json:"s_hash,omitempty"` + TrustedCerts []string `json:"trusted-certs,omitempty"` + AllowedOrigins []string `json:"allowed-origins,omitempty"` + RealmAccess *Access `json:"realm_access,omitempty"` + ResourceAccess *map[string]Access `json:"resource_access,omitempty"` + Authorization *Authorization `json:"authorization,omitempty"` + Cnf *Confirmation `json:"cnf,omitempty"` + Scope *string `json:"scope,omitempty"` +} + +// NewAccessToken instantiates a new AccessToken object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessToken() *AccessToken { + this := AccessToken{} + return &this +} + +// NewAccessTokenWithDefaults instantiates a new AccessToken object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokenWithDefaults() *AccessToken { + this := AccessToken{} + return &this +} + +// GetJti returns the Jti field value if set, zero value otherwise. +func (o *AccessToken) GetJti() string { + if o == nil || IsNil(o.Jti) { + var ret string + return ret + } + return *o.Jti +} + +// GetJtiOk returns a tuple with the Jti field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetJtiOk() (*string, bool) { + if o == nil || IsNil(o.Jti) { + return nil, false + } + return o.Jti, true +} + +// HasJti returns a boolean if a field has been set. +func (o *AccessToken) HasJti() bool { + if o != nil && !IsNil(o.Jti) { + return true + } + + return false +} + +// SetJti gets a reference to the given string and assigns it to the Jti field. +func (o *AccessToken) SetJti(v string) { + o.Jti = &v +} + +// GetExp returns the Exp field value if set, zero value otherwise. +func (o *AccessToken) GetExp() int64 { + if o == nil || IsNil(o.Exp) { + var ret int64 + return ret + } + return *o.Exp +} + +// GetExpOk returns a tuple with the Exp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetExpOk() (*int64, bool) { + if o == nil || IsNil(o.Exp) { + return nil, false + } + return o.Exp, true +} + +// HasExp returns a boolean if a field has been set. +func (o *AccessToken) HasExp() bool { + if o != nil && !IsNil(o.Exp) { + return true + } + + return false +} + +// SetExp gets a reference to the given int64 and assigns it to the Exp field. +func (o *AccessToken) SetExp(v int64) { + o.Exp = &v +} + +// GetNbf returns the Nbf field value if set, zero value otherwise. +func (o *AccessToken) GetNbf() int64 { + if o == nil || IsNil(o.Nbf) { + var ret int64 + return ret + } + return *o.Nbf +} + +// GetNbfOk returns a tuple with the Nbf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetNbfOk() (*int64, bool) { + if o == nil || IsNil(o.Nbf) { + return nil, false + } + return o.Nbf, true +} + +// HasNbf returns a boolean if a field has been set. +func (o *AccessToken) HasNbf() bool { + if o != nil && !IsNil(o.Nbf) { + return true + } + + return false +} + +// SetNbf gets a reference to the given int64 and assigns it to the Nbf field. +func (o *AccessToken) SetNbf(v int64) { + o.Nbf = &v +} + +// GetIat returns the Iat field value if set, zero value otherwise. +func (o *AccessToken) GetIat() int64 { + if o == nil || IsNil(o.Iat) { + var ret int64 + return ret + } + return *o.Iat +} + +// GetIatOk returns a tuple with the Iat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetIatOk() (*int64, bool) { + if o == nil || IsNil(o.Iat) { + return nil, false + } + return o.Iat, true +} + +// HasIat returns a boolean if a field has been set. +func (o *AccessToken) HasIat() bool { + if o != nil && !IsNil(o.Iat) { + return true + } + + return false +} + +// SetIat gets a reference to the given int64 and assigns it to the Iat field. +func (o *AccessToken) SetIat(v int64) { + o.Iat = &v +} + +// GetIss returns the Iss field value if set, zero value otherwise. +func (o *AccessToken) GetIss() string { + if o == nil || IsNil(o.Iss) { + var ret string + return ret + } + return *o.Iss +} + +// GetIssOk returns a tuple with the Iss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetIssOk() (*string, bool) { + if o == nil || IsNil(o.Iss) { + return nil, false + } + return o.Iss, true +} + +// HasIss returns a boolean if a field has been set. +func (o *AccessToken) HasIss() bool { + if o != nil && !IsNil(o.Iss) { + return true + } + + return false +} + +// SetIss gets a reference to the given string and assigns it to the Iss field. +func (o *AccessToken) SetIss(v string) { + o.Iss = &v +} + +// GetSub returns the Sub field value if set, zero value otherwise. +func (o *AccessToken) GetSub() string { + if o == nil || IsNil(o.Sub) { + var ret string + return ret + } + return *o.Sub +} + +// GetSubOk returns a tuple with the Sub field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetSubOk() (*string, bool) { + if o == nil || IsNil(o.Sub) { + return nil, false + } + return o.Sub, true +} + +// HasSub returns a boolean if a field has been set. +func (o *AccessToken) HasSub() bool { + if o != nil && !IsNil(o.Sub) { + return true + } + + return false +} + +// SetSub gets a reference to the given string and assigns it to the Sub field. +func (o *AccessToken) SetSub(v string) { + o.Sub = &v +} + +// GetTyp returns the Typ field value if set, zero value otherwise. +func (o *AccessToken) GetTyp() string { + if o == nil || IsNil(o.Typ) { + var ret string + return ret + } + return *o.Typ +} + +// GetTypOk returns a tuple with the Typ field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetTypOk() (*string, bool) { + if o == nil || IsNil(o.Typ) { + return nil, false + } + return o.Typ, true +} + +// HasTyp returns a boolean if a field has been set. +func (o *AccessToken) HasTyp() bool { + if o != nil && !IsNil(o.Typ) { + return true + } + + return false +} + +// SetTyp gets a reference to the given string and assigns it to the Typ field. +func (o *AccessToken) SetTyp(v string) { + o.Typ = &v +} + +// GetAzp returns the Azp field value if set, zero value otherwise. +func (o *AccessToken) GetAzp() string { + if o == nil || IsNil(o.Azp) { + var ret string + return ret + } + return *o.Azp +} + +// GetAzpOk returns a tuple with the Azp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetAzpOk() (*string, bool) { + if o == nil || IsNil(o.Azp) { + return nil, false + } + return o.Azp, true +} + +// HasAzp returns a boolean if a field has been set. +func (o *AccessToken) HasAzp() bool { + if o != nil && !IsNil(o.Azp) { + return true + } + + return false +} + +// SetAzp gets a reference to the given string and assigns it to the Azp field. +func (o *AccessToken) SetAzp(v string) { + o.Azp = &v +} + +// GetOtherClaims returns the OtherClaims field value if set, zero value otherwise. +func (o *AccessToken) GetOtherClaims() map[string]interface{} { + if o == nil || IsNil(o.OtherClaims) { + var ret map[string]interface{} + return ret + } + return o.OtherClaims +} + +// GetOtherClaimsOk returns a tuple with the OtherClaims field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetOtherClaimsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.OtherClaims) { + return map[string]interface{}{}, false + } + return o.OtherClaims, true +} + +// HasOtherClaims returns a boolean if a field has been set. +func (o *AccessToken) HasOtherClaims() bool { + if o != nil && !IsNil(o.OtherClaims) { + return true + } + + return false +} + +// SetOtherClaims gets a reference to the given map[string]interface{} and assigns it to the OtherClaims field. +func (o *AccessToken) SetOtherClaims(v map[string]interface{}) { + o.OtherClaims = v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *AccessToken) GetNonce() string { + if o == nil || IsNil(o.Nonce) { + var ret string + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetNonceOk() (*string, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *AccessToken) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given string and assigns it to the Nonce field. +func (o *AccessToken) SetNonce(v string) { + o.Nonce = &v +} + +// GetAuthTime returns the AuthTime field value if set, zero value otherwise. +func (o *AccessToken) GetAuthTime() int64 { + if o == nil || IsNil(o.AuthTime) { + var ret int64 + return ret + } + return *o.AuthTime +} + +// GetAuthTimeOk returns a tuple with the AuthTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetAuthTimeOk() (*int64, bool) { + if o == nil || IsNil(o.AuthTime) { + return nil, false + } + return o.AuthTime, true +} + +// HasAuthTime returns a boolean if a field has been set. +func (o *AccessToken) HasAuthTime() bool { + if o != nil && !IsNil(o.AuthTime) { + return true + } + + return false +} + +// SetAuthTime gets a reference to the given int64 and assigns it to the AuthTime field. +func (o *AccessToken) SetAuthTime(v int64) { + o.AuthTime = &v +} + +// GetSid returns the Sid field value if set, zero value otherwise. +func (o *AccessToken) 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 *AccessToken) 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 *AccessToken) 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 *AccessToken) SetSid(v string) { + o.Sid = &v +} + +// GetAtHash returns the AtHash field value if set, zero value otherwise. +func (o *AccessToken) GetAtHash() string { + if o == nil || IsNil(o.AtHash) { + var ret string + return ret + } + return *o.AtHash +} + +// GetAtHashOk returns a tuple with the AtHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetAtHashOk() (*string, bool) { + if o == nil || IsNil(o.AtHash) { + return nil, false + } + return o.AtHash, true +} + +// HasAtHash returns a boolean if a field has been set. +func (o *AccessToken) HasAtHash() bool { + if o != nil && !IsNil(o.AtHash) { + return true + } + + return false +} + +// SetAtHash gets a reference to the given string and assigns it to the AtHash field. +func (o *AccessToken) SetAtHash(v string) { + o.AtHash = &v +} + +// GetCHash returns the CHash field value if set, zero value otherwise. +func (o *AccessToken) GetCHash() string { + if o == nil || IsNil(o.CHash) { + var ret string + return ret + } + return *o.CHash +} + +// GetCHashOk returns a tuple with the CHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetCHashOk() (*string, bool) { + if o == nil || IsNil(o.CHash) { + return nil, false + } + return o.CHash, true +} + +// HasCHash returns a boolean if a field has been set. +func (o *AccessToken) HasCHash() bool { + if o != nil && !IsNil(o.CHash) { + return true + } + + return false +} + +// SetCHash gets a reference to the given string and assigns it to the CHash field. +func (o *AccessToken) SetCHash(v string) { + o.CHash = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AccessToken) 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 *AccessToken) 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 *AccessToken) 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 *AccessToken) SetName(v string) { + o.Name = &v +} + +// GetGivenName returns the GivenName field value if set, zero value otherwise. +func (o *AccessToken) GetGivenName() string { + if o == nil || IsNil(o.GivenName) { + var ret string + return ret + } + return *o.GivenName +} + +// GetGivenNameOk returns a tuple with the GivenName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetGivenNameOk() (*string, bool) { + if o == nil || IsNil(o.GivenName) { + return nil, false + } + return o.GivenName, true +} + +// HasGivenName returns a boolean if a field has been set. +func (o *AccessToken) HasGivenName() bool { + if o != nil && !IsNil(o.GivenName) { + return true + } + + return false +} + +// SetGivenName gets a reference to the given string and assigns it to the GivenName field. +func (o *AccessToken) SetGivenName(v string) { + o.GivenName = &v +} + +// GetFamilyName returns the FamilyName field value if set, zero value otherwise. +func (o *AccessToken) GetFamilyName() string { + if o == nil || IsNil(o.FamilyName) { + var ret string + return ret + } + return *o.FamilyName +} + +// GetFamilyNameOk returns a tuple with the FamilyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetFamilyNameOk() (*string, bool) { + if o == nil || IsNil(o.FamilyName) { + return nil, false + } + return o.FamilyName, true +} + +// HasFamilyName returns a boolean if a field has been set. +func (o *AccessToken) HasFamilyName() bool { + if o != nil && !IsNil(o.FamilyName) { + return true + } + + return false +} + +// SetFamilyName gets a reference to the given string and assigns it to the FamilyName field. +func (o *AccessToken) SetFamilyName(v string) { + o.FamilyName = &v +} + +// GetMiddleName returns the MiddleName field value if set, zero value otherwise. +func (o *AccessToken) GetMiddleName() string { + if o == nil || IsNil(o.MiddleName) { + var ret string + return ret + } + return *o.MiddleName +} + +// GetMiddleNameOk returns a tuple with the MiddleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetMiddleNameOk() (*string, bool) { + if o == nil || IsNil(o.MiddleName) { + return nil, false + } + return o.MiddleName, true +} + +// HasMiddleName returns a boolean if a field has been set. +func (o *AccessToken) HasMiddleName() bool { + if o != nil && !IsNil(o.MiddleName) { + return true + } + + return false +} + +// SetMiddleName gets a reference to the given string and assigns it to the MiddleName field. +func (o *AccessToken) SetMiddleName(v string) { + o.MiddleName = &v +} + +// GetNickname returns the Nickname field value if set, zero value otherwise. +func (o *AccessToken) GetNickname() string { + if o == nil || IsNil(o.Nickname) { + var ret string + return ret + } + return *o.Nickname +} + +// GetNicknameOk returns a tuple with the Nickname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetNicknameOk() (*string, bool) { + if o == nil || IsNil(o.Nickname) { + return nil, false + } + return o.Nickname, true +} + +// HasNickname returns a boolean if a field has been set. +func (o *AccessToken) HasNickname() bool { + if o != nil && !IsNil(o.Nickname) { + return true + } + + return false +} + +// SetNickname gets a reference to the given string and assigns it to the Nickname field. +func (o *AccessToken) SetNickname(v string) { + o.Nickname = &v +} + +// GetPreferredUsername returns the PreferredUsername field value if set, zero value otherwise. +func (o *AccessToken) GetPreferredUsername() string { + if o == nil || IsNil(o.PreferredUsername) { + var ret string + return ret + } + return *o.PreferredUsername +} + +// GetPreferredUsernameOk returns a tuple with the PreferredUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetPreferredUsernameOk() (*string, bool) { + if o == nil || IsNil(o.PreferredUsername) { + return nil, false + } + return o.PreferredUsername, true +} + +// HasPreferredUsername returns a boolean if a field has been set. +func (o *AccessToken) HasPreferredUsername() bool { + if o != nil && !IsNil(o.PreferredUsername) { + return true + } + + return false +} + +// SetPreferredUsername gets a reference to the given string and assigns it to the PreferredUsername field. +func (o *AccessToken) SetPreferredUsername(v string) { + o.PreferredUsername = &v +} + +// GetProfile returns the Profile field value if set, zero value otherwise. +func (o *AccessToken) GetProfile() string { + if o == nil || IsNil(o.Profile) { + var ret string + return ret + } + return *o.Profile +} + +// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetProfileOk() (*string, bool) { + if o == nil || IsNil(o.Profile) { + return nil, false + } + return o.Profile, true +} + +// HasProfile returns a boolean if a field has been set. +func (o *AccessToken) HasProfile() bool { + if o != nil && !IsNil(o.Profile) { + return true + } + + return false +} + +// SetProfile gets a reference to the given string and assigns it to the Profile field. +func (o *AccessToken) SetProfile(v string) { + o.Profile = &v +} + +// GetPicture returns the Picture field value if set, zero value otherwise. +func (o *AccessToken) GetPicture() string { + if o == nil || IsNil(o.Picture) { + var ret string + return ret + } + return *o.Picture +} + +// GetPictureOk returns a tuple with the Picture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetPictureOk() (*string, bool) { + if o == nil || IsNil(o.Picture) { + return nil, false + } + return o.Picture, true +} + +// HasPicture returns a boolean if a field has been set. +func (o *AccessToken) HasPicture() bool { + if o != nil && !IsNil(o.Picture) { + return true + } + + return false +} + +// SetPicture gets a reference to the given string and assigns it to the Picture field. +func (o *AccessToken) SetPicture(v string) { + o.Picture = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *AccessToken) GetWebsite() string { + if o == nil || IsNil(o.Website) { + var ret string + return ret + } + return *o.Website +} + +// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetWebsiteOk() (*string, bool) { + if o == nil || IsNil(o.Website) { + return nil, false + } + return o.Website, true +} + +// HasWebsite returns a boolean if a field has been set. +func (o *AccessToken) HasWebsite() bool { + if o != nil && !IsNil(o.Website) { + return true + } + + return false +} + +// SetWebsite gets a reference to the given string and assigns it to the Website field. +func (o *AccessToken) SetWebsite(v string) { + o.Website = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *AccessToken) 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 *AccessToken) 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 *AccessToken) 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 *AccessToken) SetEmail(v string) { + o.Email = &v +} + +// GetEmailVerified returns the EmailVerified field value if set, zero value otherwise. +func (o *AccessToken) GetEmailVerified() bool { + if o == nil || IsNil(o.EmailVerified) { + var ret bool + return ret + } + return *o.EmailVerified +} + +// GetEmailVerifiedOk returns a tuple with the EmailVerified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetEmailVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.EmailVerified) { + return nil, false + } + return o.EmailVerified, true +} + +// HasEmailVerified returns a boolean if a field has been set. +func (o *AccessToken) HasEmailVerified() bool { + if o != nil && !IsNil(o.EmailVerified) { + return true + } + + return false +} + +// SetEmailVerified gets a reference to the given bool and assigns it to the EmailVerified field. +func (o *AccessToken) SetEmailVerified(v bool) { + o.EmailVerified = &v +} + +// GetGender returns the Gender field value if set, zero value otherwise. +func (o *AccessToken) GetGender() string { + if o == nil || IsNil(o.Gender) { + var ret string + return ret + } + return *o.Gender +} + +// GetGenderOk returns a tuple with the Gender field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetGenderOk() (*string, bool) { + if o == nil || IsNil(o.Gender) { + return nil, false + } + return o.Gender, true +} + +// HasGender returns a boolean if a field has been set. +func (o *AccessToken) HasGender() bool { + if o != nil && !IsNil(o.Gender) { + return true + } + + return false +} + +// SetGender gets a reference to the given string and assigns it to the Gender field. +func (o *AccessToken) SetGender(v string) { + o.Gender = &v +} + +// GetBirthdate returns the Birthdate field value if set, zero value otherwise. +func (o *AccessToken) GetBirthdate() string { + if o == nil || IsNil(o.Birthdate) { + var ret string + return ret + } + return *o.Birthdate +} + +// GetBirthdateOk returns a tuple with the Birthdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetBirthdateOk() (*string, bool) { + if o == nil || IsNil(o.Birthdate) { + return nil, false + } + return o.Birthdate, true +} + +// HasBirthdate returns a boolean if a field has been set. +func (o *AccessToken) HasBirthdate() bool { + if o != nil && !IsNil(o.Birthdate) { + return true + } + + return false +} + +// SetBirthdate gets a reference to the given string and assigns it to the Birthdate field. +func (o *AccessToken) SetBirthdate(v string) { + o.Birthdate = &v +} + +// GetZoneinfo returns the Zoneinfo field value if set, zero value otherwise. +func (o *AccessToken) GetZoneinfo() string { + if o == nil || IsNil(o.Zoneinfo) { + var ret string + return ret + } + return *o.Zoneinfo +} + +// GetZoneinfoOk returns a tuple with the Zoneinfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetZoneinfoOk() (*string, bool) { + if o == nil || IsNil(o.Zoneinfo) { + return nil, false + } + return o.Zoneinfo, true +} + +// HasZoneinfo returns a boolean if a field has been set. +func (o *AccessToken) HasZoneinfo() bool { + if o != nil && !IsNil(o.Zoneinfo) { + return true + } + + return false +} + +// SetZoneinfo gets a reference to the given string and assigns it to the Zoneinfo field. +func (o *AccessToken) SetZoneinfo(v string) { + o.Zoneinfo = &v +} + +// GetLocale returns the Locale field value if set, zero value otherwise. +func (o *AccessToken) GetLocale() string { + if o == nil || IsNil(o.Locale) { + var ret string + return ret + } + return *o.Locale +} + +// GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetLocaleOk() (*string, bool) { + if o == nil || IsNil(o.Locale) { + return nil, false + } + return o.Locale, true +} + +// HasLocale returns a boolean if a field has been set. +func (o *AccessToken) HasLocale() bool { + if o != nil && !IsNil(o.Locale) { + return true + } + + return false +} + +// SetLocale gets a reference to the given string and assigns it to the Locale field. +func (o *AccessToken) SetLocale(v string) { + o.Locale = &v +} + +// GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise. +func (o *AccessToken) GetPhoneNumber() string { + if o == nil || IsNil(o.PhoneNumber) { + var ret string + return ret + } + return *o.PhoneNumber +} + +// GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetPhoneNumberOk() (*string, bool) { + if o == nil || IsNil(o.PhoneNumber) { + return nil, false + } + return o.PhoneNumber, true +} + +// HasPhoneNumber returns a boolean if a field has been set. +func (o *AccessToken) HasPhoneNumber() bool { + if o != nil && !IsNil(o.PhoneNumber) { + return true + } + + return false +} + +// SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field. +func (o *AccessToken) SetPhoneNumber(v string) { + o.PhoneNumber = &v +} + +// GetPhoneNumberVerified returns the PhoneNumberVerified field value if set, zero value otherwise. +func (o *AccessToken) GetPhoneNumberVerified() bool { + if o == nil || IsNil(o.PhoneNumberVerified) { + var ret bool + return ret + } + return *o.PhoneNumberVerified +} + +// GetPhoneNumberVerifiedOk returns a tuple with the PhoneNumberVerified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetPhoneNumberVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.PhoneNumberVerified) { + return nil, false + } + return o.PhoneNumberVerified, true +} + +// HasPhoneNumberVerified returns a boolean if a field has been set. +func (o *AccessToken) HasPhoneNumberVerified() bool { + if o != nil && !IsNil(o.PhoneNumberVerified) { + return true + } + + return false +} + +// SetPhoneNumberVerified gets a reference to the given bool and assigns it to the PhoneNumberVerified field. +func (o *AccessToken) SetPhoneNumberVerified(v bool) { + o.PhoneNumberVerified = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *AccessToken) GetAddress() AddressClaimSet { + if o == nil || IsNil(o.Address) { + var ret AddressClaimSet + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetAddressOk() (*AddressClaimSet, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *AccessToken) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given AddressClaimSet and assigns it to the Address field. +func (o *AccessToken) SetAddress(v AddressClaimSet) { + o.Address = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AccessToken) GetUpdatedAt() int64 { + if o == nil || IsNil(o.UpdatedAt) { + var ret int64 + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetUpdatedAtOk() (*int64, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AccessToken) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field. +func (o *AccessToken) SetUpdatedAt(v int64) { + o.UpdatedAt = &v +} + +// GetClaimsLocales returns the ClaimsLocales field value if set, zero value otherwise. +func (o *AccessToken) GetClaimsLocales() string { + if o == nil || IsNil(o.ClaimsLocales) { + var ret string + return ret + } + return *o.ClaimsLocales +} + +// GetClaimsLocalesOk returns a tuple with the ClaimsLocales field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetClaimsLocalesOk() (*string, bool) { + if o == nil || IsNil(o.ClaimsLocales) { + return nil, false + } + return o.ClaimsLocales, true +} + +// HasClaimsLocales returns a boolean if a field has been set. +func (o *AccessToken) HasClaimsLocales() bool { + if o != nil && !IsNil(o.ClaimsLocales) { + return true + } + + return false +} + +// SetClaimsLocales gets a reference to the given string and assigns it to the ClaimsLocales field. +func (o *AccessToken) SetClaimsLocales(v string) { + o.ClaimsLocales = &v +} + +// GetAcr returns the Acr field value if set, zero value otherwise. +func (o *AccessToken) GetAcr() string { + if o == nil || IsNil(o.Acr) { + var ret string + return ret + } + return *o.Acr +} + +// GetAcrOk returns a tuple with the Acr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetAcrOk() (*string, bool) { + if o == nil || IsNil(o.Acr) { + return nil, false + } + return o.Acr, true +} + +// HasAcr returns a boolean if a field has been set. +func (o *AccessToken) HasAcr() bool { + if o != nil && !IsNil(o.Acr) { + return true + } + + return false +} + +// SetAcr gets a reference to the given string and assigns it to the Acr field. +func (o *AccessToken) SetAcr(v string) { + o.Acr = &v +} + +// GetSHash returns the SHash field value if set, zero value otherwise. +func (o *AccessToken) GetSHash() string { + if o == nil || IsNil(o.SHash) { + var ret string + return ret + } + return *o.SHash +} + +// GetSHashOk returns a tuple with the SHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetSHashOk() (*string, bool) { + if o == nil || IsNil(o.SHash) { + return nil, false + } + return o.SHash, true +} + +// HasSHash returns a boolean if a field has been set. +func (o *AccessToken) HasSHash() bool { + if o != nil && !IsNil(o.SHash) { + return true + } + + return false +} + +// SetSHash gets a reference to the given string and assigns it to the SHash field. +func (o *AccessToken) SetSHash(v string) { + o.SHash = &v +} + +// GetTrustedCerts returns the TrustedCerts field value if set, zero value otherwise. +func (o *AccessToken) GetTrustedCerts() []string { + if o == nil || IsNil(o.TrustedCerts) { + var ret []string + return ret + } + return o.TrustedCerts +} + +// GetTrustedCertsOk returns a tuple with the TrustedCerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetTrustedCertsOk() ([]string, bool) { + if o == nil || IsNil(o.TrustedCerts) { + return nil, false + } + return o.TrustedCerts, true +} + +// HasTrustedCerts returns a boolean if a field has been set. +func (o *AccessToken) HasTrustedCerts() bool { + if o != nil && !IsNil(o.TrustedCerts) { + return true + } + + return false +} + +// SetTrustedCerts gets a reference to the given []string and assigns it to the TrustedCerts field. +func (o *AccessToken) SetTrustedCerts(v []string) { + o.TrustedCerts = v +} + +// GetAllowedOrigins returns the AllowedOrigins field value if set, zero value otherwise. +func (o *AccessToken) GetAllowedOrigins() []string { + if o == nil || IsNil(o.AllowedOrigins) { + var ret []string + return ret + } + return o.AllowedOrigins +} + +// GetAllowedOriginsOk returns a tuple with the AllowedOrigins field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetAllowedOriginsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedOrigins) { + return nil, false + } + return o.AllowedOrigins, true +} + +// HasAllowedOrigins returns a boolean if a field has been set. +func (o *AccessToken) HasAllowedOrigins() bool { + if o != nil && !IsNil(o.AllowedOrigins) { + return true + } + + return false +} + +// SetAllowedOrigins gets a reference to the given []string and assigns it to the AllowedOrigins field. +func (o *AccessToken) SetAllowedOrigins(v []string) { + o.AllowedOrigins = v +} + +// GetRealmAccess returns the RealmAccess field value if set, zero value otherwise. +func (o *AccessToken) GetRealmAccess() Access { + if o == nil || IsNil(o.RealmAccess) { + var ret Access + return ret + } + return *o.RealmAccess +} + +// GetRealmAccessOk returns a tuple with the RealmAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetRealmAccessOk() (*Access, bool) { + if o == nil || IsNil(o.RealmAccess) { + return nil, false + } + return o.RealmAccess, true +} + +// HasRealmAccess returns a boolean if a field has been set. +func (o *AccessToken) HasRealmAccess() bool { + if o != nil && !IsNil(o.RealmAccess) { + return true + } + + return false +} + +// SetRealmAccess gets a reference to the given Access and assigns it to the RealmAccess field. +func (o *AccessToken) SetRealmAccess(v Access) { + o.RealmAccess = &v +} + +// GetResourceAccess returns the ResourceAccess field value if set, zero value otherwise. +func (o *AccessToken) GetResourceAccess() map[string]Access { + if o == nil || IsNil(o.ResourceAccess) { + var ret map[string]Access + return ret + } + return *o.ResourceAccess +} + +// GetResourceAccessOk returns a tuple with the ResourceAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetResourceAccessOk() (*map[string]Access, bool) { + if o == nil || IsNil(o.ResourceAccess) { + return nil, false + } + return o.ResourceAccess, true +} + +// HasResourceAccess returns a boolean if a field has been set. +func (o *AccessToken) HasResourceAccess() bool { + if o != nil && !IsNil(o.ResourceAccess) { + return true + } + + return false +} + +// SetResourceAccess gets a reference to the given map[string]Access and assigns it to the ResourceAccess field. +func (o *AccessToken) SetResourceAccess(v map[string]Access) { + o.ResourceAccess = &v +} + +// GetAuthorization returns the Authorization field value if set, zero value otherwise. +func (o *AccessToken) GetAuthorization() Authorization { + if o == nil || IsNil(o.Authorization) { + var ret Authorization + return ret + } + return *o.Authorization +} + +// GetAuthorizationOk returns a tuple with the Authorization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetAuthorizationOk() (*Authorization, bool) { + if o == nil || IsNil(o.Authorization) { + return nil, false + } + return o.Authorization, true +} + +// HasAuthorization returns a boolean if a field has been set. +func (o *AccessToken) HasAuthorization() bool { + if o != nil && !IsNil(o.Authorization) { + return true + } + + return false +} + +// SetAuthorization gets a reference to the given Authorization and assigns it to the Authorization field. +func (o *AccessToken) SetAuthorization(v Authorization) { + o.Authorization = &v +} + +// GetCnf returns the Cnf field value if set, zero value otherwise. +func (o *AccessToken) GetCnf() Confirmation { + if o == nil || IsNil(o.Cnf) { + var ret Confirmation + return ret + } + return *o.Cnf +} + +// GetCnfOk returns a tuple with the Cnf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetCnfOk() (*Confirmation, bool) { + if o == nil || IsNil(o.Cnf) { + return nil, false + } + return o.Cnf, true +} + +// HasCnf returns a boolean if a field has been set. +func (o *AccessToken) HasCnf() bool { + if o != nil && !IsNil(o.Cnf) { + return true + } + + return false +} + +// SetCnf gets a reference to the given Confirmation and assigns it to the Cnf field. +func (o *AccessToken) SetCnf(v Confirmation) { + o.Cnf = &v +} + +// GetScope returns the Scope field value if set, zero value otherwise. +func (o *AccessToken) GetScope() string { + if o == nil || IsNil(o.Scope) { + var ret string + return ret + } + return *o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetScopeOk() (*string, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *AccessToken) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given string and assigns it to the Scope field. +func (o *AccessToken) SetScope(v string) { + o.Scope = &v +} + +func (o AccessToken) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessToken) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Jti) { + toSerialize["jti"] = o.Jti + } + if !IsNil(o.Exp) { + toSerialize["exp"] = o.Exp + } + if !IsNil(o.Nbf) { + toSerialize["nbf"] = o.Nbf + } + if !IsNil(o.Iat) { + toSerialize["iat"] = o.Iat + } + if !IsNil(o.Iss) { + toSerialize["iss"] = o.Iss + } + if !IsNil(o.Sub) { + toSerialize["sub"] = o.Sub + } + if !IsNil(o.Typ) { + toSerialize["typ"] = o.Typ + } + if !IsNil(o.Azp) { + toSerialize["azp"] = o.Azp + } + if !IsNil(o.OtherClaims) { + toSerialize["otherClaims"] = o.OtherClaims + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.AuthTime) { + toSerialize["auth_time"] = o.AuthTime + } + if !IsNil(o.Sid) { + toSerialize["sid"] = o.Sid + } + if !IsNil(o.AtHash) { + toSerialize["at_hash"] = o.AtHash + } + if !IsNil(o.CHash) { + toSerialize["c_hash"] = o.CHash + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.GivenName) { + toSerialize["given_name"] = o.GivenName + } + if !IsNil(o.FamilyName) { + toSerialize["family_name"] = o.FamilyName + } + if !IsNil(o.MiddleName) { + toSerialize["middle_name"] = o.MiddleName + } + if !IsNil(o.Nickname) { + toSerialize["nickname"] = o.Nickname + } + if !IsNil(o.PreferredUsername) { + toSerialize["preferred_username"] = o.PreferredUsername + } + if !IsNil(o.Profile) { + toSerialize["profile"] = o.Profile + } + if !IsNil(o.Picture) { + toSerialize["picture"] = o.Picture + } + if !IsNil(o.Website) { + toSerialize["website"] = o.Website + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.EmailVerified) { + toSerialize["email_verified"] = o.EmailVerified + } + if !IsNil(o.Gender) { + toSerialize["gender"] = o.Gender + } + if !IsNil(o.Birthdate) { + toSerialize["birthdate"] = o.Birthdate + } + if !IsNil(o.Zoneinfo) { + toSerialize["zoneinfo"] = o.Zoneinfo + } + if !IsNil(o.Locale) { + toSerialize["locale"] = o.Locale + } + if !IsNil(o.PhoneNumber) { + toSerialize["phone_number"] = o.PhoneNumber + } + if !IsNil(o.PhoneNumberVerified) { + toSerialize["phone_number_verified"] = o.PhoneNumberVerified + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.ClaimsLocales) { + toSerialize["claims_locales"] = o.ClaimsLocales + } + if !IsNil(o.Acr) { + toSerialize["acr"] = o.Acr + } + if !IsNil(o.SHash) { + toSerialize["s_hash"] = o.SHash + } + if !IsNil(o.TrustedCerts) { + toSerialize["trusted-certs"] = o.TrustedCerts + } + if !IsNil(o.AllowedOrigins) { + toSerialize["allowed-origins"] = o.AllowedOrigins + } + if !IsNil(o.RealmAccess) { + toSerialize["realm_access"] = o.RealmAccess + } + if !IsNil(o.ResourceAccess) { + toSerialize["resource_access"] = o.ResourceAccess + } + if !IsNil(o.Authorization) { + toSerialize["authorization"] = o.Authorization + } + if !IsNil(o.Cnf) { + toSerialize["cnf"] = o.Cnf + } + if !IsNil(o.Scope) { + toSerialize["scope"] = o.Scope + } + return toSerialize, nil +} + +type NullableAccessToken struct { + value *AccessToken + isSet bool +} + +func (v NullableAccessToken) Get() *AccessToken { + return v.value +} + +func (v *NullableAccessToken) Set(val *AccessToken) { + v.value = val + v.isSet = true +} + +func (v NullableAccessToken) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessToken(val *AccessToken) *NullableAccessToken { + return &NullableAccessToken{value: val, isSet: true} +} + +func (v NullableAccessToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_address_claim_set.go b/model_address_claim_set.go new file mode 100644 index 0000000..b1bde08 --- /dev/null +++ b/model_address_claim_set.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AddressClaimSet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressClaimSet{} + +// AddressClaimSet struct for AddressClaimSet +type AddressClaimSet struct { + Formatted *string `json:"formatted,omitempty"` + StreetAddress *string `json:"street_address,omitempty"` + Locality *string `json:"locality,omitempty"` + Region *string `json:"region,omitempty"` + PostalCode *string `json:"postal_code,omitempty"` + Country *string `json:"country,omitempty"` +} + +// NewAddressClaimSet instantiates a new AddressClaimSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddressClaimSet() *AddressClaimSet { + this := AddressClaimSet{} + return &this +} + +// NewAddressClaimSetWithDefaults instantiates a new AddressClaimSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddressClaimSetWithDefaults() *AddressClaimSet { + this := AddressClaimSet{} + return &this +} + +// GetFormatted returns the Formatted field value if set, zero value otherwise. +func (o *AddressClaimSet) GetFormatted() string { + if o == nil || IsNil(o.Formatted) { + var ret string + return ret + } + return *o.Formatted +} + +// GetFormattedOk returns a tuple with the Formatted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressClaimSet) GetFormattedOk() (*string, bool) { + if o == nil || IsNil(o.Formatted) { + return nil, false + } + return o.Formatted, true +} + +// HasFormatted returns a boolean if a field has been set. +func (o *AddressClaimSet) HasFormatted() bool { + if o != nil && !IsNil(o.Formatted) { + return true + } + + return false +} + +// SetFormatted gets a reference to the given string and assigns it to the Formatted field. +func (o *AddressClaimSet) SetFormatted(v string) { + o.Formatted = &v +} + +// GetStreetAddress returns the StreetAddress field value if set, zero value otherwise. +func (o *AddressClaimSet) GetStreetAddress() string { + if o == nil || IsNil(o.StreetAddress) { + var ret string + return ret + } + return *o.StreetAddress +} + +// GetStreetAddressOk returns a tuple with the StreetAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressClaimSet) GetStreetAddressOk() (*string, bool) { + if o == nil || IsNil(o.StreetAddress) { + return nil, false + } + return o.StreetAddress, true +} + +// HasStreetAddress returns a boolean if a field has been set. +func (o *AddressClaimSet) HasStreetAddress() bool { + if o != nil && !IsNil(o.StreetAddress) { + return true + } + + return false +} + +// SetStreetAddress gets a reference to the given string and assigns it to the StreetAddress field. +func (o *AddressClaimSet) SetStreetAddress(v string) { + o.StreetAddress = &v +} + +// GetLocality returns the Locality field value if set, zero value otherwise. +func (o *AddressClaimSet) GetLocality() string { + if o == nil || IsNil(o.Locality) { + var ret string + return ret + } + return *o.Locality +} + +// GetLocalityOk returns a tuple with the Locality field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressClaimSet) GetLocalityOk() (*string, bool) { + if o == nil || IsNil(o.Locality) { + return nil, false + } + return o.Locality, true +} + +// HasLocality returns a boolean if a field has been set. +func (o *AddressClaimSet) HasLocality() bool { + if o != nil && !IsNil(o.Locality) { + return true + } + + return false +} + +// SetLocality gets a reference to the given string and assigns it to the Locality field. +func (o *AddressClaimSet) SetLocality(v string) { + o.Locality = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *AddressClaimSet) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressClaimSet) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *AddressClaimSet) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *AddressClaimSet) SetRegion(v string) { + o.Region = &v +} + +// GetPostalCode returns the PostalCode field value if set, zero value otherwise. +func (o *AddressClaimSet) GetPostalCode() string { + if o == nil || IsNil(o.PostalCode) { + var ret string + return ret + } + return *o.PostalCode +} + +// GetPostalCodeOk returns a tuple with the PostalCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressClaimSet) GetPostalCodeOk() (*string, bool) { + if o == nil || IsNil(o.PostalCode) { + return nil, false + } + return o.PostalCode, true +} + +// HasPostalCode returns a boolean if a field has been set. +func (o *AddressClaimSet) HasPostalCode() bool { + if o != nil && !IsNil(o.PostalCode) { + return true + } + + return false +} + +// SetPostalCode gets a reference to the given string and assigns it to the PostalCode field. +func (o *AddressClaimSet) SetPostalCode(v string) { + o.PostalCode = &v +} + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *AddressClaimSet) GetCountry() string { + if o == nil || IsNil(o.Country) { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressClaimSet) GetCountryOk() (*string, bool) { + if o == nil || IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *AddressClaimSet) HasCountry() bool { + if o != nil && !IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *AddressClaimSet) SetCountry(v string) { + o.Country = &v +} + +func (o AddressClaimSet) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddressClaimSet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Formatted) { + toSerialize["formatted"] = o.Formatted + } + if !IsNil(o.StreetAddress) { + toSerialize["street_address"] = o.StreetAddress + } + if !IsNil(o.Locality) { + toSerialize["locality"] = o.Locality + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.PostalCode) { + toSerialize["postal_code"] = o.PostalCode + } + if !IsNil(o.Country) { + toSerialize["country"] = o.Country + } + return toSerialize, nil +} + +type NullableAddressClaimSet struct { + value *AddressClaimSet + isSet bool +} + +func (v NullableAddressClaimSet) Get() *AddressClaimSet { + return v.value +} + +func (v *NullableAddressClaimSet) Set(val *AddressClaimSet) { + v.value = val + v.isSet = true +} + +func (v NullableAddressClaimSet) IsSet() bool { + return v.isSet +} + +func (v *NullableAddressClaimSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddressClaimSet(val *AddressClaimSet) *NullableAddressClaimSet { + return &NullableAddressClaimSet{value: val, isSet: true} +} + +func (v NullableAddressClaimSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddressClaimSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_admin_event_representation.go b/model_admin_event_representation.go new file mode 100644 index 0000000..4875c50 --- /dev/null +++ b/model_admin_event_representation.go @@ -0,0 +1,412 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AdminEventRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdminEventRepresentation{} + +// AdminEventRepresentation struct for AdminEventRepresentation +type AdminEventRepresentation struct { + Time *int64 `json:"time,omitempty"` + RealmId *string `json:"realmId,omitempty"` + AuthDetails *AuthDetailsRepresentation `json:"authDetails,omitempty"` + OperationType *string `json:"operationType,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ResourcePath *string `json:"resourcePath,omitempty"` + Representation *string `json:"representation,omitempty"` + Error *string `json:"error,omitempty"` + Details *map[string]string `json:"details,omitempty"` +} + +// NewAdminEventRepresentation instantiates a new AdminEventRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdminEventRepresentation() *AdminEventRepresentation { + this := AdminEventRepresentation{} + return &this +} + +// NewAdminEventRepresentationWithDefaults instantiates a new AdminEventRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdminEventRepresentationWithDefaults() *AdminEventRepresentation { + this := AdminEventRepresentation{} + return &this +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetTime() int64 { + if o == nil || IsNil(o.Time) { + var ret int64 + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminEventRepresentation) GetTimeOk() (*int64, bool) { + if o == nil || IsNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *AdminEventRepresentation) HasTime() bool { + if o != nil && !IsNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given int64 and assigns it to the Time field. +func (o *AdminEventRepresentation) SetTime(v int64) { + o.Time = &v +} + +// GetRealmId returns the RealmId field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetRealmId() string { + if o == nil || IsNil(o.RealmId) { + var ret string + return ret + } + return *o.RealmId +} + +// GetRealmIdOk returns a tuple with the RealmId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminEventRepresentation) GetRealmIdOk() (*string, bool) { + if o == nil || IsNil(o.RealmId) { + return nil, false + } + return o.RealmId, true +} + +// HasRealmId returns a boolean if a field has been set. +func (o *AdminEventRepresentation) HasRealmId() bool { + if o != nil && !IsNil(o.RealmId) { + return true + } + + return false +} + +// SetRealmId gets a reference to the given string and assigns it to the RealmId field. +func (o *AdminEventRepresentation) SetRealmId(v string) { + o.RealmId = &v +} + +// GetAuthDetails returns the AuthDetails field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetAuthDetails() AuthDetailsRepresentation { + if o == nil || IsNil(o.AuthDetails) { + var ret AuthDetailsRepresentation + return ret + } + return *o.AuthDetails +} + +// GetAuthDetailsOk returns a tuple with the AuthDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminEventRepresentation) GetAuthDetailsOk() (*AuthDetailsRepresentation, bool) { + if o == nil || IsNil(o.AuthDetails) { + return nil, false + } + return o.AuthDetails, true +} + +// HasAuthDetails returns a boolean if a field has been set. +func (o *AdminEventRepresentation) HasAuthDetails() bool { + if o != nil && !IsNil(o.AuthDetails) { + return true + } + + return false +} + +// SetAuthDetails gets a reference to the given AuthDetailsRepresentation and assigns it to the AuthDetails field. +func (o *AdminEventRepresentation) SetAuthDetails(v AuthDetailsRepresentation) { + o.AuthDetails = &v +} + +// GetOperationType returns the OperationType field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetOperationType() string { + if o == nil || IsNil(o.OperationType) { + var ret string + 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 *AdminEventRepresentation) GetOperationTypeOk() (*string, 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 *AdminEventRepresentation) HasOperationType() bool { + if o != nil && !IsNil(o.OperationType) { + return true + } + + return false +} + +// SetOperationType gets a reference to the given string and assigns it to the OperationType field. +func (o *AdminEventRepresentation) SetOperationType(v string) { + o.OperationType = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetResourceType() string { + if o == nil || IsNil(o.ResourceType) { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminEventRepresentation) GetResourceTypeOk() (*string, bool) { + if o == nil || IsNil(o.ResourceType) { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *AdminEventRepresentation) HasResourceType() bool { + if o != nil && !IsNil(o.ResourceType) { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *AdminEventRepresentation) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetResourcePath returns the ResourcePath field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetResourcePath() string { + if o == nil || IsNil(o.ResourcePath) { + var ret string + return ret + } + return *o.ResourcePath +} + +// GetResourcePathOk returns a tuple with the ResourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminEventRepresentation) GetResourcePathOk() (*string, bool) { + if o == nil || IsNil(o.ResourcePath) { + return nil, false + } + return o.ResourcePath, true +} + +// HasResourcePath returns a boolean if a field has been set. +func (o *AdminEventRepresentation) HasResourcePath() bool { + if o != nil && !IsNil(o.ResourcePath) { + return true + } + + return false +} + +// SetResourcePath gets a reference to the given string and assigns it to the ResourcePath field. +func (o *AdminEventRepresentation) SetResourcePath(v string) { + o.ResourcePath = &v +} + +// GetRepresentation returns the Representation field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetRepresentation() string { + if o == nil || IsNil(o.Representation) { + var ret string + return ret + } + return *o.Representation +} + +// GetRepresentationOk returns a tuple with the Representation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminEventRepresentation) GetRepresentationOk() (*string, bool) { + if o == nil || IsNil(o.Representation) { + return nil, false + } + return o.Representation, true +} + +// HasRepresentation returns a boolean if a field has been set. +func (o *AdminEventRepresentation) HasRepresentation() bool { + if o != nil && !IsNil(o.Representation) { + return true + } + + return false +} + +// SetRepresentation gets a reference to the given string and assigns it to the Representation field. +func (o *AdminEventRepresentation) SetRepresentation(v string) { + o.Representation = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *AdminEventRepresentation) 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 *AdminEventRepresentation) 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 *AdminEventRepresentation) 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 *AdminEventRepresentation) SetError(v string) { + o.Error = &v +} + +// GetDetails returns the Details field value if set, zero value otherwise. +func (o *AdminEventRepresentation) GetDetails() map[string]string { + if o == nil || IsNil(o.Details) { + var ret map[string]string + 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 *AdminEventRepresentation) GetDetailsOk() (*map[string]string, 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 *AdminEventRepresentation) HasDetails() bool { + if o != nil && !IsNil(o.Details) { + return true + } + + return false +} + +// SetDetails gets a reference to the given map[string]string and assigns it to the Details field. +func (o *AdminEventRepresentation) SetDetails(v map[string]string) { + o.Details = &v +} + +func (o AdminEventRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdminEventRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Time) { + toSerialize["time"] = o.Time + } + if !IsNil(o.RealmId) { + toSerialize["realmId"] = o.RealmId + } + if !IsNil(o.AuthDetails) { + toSerialize["authDetails"] = o.AuthDetails + } + if !IsNil(o.OperationType) { + toSerialize["operationType"] = o.OperationType + } + if !IsNil(o.ResourceType) { + toSerialize["resourceType"] = o.ResourceType + } + if !IsNil(o.ResourcePath) { + toSerialize["resourcePath"] = o.ResourcePath + } + if !IsNil(o.Representation) { + toSerialize["representation"] = o.Representation + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Details) { + toSerialize["details"] = o.Details + } + return toSerialize, nil +} + +type NullableAdminEventRepresentation struct { + value *AdminEventRepresentation + isSet bool +} + +func (v NullableAdminEventRepresentation) Get() *AdminEventRepresentation { + return v.value +} + +func (v *NullableAdminEventRepresentation) Set(val *AdminEventRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAdminEventRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAdminEventRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdminEventRepresentation(val *AdminEventRepresentation) *NullableAdminEventRepresentation { + return &NullableAdminEventRepresentation{value: val, isSet: true} +} + +func (v NullableAdminEventRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdminEventRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_application_representation.go b/model_application_representation.go new file mode 100644 index 0000000..8225133 --- /dev/null +++ b/model_application_representation.go @@ -0,0 +1,1736 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ApplicationRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApplicationRepresentation{} + +// ApplicationRepresentation struct for ApplicationRepresentation +type ApplicationRepresentation struct { + Id *string `json:"id,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + RootUrl *string `json:"rootUrl,omitempty"` + AdminUrl *string `json:"adminUrl,omitempty"` + BaseUrl *string `json:"baseUrl,omitempty"` + SurrogateAuthRequired *bool `json:"surrogateAuthRequired,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + AlwaysDisplayInConsole *bool `json:"alwaysDisplayInConsole,omitempty"` + ClientAuthenticatorType *string `json:"clientAuthenticatorType,omitempty"` + Secret *string `json:"secret,omitempty"` + RegistrationAccessToken *string `json:"registrationAccessToken,omitempty"` + // Deprecated + DefaultRoles []string `json:"defaultRoles,omitempty"` + RedirectUris []string `json:"redirectUris,omitempty"` + WebOrigins []string `json:"webOrigins,omitempty"` + NotBefore *int32 `json:"notBefore,omitempty"` + BearerOnly *bool `json:"bearerOnly,omitempty"` + ConsentRequired *bool `json:"consentRequired,omitempty"` + StandardFlowEnabled *bool `json:"standardFlowEnabled,omitempty"` + ImplicitFlowEnabled *bool `json:"implicitFlowEnabled,omitempty"` + DirectAccessGrantsEnabled *bool `json:"directAccessGrantsEnabled,omitempty"` + ServiceAccountsEnabled *bool `json:"serviceAccountsEnabled,omitempty"` + AuthorizationServicesEnabled *bool `json:"authorizationServicesEnabled,omitempty"` + // Deprecated + DirectGrantsOnly *bool `json:"directGrantsOnly,omitempty"` + PublicClient *bool `json:"publicClient,omitempty"` + FrontchannelLogout *bool `json:"frontchannelLogout,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Attributes *map[string]string `json:"attributes,omitempty"` + AuthenticationFlowBindingOverrides *map[string]string `json:"authenticationFlowBindingOverrides,omitempty"` + FullScopeAllowed *bool `json:"fullScopeAllowed,omitempty"` + NodeReRegistrationTimeout *int32 `json:"nodeReRegistrationTimeout,omitempty"` + RegisteredNodes *map[string]int32 `json:"registeredNodes,omitempty"` + ProtocolMappers []ProtocolMapperRepresentation `json:"protocolMappers,omitempty"` + // Deprecated + ClientTemplate *string `json:"clientTemplate,omitempty"` + // Deprecated + UseTemplateConfig *bool `json:"useTemplateConfig,omitempty"` + // Deprecated + UseTemplateScope *bool `json:"useTemplateScope,omitempty"` + // Deprecated + UseTemplateMappers *bool `json:"useTemplateMappers,omitempty"` + DefaultClientScopes []string `json:"defaultClientScopes,omitempty"` + OptionalClientScopes []string `json:"optionalClientScopes,omitempty"` + AuthorizationSettings *ResourceServerRepresentation `json:"authorizationSettings,omitempty"` + Access *map[string]bool `json:"access,omitempty"` + Origin *string `json:"origin,omitempty"` + Name *string `json:"name,omitempty"` + // Deprecated + Claims *ClaimRepresentation `json:"claims,omitempty"` +} + +// NewApplicationRepresentation instantiates a new ApplicationRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApplicationRepresentation() *ApplicationRepresentation { + this := ApplicationRepresentation{} + return &this +} + +// NewApplicationRepresentationWithDefaults instantiates a new ApplicationRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApplicationRepresentationWithDefaults() *ApplicationRepresentation { + this := ApplicationRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) SetId(v string) { + o.Id = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ApplicationRepresentation) SetClientId(v string) { + o.ClientId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) SetType(v string) { + o.Type = &v +} + +// GetRootUrl returns the RootUrl field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetRootUrl() string { + if o == nil || IsNil(o.RootUrl) { + var ret string + return ret + } + return *o.RootUrl +} + +// GetRootUrlOk returns a tuple with the RootUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetRootUrlOk() (*string, bool) { + if o == nil || IsNil(o.RootUrl) { + return nil, false + } + return o.RootUrl, true +} + +// HasRootUrl returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasRootUrl() bool { + if o != nil && !IsNil(o.RootUrl) { + return true + } + + return false +} + +// SetRootUrl gets a reference to the given string and assigns it to the RootUrl field. +func (o *ApplicationRepresentation) SetRootUrl(v string) { + o.RootUrl = &v +} + +// GetAdminUrl returns the AdminUrl field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetAdminUrl() string { + if o == nil || IsNil(o.AdminUrl) { + var ret string + return ret + } + return *o.AdminUrl +} + +// GetAdminUrlOk returns a tuple with the AdminUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetAdminUrlOk() (*string, bool) { + if o == nil || IsNil(o.AdminUrl) { + return nil, false + } + return o.AdminUrl, true +} + +// HasAdminUrl returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasAdminUrl() bool { + if o != nil && !IsNil(o.AdminUrl) { + return true + } + + return false +} + +// SetAdminUrl gets a reference to the given string and assigns it to the AdminUrl field. +func (o *ApplicationRepresentation) SetAdminUrl(v string) { + o.AdminUrl = &v +} + +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetBaseUrl() string { + if o == nil || IsNil(o.BaseUrl) { + var ret string + return ret + } + return *o.BaseUrl +} + +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { + return nil, false + } + return o.BaseUrl, true +} + +// HasBaseUrl returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasBaseUrl() bool { + if o != nil && !IsNil(o.BaseUrl) { + return true + } + + return false +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ApplicationRepresentation) SetBaseUrl(v string) { + o.BaseUrl = &v +} + +// GetSurrogateAuthRequired returns the SurrogateAuthRequired field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetSurrogateAuthRequired() bool { + if o == nil || IsNil(o.SurrogateAuthRequired) { + var ret bool + return ret + } + return *o.SurrogateAuthRequired +} + +// GetSurrogateAuthRequiredOk returns a tuple with the SurrogateAuthRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetSurrogateAuthRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.SurrogateAuthRequired) { + return nil, false + } + return o.SurrogateAuthRequired, true +} + +// HasSurrogateAuthRequired returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasSurrogateAuthRequired() bool { + if o != nil && !IsNil(o.SurrogateAuthRequired) { + return true + } + + return false +} + +// SetSurrogateAuthRequired gets a reference to the given bool and assigns it to the SurrogateAuthRequired field. +func (o *ApplicationRepresentation) SetSurrogateAuthRequired(v bool) { + o.SurrogateAuthRequired = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetAlwaysDisplayInConsole returns the AlwaysDisplayInConsole field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetAlwaysDisplayInConsole() bool { + if o == nil || IsNil(o.AlwaysDisplayInConsole) { + var ret bool + return ret + } + return *o.AlwaysDisplayInConsole +} + +// GetAlwaysDisplayInConsoleOk returns a tuple with the AlwaysDisplayInConsole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetAlwaysDisplayInConsoleOk() (*bool, bool) { + if o == nil || IsNil(o.AlwaysDisplayInConsole) { + return nil, false + } + return o.AlwaysDisplayInConsole, true +} + +// HasAlwaysDisplayInConsole returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasAlwaysDisplayInConsole() bool { + if o != nil && !IsNil(o.AlwaysDisplayInConsole) { + return true + } + + return false +} + +// SetAlwaysDisplayInConsole gets a reference to the given bool and assigns it to the AlwaysDisplayInConsole field. +func (o *ApplicationRepresentation) SetAlwaysDisplayInConsole(v bool) { + o.AlwaysDisplayInConsole = &v +} + +// GetClientAuthenticatorType returns the ClientAuthenticatorType field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetClientAuthenticatorType() string { + if o == nil || IsNil(o.ClientAuthenticatorType) { + var ret string + return ret + } + return *o.ClientAuthenticatorType +} + +// GetClientAuthenticatorTypeOk returns a tuple with the ClientAuthenticatorType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetClientAuthenticatorTypeOk() (*string, bool) { + if o == nil || IsNil(o.ClientAuthenticatorType) { + return nil, false + } + return o.ClientAuthenticatorType, true +} + +// HasClientAuthenticatorType returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasClientAuthenticatorType() bool { + if o != nil && !IsNil(o.ClientAuthenticatorType) { + return true + } + + return false +} + +// SetClientAuthenticatorType gets a reference to the given string and assigns it to the ClientAuthenticatorType field. +func (o *ApplicationRepresentation) SetClientAuthenticatorType(v string) { + o.ClientAuthenticatorType = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetSecret() string { + if o == nil || IsNil(o.Secret) { + var ret string + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetSecretOk() (*string, bool) { + if o == nil || IsNil(o.Secret) { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasSecret() bool { + if o != nil && !IsNil(o.Secret) { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *ApplicationRepresentation) SetSecret(v string) { + o.Secret = &v +} + +// GetRegistrationAccessToken returns the RegistrationAccessToken field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetRegistrationAccessToken() string { + if o == nil || IsNil(o.RegistrationAccessToken) { + var ret string + return ret + } + return *o.RegistrationAccessToken +} + +// GetRegistrationAccessTokenOk returns a tuple with the RegistrationAccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetRegistrationAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.RegistrationAccessToken) { + return nil, false + } + return o.RegistrationAccessToken, true +} + +// HasRegistrationAccessToken returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasRegistrationAccessToken() bool { + if o != nil && !IsNil(o.RegistrationAccessToken) { + return true + } + + return false +} + +// SetRegistrationAccessToken gets a reference to the given string and assigns it to the RegistrationAccessToken field. +func (o *ApplicationRepresentation) SetRegistrationAccessToken(v string) { + o.RegistrationAccessToken = &v +} + +// GetDefaultRoles returns the DefaultRoles field value if set, zero value otherwise. +// Deprecated +func (o *ApplicationRepresentation) GetDefaultRoles() []string { + if o == nil || IsNil(o.DefaultRoles) { + var ret []string + return ret + } + return o.DefaultRoles +} + +// GetDefaultRolesOk returns a tuple with the DefaultRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ApplicationRepresentation) GetDefaultRolesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultRoles) { + return nil, false + } + return o.DefaultRoles, true +} + +// HasDefaultRoles returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasDefaultRoles() bool { + if o != nil && !IsNil(o.DefaultRoles) { + return true + } + + return false +} + +// SetDefaultRoles gets a reference to the given []string and assigns it to the DefaultRoles field. +// Deprecated +func (o *ApplicationRepresentation) SetDefaultRoles(v []string) { + o.DefaultRoles = v +} + +// GetRedirectUris returns the RedirectUris field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetRedirectUris() []string { + if o == nil || IsNil(o.RedirectUris) { + var ret []string + return ret + } + return o.RedirectUris +} + +// GetRedirectUrisOk returns a tuple with the RedirectUris field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetRedirectUrisOk() ([]string, bool) { + if o == nil || IsNil(o.RedirectUris) { + return nil, false + } + return o.RedirectUris, true +} + +// HasRedirectUris returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasRedirectUris() bool { + if o != nil && !IsNil(o.RedirectUris) { + return true + } + + return false +} + +// SetRedirectUris gets a reference to the given []string and assigns it to the RedirectUris field. +func (o *ApplicationRepresentation) SetRedirectUris(v []string) { + o.RedirectUris = v +} + +// GetWebOrigins returns the WebOrigins field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetWebOrigins() []string { + if o == nil || IsNil(o.WebOrigins) { + var ret []string + return ret + } + return o.WebOrigins +} + +// GetWebOriginsOk returns a tuple with the WebOrigins field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetWebOriginsOk() ([]string, bool) { + if o == nil || IsNil(o.WebOrigins) { + return nil, false + } + return o.WebOrigins, true +} + +// HasWebOrigins returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasWebOrigins() bool { + if o != nil && !IsNil(o.WebOrigins) { + return true + } + + return false +} + +// SetWebOrigins gets a reference to the given []string and assigns it to the WebOrigins field. +func (o *ApplicationRepresentation) SetWebOrigins(v []string) { + o.WebOrigins = v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetNotBefore() int32 { + if o == nil || IsNil(o.NotBefore) { + var ret int32 + 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 *ApplicationRepresentation) GetNotBeforeOk() (*int32, 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 *ApplicationRepresentation) HasNotBefore() bool { + if o != nil && !IsNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given int32 and assigns it to the NotBefore field. +func (o *ApplicationRepresentation) SetNotBefore(v int32) { + o.NotBefore = &v +} + +// GetBearerOnly returns the BearerOnly field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetBearerOnly() bool { + if o == nil || IsNil(o.BearerOnly) { + var ret bool + return ret + } + return *o.BearerOnly +} + +// GetBearerOnlyOk returns a tuple with the BearerOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetBearerOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.BearerOnly) { + return nil, false + } + return o.BearerOnly, true +} + +// HasBearerOnly returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasBearerOnly() bool { + if o != nil && !IsNil(o.BearerOnly) { + return true + } + + return false +} + +// SetBearerOnly gets a reference to the given bool and assigns it to the BearerOnly field. +func (o *ApplicationRepresentation) SetBearerOnly(v bool) { + o.BearerOnly = &v +} + +// GetConsentRequired returns the ConsentRequired field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetConsentRequired() bool { + if o == nil || IsNil(o.ConsentRequired) { + var ret bool + return ret + } + return *o.ConsentRequired +} + +// GetConsentRequiredOk returns a tuple with the ConsentRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetConsentRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.ConsentRequired) { + return nil, false + } + return o.ConsentRequired, true +} + +// HasConsentRequired returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasConsentRequired() bool { + if o != nil && !IsNil(o.ConsentRequired) { + return true + } + + return false +} + +// SetConsentRequired gets a reference to the given bool and assigns it to the ConsentRequired field. +func (o *ApplicationRepresentation) SetConsentRequired(v bool) { + o.ConsentRequired = &v +} + +// GetStandardFlowEnabled returns the StandardFlowEnabled field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetStandardFlowEnabled() bool { + if o == nil || IsNil(o.StandardFlowEnabled) { + var ret bool + return ret + } + return *o.StandardFlowEnabled +} + +// GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetStandardFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.StandardFlowEnabled) { + return nil, false + } + return o.StandardFlowEnabled, true +} + +// HasStandardFlowEnabled returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasStandardFlowEnabled() bool { + if o != nil && !IsNil(o.StandardFlowEnabled) { + return true + } + + return false +} + +// SetStandardFlowEnabled gets a reference to the given bool and assigns it to the StandardFlowEnabled field. +func (o *ApplicationRepresentation) SetStandardFlowEnabled(v bool) { + o.StandardFlowEnabled = &v +} + +// GetImplicitFlowEnabled returns the ImplicitFlowEnabled field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetImplicitFlowEnabled() bool { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + var ret bool + return ret + } + return *o.ImplicitFlowEnabled +} + +// GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetImplicitFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + return nil, false + } + return o.ImplicitFlowEnabled, true +} + +// HasImplicitFlowEnabled returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasImplicitFlowEnabled() bool { + if o != nil && !IsNil(o.ImplicitFlowEnabled) { + return true + } + + return false +} + +// SetImplicitFlowEnabled gets a reference to the given bool and assigns it to the ImplicitFlowEnabled field. +func (o *ApplicationRepresentation) SetImplicitFlowEnabled(v bool) { + o.ImplicitFlowEnabled = &v +} + +// GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetDirectAccessGrantsEnabled() bool { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + var ret bool + return ret + } + return *o.DirectAccessGrantsEnabled +} + +// GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + return nil, false + } + return o.DirectAccessGrantsEnabled, true +} + +// HasDirectAccessGrantsEnabled returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasDirectAccessGrantsEnabled() bool { + if o != nil && !IsNil(o.DirectAccessGrantsEnabled) { + return true + } + + return false +} + +// SetDirectAccessGrantsEnabled gets a reference to the given bool and assigns it to the DirectAccessGrantsEnabled field. +func (o *ApplicationRepresentation) SetDirectAccessGrantsEnabled(v bool) { + o.DirectAccessGrantsEnabled = &v +} + +// GetServiceAccountsEnabled returns the ServiceAccountsEnabled field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetServiceAccountsEnabled() bool { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + var ret bool + return ret + } + return *o.ServiceAccountsEnabled +} + +// GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetServiceAccountsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + return nil, false + } + return o.ServiceAccountsEnabled, true +} + +// HasServiceAccountsEnabled returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasServiceAccountsEnabled() bool { + if o != nil && !IsNil(o.ServiceAccountsEnabled) { + return true + } + + return false +} + +// SetServiceAccountsEnabled gets a reference to the given bool and assigns it to the ServiceAccountsEnabled field. +func (o *ApplicationRepresentation) SetServiceAccountsEnabled(v bool) { + o.ServiceAccountsEnabled = &v +} + +// GetAuthorizationServicesEnabled returns the AuthorizationServicesEnabled field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetAuthorizationServicesEnabled() bool { + if o == nil || IsNil(o.AuthorizationServicesEnabled) { + var ret bool + return ret + } + return *o.AuthorizationServicesEnabled +} + +// GetAuthorizationServicesEnabledOk returns a tuple with the AuthorizationServicesEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetAuthorizationServicesEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AuthorizationServicesEnabled) { + return nil, false + } + return o.AuthorizationServicesEnabled, true +} + +// HasAuthorizationServicesEnabled returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasAuthorizationServicesEnabled() bool { + if o != nil && !IsNil(o.AuthorizationServicesEnabled) { + return true + } + + return false +} + +// SetAuthorizationServicesEnabled gets a reference to the given bool and assigns it to the AuthorizationServicesEnabled field. +func (o *ApplicationRepresentation) SetAuthorizationServicesEnabled(v bool) { + o.AuthorizationServicesEnabled = &v +} + +// GetDirectGrantsOnly returns the DirectGrantsOnly field value if set, zero value otherwise. +// Deprecated +func (o *ApplicationRepresentation) GetDirectGrantsOnly() bool { + if o == nil || IsNil(o.DirectGrantsOnly) { + var ret bool + return ret + } + return *o.DirectGrantsOnly +} + +// GetDirectGrantsOnlyOk returns a tuple with the DirectGrantsOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ApplicationRepresentation) GetDirectGrantsOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.DirectGrantsOnly) { + return nil, false + } + return o.DirectGrantsOnly, true +} + +// HasDirectGrantsOnly returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasDirectGrantsOnly() bool { + if o != nil && !IsNil(o.DirectGrantsOnly) { + return true + } + + return false +} + +// SetDirectGrantsOnly gets a reference to the given bool and assigns it to the DirectGrantsOnly field. +// Deprecated +func (o *ApplicationRepresentation) SetDirectGrantsOnly(v bool) { + o.DirectGrantsOnly = &v +} + +// GetPublicClient returns the PublicClient field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetPublicClient() bool { + if o == nil || IsNil(o.PublicClient) { + var ret bool + return ret + } + return *o.PublicClient +} + +// GetPublicClientOk returns a tuple with the PublicClient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetPublicClientOk() (*bool, bool) { + if o == nil || IsNil(o.PublicClient) { + return nil, false + } + return o.PublicClient, true +} + +// HasPublicClient returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasPublicClient() bool { + if o != nil && !IsNil(o.PublicClient) { + return true + } + + return false +} + +// SetPublicClient gets a reference to the given bool and assigns it to the PublicClient field. +func (o *ApplicationRepresentation) SetPublicClient(v bool) { + o.PublicClient = &v +} + +// GetFrontchannelLogout returns the FrontchannelLogout field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetFrontchannelLogout() bool { + if o == nil || IsNil(o.FrontchannelLogout) { + var ret bool + return ret + } + return *o.FrontchannelLogout +} + +// GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetFrontchannelLogoutOk() (*bool, bool) { + if o == nil || IsNil(o.FrontchannelLogout) { + return nil, false + } + return o.FrontchannelLogout, true +} + +// HasFrontchannelLogout returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasFrontchannelLogout() bool { + if o != nil && !IsNil(o.FrontchannelLogout) { + return true + } + + return false +} + +// SetFrontchannelLogout gets a reference to the given bool and assigns it to the FrontchannelLogout field. +func (o *ApplicationRepresentation) SetFrontchannelLogout(v bool) { + o.FrontchannelLogout = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *ApplicationRepresentation) SetProtocol(v string) { + o.Protocol = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetAttributes() map[string]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetAttributesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. +func (o *ApplicationRepresentation) SetAttributes(v map[string]string) { + o.Attributes = &v +} + +// GetAuthenticationFlowBindingOverrides returns the AuthenticationFlowBindingOverrides field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetAuthenticationFlowBindingOverrides() map[string]string { + if o == nil || IsNil(o.AuthenticationFlowBindingOverrides) { + var ret map[string]string + return ret + } + return *o.AuthenticationFlowBindingOverrides +} + +// GetAuthenticationFlowBindingOverridesOk returns a tuple with the AuthenticationFlowBindingOverrides field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetAuthenticationFlowBindingOverridesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.AuthenticationFlowBindingOverrides) { + return nil, false + } + return o.AuthenticationFlowBindingOverrides, true +} + +// HasAuthenticationFlowBindingOverrides returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasAuthenticationFlowBindingOverrides() bool { + if o != nil && !IsNil(o.AuthenticationFlowBindingOverrides) { + return true + } + + return false +} + +// SetAuthenticationFlowBindingOverrides gets a reference to the given map[string]string and assigns it to the AuthenticationFlowBindingOverrides field. +func (o *ApplicationRepresentation) SetAuthenticationFlowBindingOverrides(v map[string]string) { + o.AuthenticationFlowBindingOverrides = &v +} + +// GetFullScopeAllowed returns the FullScopeAllowed field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetFullScopeAllowed() bool { + if o == nil || IsNil(o.FullScopeAllowed) { + var ret bool + return ret + } + return *o.FullScopeAllowed +} + +// GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetFullScopeAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.FullScopeAllowed) { + return nil, false + } + return o.FullScopeAllowed, true +} + +// HasFullScopeAllowed returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasFullScopeAllowed() bool { + if o != nil && !IsNil(o.FullScopeAllowed) { + return true + } + + return false +} + +// SetFullScopeAllowed gets a reference to the given bool and assigns it to the FullScopeAllowed field. +func (o *ApplicationRepresentation) SetFullScopeAllowed(v bool) { + o.FullScopeAllowed = &v +} + +// GetNodeReRegistrationTimeout returns the NodeReRegistrationTimeout field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetNodeReRegistrationTimeout() int32 { + if o == nil || IsNil(o.NodeReRegistrationTimeout) { + var ret int32 + return ret + } + return *o.NodeReRegistrationTimeout +} + +// GetNodeReRegistrationTimeoutOk returns a tuple with the NodeReRegistrationTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetNodeReRegistrationTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.NodeReRegistrationTimeout) { + return nil, false + } + return o.NodeReRegistrationTimeout, true +} + +// HasNodeReRegistrationTimeout returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasNodeReRegistrationTimeout() bool { + if o != nil && !IsNil(o.NodeReRegistrationTimeout) { + return true + } + + return false +} + +// SetNodeReRegistrationTimeout gets a reference to the given int32 and assigns it to the NodeReRegistrationTimeout field. +func (o *ApplicationRepresentation) SetNodeReRegistrationTimeout(v int32) { + o.NodeReRegistrationTimeout = &v +} + +// GetRegisteredNodes returns the RegisteredNodes field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetRegisteredNodes() map[string]int32 { + if o == nil || IsNil(o.RegisteredNodes) { + var ret map[string]int32 + return ret + } + return *o.RegisteredNodes +} + +// GetRegisteredNodesOk returns a tuple with the RegisteredNodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetRegisteredNodesOk() (*map[string]int32, bool) { + if o == nil || IsNil(o.RegisteredNodes) { + return nil, false + } + return o.RegisteredNodes, true +} + +// HasRegisteredNodes returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasRegisteredNodes() bool { + if o != nil && !IsNil(o.RegisteredNodes) { + return true + } + + return false +} + +// SetRegisteredNodes gets a reference to the given map[string]int32 and assigns it to the RegisteredNodes field. +func (o *ApplicationRepresentation) SetRegisteredNodes(v map[string]int32) { + o.RegisteredNodes = &v +} + +// GetProtocolMappers returns the ProtocolMappers field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation { + if o == nil || IsNil(o.ProtocolMappers) { + var ret []ProtocolMapperRepresentation + return ret + } + return o.ProtocolMappers +} + +// GetProtocolMappersOk returns a tuple with the ProtocolMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetProtocolMappersOk() ([]ProtocolMapperRepresentation, bool) { + if o == nil || IsNil(o.ProtocolMappers) { + return nil, false + } + return o.ProtocolMappers, true +} + +// HasProtocolMappers returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasProtocolMappers() bool { + if o != nil && !IsNil(o.ProtocolMappers) { + return true + } + + return false +} + +// SetProtocolMappers gets a reference to the given []ProtocolMapperRepresentation and assigns it to the ProtocolMappers field. +func (o *ApplicationRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation) { + o.ProtocolMappers = v +} + +// GetClientTemplate returns the ClientTemplate field value if set, zero value otherwise. +// Deprecated +func (o *ApplicationRepresentation) GetClientTemplate() string { + if o == nil || IsNil(o.ClientTemplate) { + var ret string + return ret + } + return *o.ClientTemplate +} + +// GetClientTemplateOk returns a tuple with the ClientTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ApplicationRepresentation) GetClientTemplateOk() (*string, bool) { + if o == nil || IsNil(o.ClientTemplate) { + return nil, false + } + return o.ClientTemplate, true +} + +// HasClientTemplate returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasClientTemplate() bool { + if o != nil && !IsNil(o.ClientTemplate) { + return true + } + + return false +} + +// SetClientTemplate gets a reference to the given string and assigns it to the ClientTemplate field. +// Deprecated +func (o *ApplicationRepresentation) SetClientTemplate(v string) { + o.ClientTemplate = &v +} + +// GetUseTemplateConfig returns the UseTemplateConfig field value if set, zero value otherwise. +// Deprecated +func (o *ApplicationRepresentation) GetUseTemplateConfig() bool { + if o == nil || IsNil(o.UseTemplateConfig) { + var ret bool + return ret + } + return *o.UseTemplateConfig +} + +// GetUseTemplateConfigOk returns a tuple with the UseTemplateConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ApplicationRepresentation) GetUseTemplateConfigOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateConfig) { + return nil, false + } + return o.UseTemplateConfig, true +} + +// HasUseTemplateConfig returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasUseTemplateConfig() bool { + if o != nil && !IsNil(o.UseTemplateConfig) { + return true + } + + return false +} + +// SetUseTemplateConfig gets a reference to the given bool and assigns it to the UseTemplateConfig field. +// Deprecated +func (o *ApplicationRepresentation) SetUseTemplateConfig(v bool) { + o.UseTemplateConfig = &v +} + +// GetUseTemplateScope returns the UseTemplateScope field value if set, zero value otherwise. +// Deprecated +func (o *ApplicationRepresentation) GetUseTemplateScope() bool { + if o == nil || IsNil(o.UseTemplateScope) { + var ret bool + return ret + } + return *o.UseTemplateScope +} + +// GetUseTemplateScopeOk returns a tuple with the UseTemplateScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ApplicationRepresentation) GetUseTemplateScopeOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateScope) { + return nil, false + } + return o.UseTemplateScope, true +} + +// HasUseTemplateScope returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasUseTemplateScope() bool { + if o != nil && !IsNil(o.UseTemplateScope) { + return true + } + + return false +} + +// SetUseTemplateScope gets a reference to the given bool and assigns it to the UseTemplateScope field. +// Deprecated +func (o *ApplicationRepresentation) SetUseTemplateScope(v bool) { + o.UseTemplateScope = &v +} + +// GetUseTemplateMappers returns the UseTemplateMappers field value if set, zero value otherwise. +// Deprecated +func (o *ApplicationRepresentation) GetUseTemplateMappers() bool { + if o == nil || IsNil(o.UseTemplateMappers) { + var ret bool + return ret + } + return *o.UseTemplateMappers +} + +// GetUseTemplateMappersOk returns a tuple with the UseTemplateMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ApplicationRepresentation) GetUseTemplateMappersOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateMappers) { + return nil, false + } + return o.UseTemplateMappers, true +} + +// HasUseTemplateMappers returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasUseTemplateMappers() bool { + if o != nil && !IsNil(o.UseTemplateMappers) { + return true + } + + return false +} + +// SetUseTemplateMappers gets a reference to the given bool and assigns it to the UseTemplateMappers field. +// Deprecated +func (o *ApplicationRepresentation) SetUseTemplateMappers(v bool) { + o.UseTemplateMappers = &v +} + +// GetDefaultClientScopes returns the DefaultClientScopes field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetDefaultClientScopes() []string { + if o == nil || IsNil(o.DefaultClientScopes) { + var ret []string + return ret + } + return o.DefaultClientScopes +} + +// GetDefaultClientScopesOk returns a tuple with the DefaultClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetDefaultClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultClientScopes) { + return nil, false + } + return o.DefaultClientScopes, true +} + +// HasDefaultClientScopes returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasDefaultClientScopes() bool { + if o != nil && !IsNil(o.DefaultClientScopes) { + return true + } + + return false +} + +// SetDefaultClientScopes gets a reference to the given []string and assigns it to the DefaultClientScopes field. +func (o *ApplicationRepresentation) SetDefaultClientScopes(v []string) { + o.DefaultClientScopes = v +} + +// GetOptionalClientScopes returns the OptionalClientScopes field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetOptionalClientScopes() []string { + if o == nil || IsNil(o.OptionalClientScopes) { + var ret []string + return ret + } + return o.OptionalClientScopes +} + +// GetOptionalClientScopesOk returns a tuple with the OptionalClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetOptionalClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.OptionalClientScopes) { + return nil, false + } + return o.OptionalClientScopes, true +} + +// HasOptionalClientScopes returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasOptionalClientScopes() bool { + if o != nil && !IsNil(o.OptionalClientScopes) { + return true + } + + return false +} + +// SetOptionalClientScopes gets a reference to the given []string and assigns it to the OptionalClientScopes field. +func (o *ApplicationRepresentation) SetOptionalClientScopes(v []string) { + o.OptionalClientScopes = v +} + +// GetAuthorizationSettings returns the AuthorizationSettings field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetAuthorizationSettings() ResourceServerRepresentation { + if o == nil || IsNil(o.AuthorizationSettings) { + var ret ResourceServerRepresentation + return ret + } + return *o.AuthorizationSettings +} + +// GetAuthorizationSettingsOk returns a tuple with the AuthorizationSettings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetAuthorizationSettingsOk() (*ResourceServerRepresentation, bool) { + if o == nil || IsNil(o.AuthorizationSettings) { + return nil, false + } + return o.AuthorizationSettings, true +} + +// HasAuthorizationSettings returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasAuthorizationSettings() bool { + if o != nil && !IsNil(o.AuthorizationSettings) { + return true + } + + return false +} + +// SetAuthorizationSettings gets a reference to the given ResourceServerRepresentation and assigns it to the AuthorizationSettings field. +func (o *ApplicationRepresentation) SetAuthorizationSettings(v ResourceServerRepresentation) { + o.AuthorizationSettings = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetAccess() map[string]bool { + if o == nil || IsNil(o.Access) { + var ret map[string]bool + 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 *ApplicationRepresentation) GetAccessOk() (*map[string]bool, 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 *ApplicationRepresentation) HasAccess() bool { + if o != nil && !IsNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given map[string]bool and assigns it to the Access field. +func (o *ApplicationRepresentation) SetAccess(v map[string]bool) { + o.Access = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *ApplicationRepresentation) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationRepresentation) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *ApplicationRepresentation) SetOrigin(v string) { + o.Origin = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) 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 *ApplicationRepresentation) SetName(v string) { + o.Name = &v +} + +// GetClaims returns the Claims field value if set, zero value otherwise. +// Deprecated +func (o *ApplicationRepresentation) GetClaims() ClaimRepresentation { + if o == nil || IsNil(o.Claims) { + var ret ClaimRepresentation + return ret + } + return *o.Claims +} + +// GetClaimsOk returns a tuple with the Claims field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ApplicationRepresentation) GetClaimsOk() (*ClaimRepresentation, bool) { + if o == nil || IsNil(o.Claims) { + return nil, false + } + return o.Claims, true +} + +// HasClaims returns a boolean if a field has been set. +func (o *ApplicationRepresentation) HasClaims() bool { + if o != nil && !IsNil(o.Claims) { + return true + } + + return false +} + +// SetClaims gets a reference to the given ClaimRepresentation and assigns it to the Claims field. +// Deprecated +func (o *ApplicationRepresentation) SetClaims(v ClaimRepresentation) { + o.Claims = &v +} + +func (o ApplicationRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApplicationRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.RootUrl) { + toSerialize["rootUrl"] = o.RootUrl + } + if !IsNil(o.AdminUrl) { + toSerialize["adminUrl"] = o.AdminUrl + } + if !IsNil(o.BaseUrl) { + toSerialize["baseUrl"] = o.BaseUrl + } + if !IsNil(o.SurrogateAuthRequired) { + toSerialize["surrogateAuthRequired"] = o.SurrogateAuthRequired + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.AlwaysDisplayInConsole) { + toSerialize["alwaysDisplayInConsole"] = o.AlwaysDisplayInConsole + } + if !IsNil(o.ClientAuthenticatorType) { + toSerialize["clientAuthenticatorType"] = o.ClientAuthenticatorType + } + if !IsNil(o.Secret) { + toSerialize["secret"] = o.Secret + } + if !IsNil(o.RegistrationAccessToken) { + toSerialize["registrationAccessToken"] = o.RegistrationAccessToken + } + if !IsNil(o.DefaultRoles) { + toSerialize["defaultRoles"] = o.DefaultRoles + } + if !IsNil(o.RedirectUris) { + toSerialize["redirectUris"] = o.RedirectUris + } + if !IsNil(o.WebOrigins) { + toSerialize["webOrigins"] = o.WebOrigins + } + if !IsNil(o.NotBefore) { + toSerialize["notBefore"] = o.NotBefore + } + if !IsNil(o.BearerOnly) { + toSerialize["bearerOnly"] = o.BearerOnly + } + if !IsNil(o.ConsentRequired) { + toSerialize["consentRequired"] = o.ConsentRequired + } + if !IsNil(o.StandardFlowEnabled) { + toSerialize["standardFlowEnabled"] = o.StandardFlowEnabled + } + if !IsNil(o.ImplicitFlowEnabled) { + toSerialize["implicitFlowEnabled"] = o.ImplicitFlowEnabled + } + if !IsNil(o.DirectAccessGrantsEnabled) { + toSerialize["directAccessGrantsEnabled"] = o.DirectAccessGrantsEnabled + } + if !IsNil(o.ServiceAccountsEnabled) { + toSerialize["serviceAccountsEnabled"] = o.ServiceAccountsEnabled + } + if !IsNil(o.AuthorizationServicesEnabled) { + toSerialize["authorizationServicesEnabled"] = o.AuthorizationServicesEnabled + } + if !IsNil(o.DirectGrantsOnly) { + toSerialize["directGrantsOnly"] = o.DirectGrantsOnly + } + if !IsNil(o.PublicClient) { + toSerialize["publicClient"] = o.PublicClient + } + if !IsNil(o.FrontchannelLogout) { + toSerialize["frontchannelLogout"] = o.FrontchannelLogout + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.AuthenticationFlowBindingOverrides) { + toSerialize["authenticationFlowBindingOverrides"] = o.AuthenticationFlowBindingOverrides + } + if !IsNil(o.FullScopeAllowed) { + toSerialize["fullScopeAllowed"] = o.FullScopeAllowed + } + if !IsNil(o.NodeReRegistrationTimeout) { + toSerialize["nodeReRegistrationTimeout"] = o.NodeReRegistrationTimeout + } + if !IsNil(o.RegisteredNodes) { + toSerialize["registeredNodes"] = o.RegisteredNodes + } + if !IsNil(o.ProtocolMappers) { + toSerialize["protocolMappers"] = o.ProtocolMappers + } + if !IsNil(o.ClientTemplate) { + toSerialize["clientTemplate"] = o.ClientTemplate + } + if !IsNil(o.UseTemplateConfig) { + toSerialize["useTemplateConfig"] = o.UseTemplateConfig + } + if !IsNil(o.UseTemplateScope) { + toSerialize["useTemplateScope"] = o.UseTemplateScope + } + if !IsNil(o.UseTemplateMappers) { + toSerialize["useTemplateMappers"] = o.UseTemplateMappers + } + if !IsNil(o.DefaultClientScopes) { + toSerialize["defaultClientScopes"] = o.DefaultClientScopes + } + if !IsNil(o.OptionalClientScopes) { + toSerialize["optionalClientScopes"] = o.OptionalClientScopes + } + if !IsNil(o.AuthorizationSettings) { + toSerialize["authorizationSettings"] = o.AuthorizationSettings + } + if !IsNil(o.Access) { + toSerialize["access"] = o.Access + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Claims) { + toSerialize["claims"] = o.Claims + } + return toSerialize, nil +} + +type NullableApplicationRepresentation struct { + value *ApplicationRepresentation + isSet bool +} + +func (v NullableApplicationRepresentation) Get() *ApplicationRepresentation { + return v.value +} + +func (v *NullableApplicationRepresentation) Set(val *ApplicationRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableApplicationRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableApplicationRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApplicationRepresentation(val *ApplicationRepresentation) *NullableApplicationRepresentation { + return &NullableApplicationRepresentation{value: val, isSet: true} +} + +func (v NullableApplicationRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApplicationRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_auth_details_representation.go b/model_auth_details_representation.go new file mode 100644 index 0000000..9c57f9f --- /dev/null +++ b/model_auth_details_representation.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AuthDetailsRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthDetailsRepresentation{} + +// AuthDetailsRepresentation struct for AuthDetailsRepresentation +type AuthDetailsRepresentation struct { + RealmId *string `json:"realmId,omitempty"` + ClientId *string `json:"clientId,omitempty"` + UserId *string `json:"userId,omitempty"` + IpAddress *string `json:"ipAddress,omitempty"` +} + +// NewAuthDetailsRepresentation instantiates a new AuthDetailsRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthDetailsRepresentation() *AuthDetailsRepresentation { + this := AuthDetailsRepresentation{} + return &this +} + +// NewAuthDetailsRepresentationWithDefaults instantiates a new AuthDetailsRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthDetailsRepresentationWithDefaults() *AuthDetailsRepresentation { + this := AuthDetailsRepresentation{} + return &this +} + +// GetRealmId returns the RealmId field value if set, zero value otherwise. +func (o *AuthDetailsRepresentation) GetRealmId() string { + if o == nil || IsNil(o.RealmId) { + var ret string + return ret + } + return *o.RealmId +} + +// GetRealmIdOk returns a tuple with the RealmId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthDetailsRepresentation) GetRealmIdOk() (*string, bool) { + if o == nil || IsNil(o.RealmId) { + return nil, false + } + return o.RealmId, true +} + +// HasRealmId returns a boolean if a field has been set. +func (o *AuthDetailsRepresentation) HasRealmId() bool { + if o != nil && !IsNil(o.RealmId) { + return true + } + + return false +} + +// SetRealmId gets a reference to the given string and assigns it to the RealmId field. +func (o *AuthDetailsRepresentation) SetRealmId(v string) { + o.RealmId = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *AuthDetailsRepresentation) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthDetailsRepresentation) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *AuthDetailsRepresentation) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *AuthDetailsRepresentation) SetClientId(v string) { + o.ClientId = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *AuthDetailsRepresentation) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthDetailsRepresentation) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *AuthDetailsRepresentation) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *AuthDetailsRepresentation) SetUserId(v string) { + o.UserId = &v +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *AuthDetailsRepresentation) 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 *AuthDetailsRepresentation) 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 *AuthDetailsRepresentation) 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 *AuthDetailsRepresentation) SetIpAddress(v string) { + o.IpAddress = &v +} + +func (o AuthDetailsRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthDetailsRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RealmId) { + toSerialize["realmId"] = o.RealmId + } + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + return toSerialize, nil +} + +type NullableAuthDetailsRepresentation struct { + value *AuthDetailsRepresentation + isSet bool +} + +func (v NullableAuthDetailsRepresentation) Get() *AuthDetailsRepresentation { + return v.value +} + +func (v *NullableAuthDetailsRepresentation) Set(val *AuthDetailsRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAuthDetailsRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthDetailsRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthDetailsRepresentation(val *AuthDetailsRepresentation) *NullableAuthDetailsRepresentation { + return &NullableAuthDetailsRepresentation{value: val, isSet: true} +} + +func (v NullableAuthDetailsRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthDetailsRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authentication_execution_export_representation.go b/model_authentication_execution_export_representation.go new file mode 100644 index 0000000..4e5fd5c --- /dev/null +++ b/model_authentication_execution_export_representation.go @@ -0,0 +1,380 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AuthenticationExecutionExportRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthenticationExecutionExportRepresentation{} + +// AuthenticationExecutionExportRepresentation struct for AuthenticationExecutionExportRepresentation +type AuthenticationExecutionExportRepresentation struct { + AuthenticatorConfig *string `json:"authenticatorConfig,omitempty"` + Authenticator *string `json:"authenticator,omitempty"` + AuthenticatorFlow *bool `json:"authenticatorFlow,omitempty"` + Requirement *string `json:"requirement,omitempty"` + Priority *int32 `json:"priority,omitempty"` + // Deprecated + AutheticatorFlow *bool `json:"autheticatorFlow,omitempty"` + FlowAlias *string `json:"flowAlias,omitempty"` + UserSetupAllowed *bool `json:"userSetupAllowed,omitempty"` +} + +// NewAuthenticationExecutionExportRepresentation instantiates a new AuthenticationExecutionExportRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticationExecutionExportRepresentation() *AuthenticationExecutionExportRepresentation { + this := AuthenticationExecutionExportRepresentation{} + return &this +} + +// NewAuthenticationExecutionExportRepresentationWithDefaults instantiates a new AuthenticationExecutionExportRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticationExecutionExportRepresentationWithDefaults() *AuthenticationExecutionExportRepresentation { + this := AuthenticationExecutionExportRepresentation{} + return &this +} + +// GetAuthenticatorConfig returns the AuthenticatorConfig field value if set, zero value otherwise. +func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorConfig() string { + if o == nil || IsNil(o.AuthenticatorConfig) { + var ret string + return ret + } + return *o.AuthenticatorConfig +} + +// GetAuthenticatorConfigOk returns a tuple with the AuthenticatorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorConfigOk() (*string, bool) { + if o == nil || IsNil(o.AuthenticatorConfig) { + return nil, false + } + return o.AuthenticatorConfig, true +} + +// HasAuthenticatorConfig returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasAuthenticatorConfig() bool { + if o != nil && !IsNil(o.AuthenticatorConfig) { + return true + } + + return false +} + +// SetAuthenticatorConfig gets a reference to the given string and assigns it to the AuthenticatorConfig field. +func (o *AuthenticationExecutionExportRepresentation) SetAuthenticatorConfig(v string) { + o.AuthenticatorConfig = &v +} + +// GetAuthenticator returns the Authenticator field value if set, zero value otherwise. +func (o *AuthenticationExecutionExportRepresentation) GetAuthenticator() string { + if o == nil || IsNil(o.Authenticator) { + var ret string + return ret + } + return *o.Authenticator +} + +// GetAuthenticatorOk returns a tuple with the Authenticator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorOk() (*string, bool) { + if o == nil || IsNil(o.Authenticator) { + return nil, false + } + return o.Authenticator, true +} + +// HasAuthenticator returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasAuthenticator() bool { + if o != nil && !IsNil(o.Authenticator) { + return true + } + + return false +} + +// SetAuthenticator gets a reference to the given string and assigns it to the Authenticator field. +func (o *AuthenticationExecutionExportRepresentation) SetAuthenticator(v string) { + o.Authenticator = &v +} + +// GetAuthenticatorFlow returns the AuthenticatorFlow field value if set, zero value otherwise. +func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorFlow() bool { + if o == nil || IsNil(o.AuthenticatorFlow) { + var ret bool + return ret + } + return *o.AuthenticatorFlow +} + +// GetAuthenticatorFlowOk returns a tuple with the AuthenticatorFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorFlowOk() (*bool, bool) { + if o == nil || IsNil(o.AuthenticatorFlow) { + return nil, false + } + return o.AuthenticatorFlow, true +} + +// HasAuthenticatorFlow returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasAuthenticatorFlow() bool { + if o != nil && !IsNil(o.AuthenticatorFlow) { + return true + } + + return false +} + +// SetAuthenticatorFlow gets a reference to the given bool and assigns it to the AuthenticatorFlow field. +func (o *AuthenticationExecutionExportRepresentation) SetAuthenticatorFlow(v bool) { + o.AuthenticatorFlow = &v +} + +// GetRequirement returns the Requirement field value if set, zero value otherwise. +func (o *AuthenticationExecutionExportRepresentation) GetRequirement() string { + if o == nil || IsNil(o.Requirement) { + var ret string + return ret + } + return *o.Requirement +} + +// GetRequirementOk returns a tuple with the Requirement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionExportRepresentation) GetRequirementOk() (*string, bool) { + if o == nil || IsNil(o.Requirement) { + return nil, false + } + return o.Requirement, true +} + +// HasRequirement returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasRequirement() bool { + if o != nil && !IsNil(o.Requirement) { + return true + } + + return false +} + +// SetRequirement gets a reference to the given string and assigns it to the Requirement field. +func (o *AuthenticationExecutionExportRepresentation) SetRequirement(v string) { + o.Requirement = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *AuthenticationExecutionExportRepresentation) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionExportRepresentation) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *AuthenticationExecutionExportRepresentation) SetPriority(v int32) { + o.Priority = &v +} + +// GetAutheticatorFlow returns the AutheticatorFlow field value if set, zero value otherwise. +// Deprecated +func (o *AuthenticationExecutionExportRepresentation) GetAutheticatorFlow() bool { + if o == nil || IsNil(o.AutheticatorFlow) { + var ret bool + return ret + } + return *o.AutheticatorFlow +} + +// GetAutheticatorFlowOk returns a tuple with the AutheticatorFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *AuthenticationExecutionExportRepresentation) GetAutheticatorFlowOk() (*bool, bool) { + if o == nil || IsNil(o.AutheticatorFlow) { + return nil, false + } + return o.AutheticatorFlow, true +} + +// HasAutheticatorFlow returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasAutheticatorFlow() bool { + if o != nil && !IsNil(o.AutheticatorFlow) { + return true + } + + return false +} + +// SetAutheticatorFlow gets a reference to the given bool and assigns it to the AutheticatorFlow field. +// Deprecated +func (o *AuthenticationExecutionExportRepresentation) SetAutheticatorFlow(v bool) { + o.AutheticatorFlow = &v +} + +// GetFlowAlias returns the FlowAlias field value if set, zero value otherwise. +func (o *AuthenticationExecutionExportRepresentation) GetFlowAlias() string { + if o == nil || IsNil(o.FlowAlias) { + var ret string + return ret + } + return *o.FlowAlias +} + +// GetFlowAliasOk returns a tuple with the FlowAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionExportRepresentation) GetFlowAliasOk() (*string, bool) { + if o == nil || IsNil(o.FlowAlias) { + return nil, false + } + return o.FlowAlias, true +} + +// HasFlowAlias returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasFlowAlias() bool { + if o != nil && !IsNil(o.FlowAlias) { + return true + } + + return false +} + +// SetFlowAlias gets a reference to the given string and assigns it to the FlowAlias field. +func (o *AuthenticationExecutionExportRepresentation) SetFlowAlias(v string) { + o.FlowAlias = &v +} + +// GetUserSetupAllowed returns the UserSetupAllowed field value if set, zero value otherwise. +func (o *AuthenticationExecutionExportRepresentation) GetUserSetupAllowed() bool { + if o == nil || IsNil(o.UserSetupAllowed) { + var ret bool + return ret + } + return *o.UserSetupAllowed +} + +// GetUserSetupAllowedOk returns a tuple with the UserSetupAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionExportRepresentation) GetUserSetupAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.UserSetupAllowed) { + return nil, false + } + return o.UserSetupAllowed, true +} + +// HasUserSetupAllowed returns a boolean if a field has been set. +func (o *AuthenticationExecutionExportRepresentation) HasUserSetupAllowed() bool { + if o != nil && !IsNil(o.UserSetupAllowed) { + return true + } + + return false +} + +// SetUserSetupAllowed gets a reference to the given bool and assigns it to the UserSetupAllowed field. +func (o *AuthenticationExecutionExportRepresentation) SetUserSetupAllowed(v bool) { + o.UserSetupAllowed = &v +} + +func (o AuthenticationExecutionExportRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthenticationExecutionExportRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthenticatorConfig) { + toSerialize["authenticatorConfig"] = o.AuthenticatorConfig + } + if !IsNil(o.Authenticator) { + toSerialize["authenticator"] = o.Authenticator + } + if !IsNil(o.AuthenticatorFlow) { + toSerialize["authenticatorFlow"] = o.AuthenticatorFlow + } + if !IsNil(o.Requirement) { + toSerialize["requirement"] = o.Requirement + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.AutheticatorFlow) { + toSerialize["autheticatorFlow"] = o.AutheticatorFlow + } + if !IsNil(o.FlowAlias) { + toSerialize["flowAlias"] = o.FlowAlias + } + if !IsNil(o.UserSetupAllowed) { + toSerialize["userSetupAllowed"] = o.UserSetupAllowed + } + return toSerialize, nil +} + +type NullableAuthenticationExecutionExportRepresentation struct { + value *AuthenticationExecutionExportRepresentation + isSet bool +} + +func (v NullableAuthenticationExecutionExportRepresentation) Get() *AuthenticationExecutionExportRepresentation { + return v.value +} + +func (v *NullableAuthenticationExecutionExportRepresentation) Set(val *AuthenticationExecutionExportRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationExecutionExportRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationExecutionExportRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationExecutionExportRepresentation(val *AuthenticationExecutionExportRepresentation) *NullableAuthenticationExecutionExportRepresentation { + return &NullableAuthenticationExecutionExportRepresentation{value: val, isSet: true} +} + +func (v NullableAuthenticationExecutionExportRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationExecutionExportRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authentication_execution_info_representation.go b/model_authentication_execution_info_representation.go new file mode 100644 index 0000000..29dc485 --- /dev/null +++ b/model_authentication_execution_info_representation.go @@ -0,0 +1,592 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AuthenticationExecutionInfoRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthenticationExecutionInfoRepresentation{} + +// AuthenticationExecutionInfoRepresentation struct for AuthenticationExecutionInfoRepresentation +type AuthenticationExecutionInfoRepresentation struct { + Id *string `json:"id,omitempty"` + Requirement *string `json:"requirement,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Alias *string `json:"alias,omitempty"` + Description *string `json:"description,omitempty"` + RequirementChoices []string `json:"requirementChoices,omitempty"` + Configurable *bool `json:"configurable,omitempty"` + AuthenticationFlow *bool `json:"authenticationFlow,omitempty"` + ProviderId *string `json:"providerId,omitempty"` + AuthenticationConfig *string `json:"authenticationConfig,omitempty"` + FlowId *string `json:"flowId,omitempty"` + Level *int32 `json:"level,omitempty"` + Index *int32 `json:"index,omitempty"` + Priority *int32 `json:"priority,omitempty"` +} + +// NewAuthenticationExecutionInfoRepresentation instantiates a new AuthenticationExecutionInfoRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticationExecutionInfoRepresentation() *AuthenticationExecutionInfoRepresentation { + this := AuthenticationExecutionInfoRepresentation{} + return &this +} + +// NewAuthenticationExecutionInfoRepresentationWithDefaults instantiates a new AuthenticationExecutionInfoRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticationExecutionInfoRepresentationWithDefaults() *AuthenticationExecutionInfoRepresentation { + this := AuthenticationExecutionInfoRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetId(v string) { + o.Id = &v +} + +// GetRequirement returns the Requirement field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetRequirement() string { + if o == nil || IsNil(o.Requirement) { + var ret string + return ret + } + return *o.Requirement +} + +// GetRequirementOk returns a tuple with the Requirement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetRequirementOk() (*string, bool) { + if o == nil || IsNil(o.Requirement) { + return nil, false + } + return o.Requirement, true +} + +// HasRequirement returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasRequirement() bool { + if o != nil && !IsNil(o.Requirement) { + return true + } + + return false +} + +// SetRequirement gets a reference to the given string and assigns it to the Requirement field. +func (o *AuthenticationExecutionInfoRepresentation) SetRequirement(v string) { + o.Requirement = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetAlias(v string) { + o.Alias = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetRequirementChoices returns the RequirementChoices field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetRequirementChoices() []string { + if o == nil || IsNil(o.RequirementChoices) { + var ret []string + return ret + } + return o.RequirementChoices +} + +// GetRequirementChoicesOk returns a tuple with the RequirementChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetRequirementChoicesOk() ([]string, bool) { + if o == nil || IsNil(o.RequirementChoices) { + return nil, false + } + return o.RequirementChoices, true +} + +// HasRequirementChoices returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasRequirementChoices() bool { + if o != nil && !IsNil(o.RequirementChoices) { + return true + } + + return false +} + +// SetRequirementChoices gets a reference to the given []string and assigns it to the RequirementChoices field. +func (o *AuthenticationExecutionInfoRepresentation) SetRequirementChoices(v []string) { + o.RequirementChoices = v +} + +// GetConfigurable returns the Configurable field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetConfigurable() bool { + if o == nil || IsNil(o.Configurable) { + var ret bool + return ret + } + return *o.Configurable +} + +// GetConfigurableOk returns a tuple with the Configurable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetConfigurableOk() (*bool, bool) { + if o == nil || IsNil(o.Configurable) { + return nil, false + } + return o.Configurable, true +} + +// HasConfigurable returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasConfigurable() bool { + if o != nil && !IsNil(o.Configurable) { + return true + } + + return false +} + +// SetConfigurable gets a reference to the given bool and assigns it to the Configurable field. +func (o *AuthenticationExecutionInfoRepresentation) SetConfigurable(v bool) { + o.Configurable = &v +} + +// GetAuthenticationFlow returns the AuthenticationFlow field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationFlow() bool { + if o == nil || IsNil(o.AuthenticationFlow) { + var ret bool + return ret + } + return *o.AuthenticationFlow +} + +// GetAuthenticationFlowOk returns a tuple with the AuthenticationFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationFlowOk() (*bool, bool) { + if o == nil || IsNil(o.AuthenticationFlow) { + return nil, false + } + return o.AuthenticationFlow, true +} + +// HasAuthenticationFlow returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasAuthenticationFlow() bool { + if o != nil && !IsNil(o.AuthenticationFlow) { + return true + } + + return false +} + +// SetAuthenticationFlow gets a reference to the given bool and assigns it to the AuthenticationFlow field. +func (o *AuthenticationExecutionInfoRepresentation) SetAuthenticationFlow(v bool) { + o.AuthenticationFlow = &v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *AuthenticationExecutionInfoRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetAuthenticationConfig returns the AuthenticationConfig field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationConfig() string { + if o == nil || IsNil(o.AuthenticationConfig) { + var ret string + return ret + } + return *o.AuthenticationConfig +} + +// GetAuthenticationConfigOk returns a tuple with the AuthenticationConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationConfigOk() (*string, bool) { + if o == nil || IsNil(o.AuthenticationConfig) { + return nil, false + } + return o.AuthenticationConfig, true +} + +// HasAuthenticationConfig returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasAuthenticationConfig() bool { + if o != nil && !IsNil(o.AuthenticationConfig) { + return true + } + + return false +} + +// SetAuthenticationConfig gets a reference to the given string and assigns it to the AuthenticationConfig field. +func (o *AuthenticationExecutionInfoRepresentation) SetAuthenticationConfig(v string) { + o.AuthenticationConfig = &v +} + +// GetFlowId returns the FlowId field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetFlowId() string { + if o == nil || IsNil(o.FlowId) { + var ret string + return ret + } + return *o.FlowId +} + +// GetFlowIdOk returns a tuple with the FlowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetFlowIdOk() (*string, bool) { + if o == nil || IsNil(o.FlowId) { + return nil, false + } + return o.FlowId, true +} + +// HasFlowId returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasFlowId() bool { + if o != nil && !IsNil(o.FlowId) { + return true + } + + return false +} + +// SetFlowId gets a reference to the given string and assigns it to the FlowId field. +func (o *AuthenticationExecutionInfoRepresentation) SetFlowId(v string) { + o.FlowId = &v +} + +// GetLevel returns the Level field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetLevel() int32 { + if o == nil || IsNil(o.Level) { + var ret int32 + return ret + } + return *o.Level +} + +// GetLevelOk returns a tuple with the Level field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetLevelOk() (*int32, bool) { + if o == nil || IsNil(o.Level) { + return nil, false + } + return o.Level, true +} + +// HasLevel returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasLevel() bool { + if o != nil && !IsNil(o.Level) { + return true + } + + return false +} + +// SetLevel gets a reference to the given int32 and assigns it to the Level field. +func (o *AuthenticationExecutionInfoRepresentation) SetLevel(v int32) { + o.Level = &v +} + +// GetIndex returns the Index field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetIndex() int32 { + if o == nil || IsNil(o.Index) { + var ret int32 + return ret + } + return *o.Index +} + +// GetIndexOk returns a tuple with the Index field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetIndexOk() (*int32, bool) { + if o == nil || IsNil(o.Index) { + return nil, false + } + return o.Index, true +} + +// HasIndex returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasIndex() bool { + if o != nil && !IsNil(o.Index) { + return true + } + + return false +} + +// SetIndex gets a reference to the given int32 and assigns it to the Index field. +func (o *AuthenticationExecutionInfoRepresentation) SetIndex(v int32) { + o.Index = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *AuthenticationExecutionInfoRepresentation) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionInfoRepresentation) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *AuthenticationExecutionInfoRepresentation) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *AuthenticationExecutionInfoRepresentation) SetPriority(v int32) { + o.Priority = &v +} + +func (o AuthenticationExecutionInfoRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthenticationExecutionInfoRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Requirement) { + toSerialize["requirement"] = o.Requirement + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.RequirementChoices) { + toSerialize["requirementChoices"] = o.RequirementChoices + } + if !IsNil(o.Configurable) { + toSerialize["configurable"] = o.Configurable + } + if !IsNil(o.AuthenticationFlow) { + toSerialize["authenticationFlow"] = o.AuthenticationFlow + } + if !IsNil(o.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.AuthenticationConfig) { + toSerialize["authenticationConfig"] = o.AuthenticationConfig + } + if !IsNil(o.FlowId) { + toSerialize["flowId"] = o.FlowId + } + if !IsNil(o.Level) { + toSerialize["level"] = o.Level + } + if !IsNil(o.Index) { + toSerialize["index"] = o.Index + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + return toSerialize, nil +} + +type NullableAuthenticationExecutionInfoRepresentation struct { + value *AuthenticationExecutionInfoRepresentation + isSet bool +} + +func (v NullableAuthenticationExecutionInfoRepresentation) Get() *AuthenticationExecutionInfoRepresentation { + return v.value +} + +func (v *NullableAuthenticationExecutionInfoRepresentation) Set(val *AuthenticationExecutionInfoRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationExecutionInfoRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationExecutionInfoRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationExecutionInfoRepresentation(val *AuthenticationExecutionInfoRepresentation) *NullableAuthenticationExecutionInfoRepresentation { + return &NullableAuthenticationExecutionInfoRepresentation{value: val, isSet: true} +} + +func (v NullableAuthenticationExecutionInfoRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationExecutionInfoRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authentication_execution_representation.go b/model_authentication_execution_representation.go new file mode 100644 index 0000000..977dc4e --- /dev/null +++ b/model_authentication_execution_representation.go @@ -0,0 +1,416 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AuthenticationExecutionRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthenticationExecutionRepresentation{} + +// AuthenticationExecutionRepresentation struct for AuthenticationExecutionRepresentation +type AuthenticationExecutionRepresentation struct { + AuthenticatorConfig *string `json:"authenticatorConfig,omitempty"` + Authenticator *string `json:"authenticator,omitempty"` + AuthenticatorFlow *bool `json:"authenticatorFlow,omitempty"` + Requirement *string `json:"requirement,omitempty"` + Priority *int32 `json:"priority,omitempty"` + // Deprecated + AutheticatorFlow *bool `json:"autheticatorFlow,omitempty"` + Id *string `json:"id,omitempty"` + FlowId *string `json:"flowId,omitempty"` + ParentFlow *string `json:"parentFlow,omitempty"` +} + +// NewAuthenticationExecutionRepresentation instantiates a new AuthenticationExecutionRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticationExecutionRepresentation() *AuthenticationExecutionRepresentation { + this := AuthenticationExecutionRepresentation{} + return &this +} + +// NewAuthenticationExecutionRepresentationWithDefaults instantiates a new AuthenticationExecutionRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticationExecutionRepresentationWithDefaults() *AuthenticationExecutionRepresentation { + this := AuthenticationExecutionRepresentation{} + return &this +} + +// GetAuthenticatorConfig returns the AuthenticatorConfig field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) GetAuthenticatorConfig() string { + if o == nil || IsNil(o.AuthenticatorConfig) { + var ret string + return ret + } + return *o.AuthenticatorConfig +} + +// GetAuthenticatorConfigOk returns a tuple with the AuthenticatorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionRepresentation) GetAuthenticatorConfigOk() (*string, bool) { + if o == nil || IsNil(o.AuthenticatorConfig) { + return nil, false + } + return o.AuthenticatorConfig, true +} + +// HasAuthenticatorConfig returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasAuthenticatorConfig() bool { + if o != nil && !IsNil(o.AuthenticatorConfig) { + return true + } + + return false +} + +// SetAuthenticatorConfig gets a reference to the given string and assigns it to the AuthenticatorConfig field. +func (o *AuthenticationExecutionRepresentation) SetAuthenticatorConfig(v string) { + o.AuthenticatorConfig = &v +} + +// GetAuthenticator returns the Authenticator field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) GetAuthenticator() string { + if o == nil || IsNil(o.Authenticator) { + var ret string + return ret + } + return *o.Authenticator +} + +// GetAuthenticatorOk returns a tuple with the Authenticator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionRepresentation) GetAuthenticatorOk() (*string, bool) { + if o == nil || IsNil(o.Authenticator) { + return nil, false + } + return o.Authenticator, true +} + +// HasAuthenticator returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasAuthenticator() bool { + if o != nil && !IsNil(o.Authenticator) { + return true + } + + return false +} + +// SetAuthenticator gets a reference to the given string and assigns it to the Authenticator field. +func (o *AuthenticationExecutionRepresentation) SetAuthenticator(v string) { + o.Authenticator = &v +} + +// GetAuthenticatorFlow returns the AuthenticatorFlow field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) GetAuthenticatorFlow() bool { + if o == nil || IsNil(o.AuthenticatorFlow) { + var ret bool + return ret + } + return *o.AuthenticatorFlow +} + +// GetAuthenticatorFlowOk returns a tuple with the AuthenticatorFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionRepresentation) GetAuthenticatorFlowOk() (*bool, bool) { + if o == nil || IsNil(o.AuthenticatorFlow) { + return nil, false + } + return o.AuthenticatorFlow, true +} + +// HasAuthenticatorFlow returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasAuthenticatorFlow() bool { + if o != nil && !IsNil(o.AuthenticatorFlow) { + return true + } + + return false +} + +// SetAuthenticatorFlow gets a reference to the given bool and assigns it to the AuthenticatorFlow field. +func (o *AuthenticationExecutionRepresentation) SetAuthenticatorFlow(v bool) { + o.AuthenticatorFlow = &v +} + +// GetRequirement returns the Requirement field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) GetRequirement() string { + if o == nil || IsNil(o.Requirement) { + var ret string + return ret + } + return *o.Requirement +} + +// GetRequirementOk returns a tuple with the Requirement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionRepresentation) GetRequirementOk() (*string, bool) { + if o == nil || IsNil(o.Requirement) { + return nil, false + } + return o.Requirement, true +} + +// HasRequirement returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasRequirement() bool { + if o != nil && !IsNil(o.Requirement) { + return true + } + + return false +} + +// SetRequirement gets a reference to the given string and assigns it to the Requirement field. +func (o *AuthenticationExecutionRepresentation) SetRequirement(v string) { + o.Requirement = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionRepresentation) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *AuthenticationExecutionRepresentation) SetPriority(v int32) { + o.Priority = &v +} + +// GetAutheticatorFlow returns the AutheticatorFlow field value if set, zero value otherwise. +// Deprecated +func (o *AuthenticationExecutionRepresentation) GetAutheticatorFlow() bool { + if o == nil || IsNil(o.AutheticatorFlow) { + var ret bool + return ret + } + return *o.AutheticatorFlow +} + +// GetAutheticatorFlowOk returns a tuple with the AutheticatorFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *AuthenticationExecutionRepresentation) GetAutheticatorFlowOk() (*bool, bool) { + if o == nil || IsNil(o.AutheticatorFlow) { + return nil, false + } + return o.AutheticatorFlow, true +} + +// HasAutheticatorFlow returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasAutheticatorFlow() bool { + if o != nil && !IsNil(o.AutheticatorFlow) { + return true + } + + return false +} + +// SetAutheticatorFlow gets a reference to the given bool and assigns it to the AutheticatorFlow field. +// Deprecated +func (o *AuthenticationExecutionRepresentation) SetAutheticatorFlow(v bool) { + o.AutheticatorFlow = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) 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 *AuthenticationExecutionRepresentation) 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 *AuthenticationExecutionRepresentation) 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 *AuthenticationExecutionRepresentation) SetId(v string) { + o.Id = &v +} + +// GetFlowId returns the FlowId field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) GetFlowId() string { + if o == nil || IsNil(o.FlowId) { + var ret string + return ret + } + return *o.FlowId +} + +// GetFlowIdOk returns a tuple with the FlowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionRepresentation) GetFlowIdOk() (*string, bool) { + if o == nil || IsNil(o.FlowId) { + return nil, false + } + return o.FlowId, true +} + +// HasFlowId returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasFlowId() bool { + if o != nil && !IsNil(o.FlowId) { + return true + } + + return false +} + +// SetFlowId gets a reference to the given string and assigns it to the FlowId field. +func (o *AuthenticationExecutionRepresentation) SetFlowId(v string) { + o.FlowId = &v +} + +// GetParentFlow returns the ParentFlow field value if set, zero value otherwise. +func (o *AuthenticationExecutionRepresentation) GetParentFlow() string { + if o == nil || IsNil(o.ParentFlow) { + var ret string + return ret + } + return *o.ParentFlow +} + +// GetParentFlowOk returns a tuple with the ParentFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationExecutionRepresentation) GetParentFlowOk() (*string, bool) { + if o == nil || IsNil(o.ParentFlow) { + return nil, false + } + return o.ParentFlow, true +} + +// HasParentFlow returns a boolean if a field has been set. +func (o *AuthenticationExecutionRepresentation) HasParentFlow() bool { + if o != nil && !IsNil(o.ParentFlow) { + return true + } + + return false +} + +// SetParentFlow gets a reference to the given string and assigns it to the ParentFlow field. +func (o *AuthenticationExecutionRepresentation) SetParentFlow(v string) { + o.ParentFlow = &v +} + +func (o AuthenticationExecutionRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthenticationExecutionRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthenticatorConfig) { + toSerialize["authenticatorConfig"] = o.AuthenticatorConfig + } + if !IsNil(o.Authenticator) { + toSerialize["authenticator"] = o.Authenticator + } + if !IsNil(o.AuthenticatorFlow) { + toSerialize["authenticatorFlow"] = o.AuthenticatorFlow + } + if !IsNil(o.Requirement) { + toSerialize["requirement"] = o.Requirement + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.AutheticatorFlow) { + toSerialize["autheticatorFlow"] = o.AutheticatorFlow + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.FlowId) { + toSerialize["flowId"] = o.FlowId + } + if !IsNil(o.ParentFlow) { + toSerialize["parentFlow"] = o.ParentFlow + } + return toSerialize, nil +} + +type NullableAuthenticationExecutionRepresentation struct { + value *AuthenticationExecutionRepresentation + isSet bool +} + +func (v NullableAuthenticationExecutionRepresentation) Get() *AuthenticationExecutionRepresentation { + return v.value +} + +func (v *NullableAuthenticationExecutionRepresentation) Set(val *AuthenticationExecutionRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationExecutionRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationExecutionRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationExecutionRepresentation(val *AuthenticationExecutionRepresentation) *NullableAuthenticationExecutionRepresentation { + return &NullableAuthenticationExecutionRepresentation{value: val, isSet: true} +} + +func (v NullableAuthenticationExecutionRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationExecutionRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authentication_flow_representation.go b/model_authentication_flow_representation.go new file mode 100644 index 0000000..5cefea0 --- /dev/null +++ b/model_authentication_flow_representation.go @@ -0,0 +1,340 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AuthenticationFlowRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthenticationFlowRepresentation{} + +// AuthenticationFlowRepresentation struct for AuthenticationFlowRepresentation +type AuthenticationFlowRepresentation struct { + Id *string `json:"id,omitempty"` + Alias *string `json:"alias,omitempty"` + Description *string `json:"description,omitempty"` + ProviderId *string `json:"providerId,omitempty"` + TopLevel *bool `json:"topLevel,omitempty"` + BuiltIn *bool `json:"builtIn,omitempty"` + AuthenticationExecutions []AuthenticationExecutionExportRepresentation `json:"authenticationExecutions,omitempty"` +} + +// NewAuthenticationFlowRepresentation instantiates a new AuthenticationFlowRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticationFlowRepresentation() *AuthenticationFlowRepresentation { + this := AuthenticationFlowRepresentation{} + return &this +} + +// NewAuthenticationFlowRepresentationWithDefaults instantiates a new AuthenticationFlowRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticationFlowRepresentationWithDefaults() *AuthenticationFlowRepresentation { + this := AuthenticationFlowRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) SetId(v string) { + o.Id = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) SetAlias(v string) { + o.Alias = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) 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 *AuthenticationFlowRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *AuthenticationFlowRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationFlowRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *AuthenticationFlowRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *AuthenticationFlowRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetTopLevel returns the TopLevel field value if set, zero value otherwise. +func (o *AuthenticationFlowRepresentation) GetTopLevel() bool { + if o == nil || IsNil(o.TopLevel) { + var ret bool + return ret + } + return *o.TopLevel +} + +// GetTopLevelOk returns a tuple with the TopLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationFlowRepresentation) GetTopLevelOk() (*bool, bool) { + if o == nil || IsNil(o.TopLevel) { + return nil, false + } + return o.TopLevel, true +} + +// HasTopLevel returns a boolean if a field has been set. +func (o *AuthenticationFlowRepresentation) HasTopLevel() bool { + if o != nil && !IsNil(o.TopLevel) { + return true + } + + return false +} + +// SetTopLevel gets a reference to the given bool and assigns it to the TopLevel field. +func (o *AuthenticationFlowRepresentation) SetTopLevel(v bool) { + o.TopLevel = &v +} + +// GetBuiltIn returns the BuiltIn field value if set, zero value otherwise. +func (o *AuthenticationFlowRepresentation) GetBuiltIn() bool { + if o == nil || IsNil(o.BuiltIn) { + var ret bool + return ret + } + return *o.BuiltIn +} + +// GetBuiltInOk returns a tuple with the BuiltIn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationFlowRepresentation) GetBuiltInOk() (*bool, bool) { + if o == nil || IsNil(o.BuiltIn) { + return nil, false + } + return o.BuiltIn, true +} + +// HasBuiltIn returns a boolean if a field has been set. +func (o *AuthenticationFlowRepresentation) HasBuiltIn() bool { + if o != nil && !IsNil(o.BuiltIn) { + return true + } + + return false +} + +// SetBuiltIn gets a reference to the given bool and assigns it to the BuiltIn field. +func (o *AuthenticationFlowRepresentation) SetBuiltIn(v bool) { + o.BuiltIn = &v +} + +// GetAuthenticationExecutions returns the AuthenticationExecutions field value if set, zero value otherwise. +func (o *AuthenticationFlowRepresentation) GetAuthenticationExecutions() []AuthenticationExecutionExportRepresentation { + if o == nil || IsNil(o.AuthenticationExecutions) { + var ret []AuthenticationExecutionExportRepresentation + return ret + } + return o.AuthenticationExecutions +} + +// GetAuthenticationExecutionsOk returns a tuple with the AuthenticationExecutions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationFlowRepresentation) GetAuthenticationExecutionsOk() ([]AuthenticationExecutionExportRepresentation, bool) { + if o == nil || IsNil(o.AuthenticationExecutions) { + return nil, false + } + return o.AuthenticationExecutions, true +} + +// HasAuthenticationExecutions returns a boolean if a field has been set. +func (o *AuthenticationFlowRepresentation) HasAuthenticationExecutions() bool { + if o != nil && !IsNil(o.AuthenticationExecutions) { + return true + } + + return false +} + +// SetAuthenticationExecutions gets a reference to the given []AuthenticationExecutionExportRepresentation and assigns it to the AuthenticationExecutions field. +func (o *AuthenticationFlowRepresentation) SetAuthenticationExecutions(v []AuthenticationExecutionExportRepresentation) { + o.AuthenticationExecutions = v +} + +func (o AuthenticationFlowRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthenticationFlowRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.TopLevel) { + toSerialize["topLevel"] = o.TopLevel + } + if !IsNil(o.BuiltIn) { + toSerialize["builtIn"] = o.BuiltIn + } + if !IsNil(o.AuthenticationExecutions) { + toSerialize["authenticationExecutions"] = o.AuthenticationExecutions + } + return toSerialize, nil +} + +type NullableAuthenticationFlowRepresentation struct { + value *AuthenticationFlowRepresentation + isSet bool +} + +func (v NullableAuthenticationFlowRepresentation) Get() *AuthenticationFlowRepresentation { + return v.value +} + +func (v *NullableAuthenticationFlowRepresentation) Set(val *AuthenticationFlowRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationFlowRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationFlowRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationFlowRepresentation(val *AuthenticationFlowRepresentation) *NullableAuthenticationFlowRepresentation { + return &NullableAuthenticationFlowRepresentation{value: val, isSet: true} +} + +func (v NullableAuthenticationFlowRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationFlowRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authenticator_config_info_representation.go b/model_authenticator_config_info_representation.go new file mode 100644 index 0000000..2545749 --- /dev/null +++ b/model_authenticator_config_info_representation.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AuthenticatorConfigInfoRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthenticatorConfigInfoRepresentation{} + +// AuthenticatorConfigInfoRepresentation struct for AuthenticatorConfigInfoRepresentation +type AuthenticatorConfigInfoRepresentation struct { + Name *string `json:"name,omitempty"` + ProviderId *string `json:"providerId,omitempty"` + HelpText *string `json:"helpText,omitempty"` + Properties []ConfigPropertyRepresentation `json:"properties,omitempty"` +} + +// NewAuthenticatorConfigInfoRepresentation instantiates a new AuthenticatorConfigInfoRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticatorConfigInfoRepresentation() *AuthenticatorConfigInfoRepresentation { + this := AuthenticatorConfigInfoRepresentation{} + return &this +} + +// NewAuthenticatorConfigInfoRepresentationWithDefaults instantiates a new AuthenticatorConfigInfoRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticatorConfigInfoRepresentationWithDefaults() *AuthenticatorConfigInfoRepresentation { + this := AuthenticatorConfigInfoRepresentation{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AuthenticatorConfigInfoRepresentation) 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 *AuthenticatorConfigInfoRepresentation) 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 *AuthenticatorConfigInfoRepresentation) 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 *AuthenticatorConfigInfoRepresentation) SetName(v string) { + o.Name = &v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *AuthenticatorConfigInfoRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticatorConfigInfoRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *AuthenticatorConfigInfoRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *AuthenticatorConfigInfoRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetHelpText returns the HelpText field value if set, zero value otherwise. +func (o *AuthenticatorConfigInfoRepresentation) GetHelpText() string { + if o == nil || IsNil(o.HelpText) { + var ret string + return ret + } + return *o.HelpText +} + +// GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticatorConfigInfoRepresentation) GetHelpTextOk() (*string, bool) { + if o == nil || IsNil(o.HelpText) { + return nil, false + } + return o.HelpText, true +} + +// HasHelpText returns a boolean if a field has been set. +func (o *AuthenticatorConfigInfoRepresentation) HasHelpText() bool { + if o != nil && !IsNil(o.HelpText) { + return true + } + + return false +} + +// SetHelpText gets a reference to the given string and assigns it to the HelpText field. +func (o *AuthenticatorConfigInfoRepresentation) SetHelpText(v string) { + o.HelpText = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *AuthenticatorConfigInfoRepresentation) GetProperties() []ConfigPropertyRepresentation { + if o == nil || IsNil(o.Properties) { + var ret []ConfigPropertyRepresentation + 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 *AuthenticatorConfigInfoRepresentation) GetPropertiesOk() ([]ConfigPropertyRepresentation, 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 *AuthenticatorConfigInfoRepresentation) HasProperties() bool { + if o != nil && !IsNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []ConfigPropertyRepresentation and assigns it to the Properties field. +func (o *AuthenticatorConfigInfoRepresentation) SetProperties(v []ConfigPropertyRepresentation) { + o.Properties = v +} + +func (o AuthenticatorConfigInfoRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthenticatorConfigInfoRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.HelpText) { + toSerialize["helpText"] = o.HelpText + } + if !IsNil(o.Properties) { + toSerialize["properties"] = o.Properties + } + return toSerialize, nil +} + +type NullableAuthenticatorConfigInfoRepresentation struct { + value *AuthenticatorConfigInfoRepresentation + isSet bool +} + +func (v NullableAuthenticatorConfigInfoRepresentation) Get() *AuthenticatorConfigInfoRepresentation { + return v.value +} + +func (v *NullableAuthenticatorConfigInfoRepresentation) Set(val *AuthenticatorConfigInfoRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticatorConfigInfoRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticatorConfigInfoRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticatorConfigInfoRepresentation(val *AuthenticatorConfigInfoRepresentation) *NullableAuthenticatorConfigInfoRepresentation { + return &NullableAuthenticatorConfigInfoRepresentation{value: val, isSet: true} +} + +func (v NullableAuthenticatorConfigInfoRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticatorConfigInfoRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authenticator_config_representation.go b/model_authenticator_config_representation.go new file mode 100644 index 0000000..6ac6af8 --- /dev/null +++ b/model_authenticator_config_representation.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the AuthenticatorConfigRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthenticatorConfigRepresentation{} + +// AuthenticatorConfigRepresentation struct for AuthenticatorConfigRepresentation +type AuthenticatorConfigRepresentation struct { + Id *string `json:"id,omitempty"` + Alias *string `json:"alias,omitempty"` + Config *map[string]string `json:"config,omitempty"` +} + +// NewAuthenticatorConfigRepresentation instantiates a new AuthenticatorConfigRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticatorConfigRepresentation() *AuthenticatorConfigRepresentation { + this := AuthenticatorConfigRepresentation{} + return &this +} + +// NewAuthenticatorConfigRepresentationWithDefaults instantiates a new AuthenticatorConfigRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticatorConfigRepresentationWithDefaults() *AuthenticatorConfigRepresentation { + this := AuthenticatorConfigRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) SetId(v string) { + o.Id = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) 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 *AuthenticatorConfigRepresentation) SetAlias(v string) { + o.Alias = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *AuthenticatorConfigRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticatorConfigRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *AuthenticatorConfigRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *AuthenticatorConfigRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +func (o AuthenticatorConfigRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthenticatorConfigRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableAuthenticatorConfigRepresentation struct { + value *AuthenticatorConfigRepresentation + isSet bool +} + +func (v NullableAuthenticatorConfigRepresentation) Get() *AuthenticatorConfigRepresentation { + return v.value +} + +func (v *NullableAuthenticatorConfigRepresentation) Set(val *AuthenticatorConfigRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticatorConfigRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticatorConfigRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticatorConfigRepresentation(val *AuthenticatorConfigRepresentation) *NullableAuthenticatorConfigRepresentation { + return &NullableAuthenticatorConfigRepresentation{value: val, isSet: true} +} + +func (v NullableAuthenticatorConfigRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticatorConfigRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authorization.go b/model_authorization.go new file mode 100644 index 0000000..924d36a --- /dev/null +++ b/model_authorization.go @@ -0,0 +1,124 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the Authorization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Authorization{} + +// Authorization struct for Authorization +type Authorization struct { + Permissions []Permission `json:"permissions,omitempty"` +} + +// NewAuthorization instantiates a new Authorization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthorization() *Authorization { + this := Authorization{} + return &this +} + +// NewAuthorizationWithDefaults instantiates a new Authorization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthorizationWithDefaults() *Authorization { + this := Authorization{} + return &this +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *Authorization) GetPermissions() []Permission { + if o == nil || IsNil(o.Permissions) { + var ret []Permission + 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 *Authorization) GetPermissionsOk() ([]Permission, 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 *Authorization) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []Permission and assigns it to the Permissions field. +func (o *Authorization) SetPermissions(v []Permission) { + o.Permissions = v +} + +func (o Authorization) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Authorization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableAuthorization struct { + value *Authorization + isSet bool +} + +func (v NullableAuthorization) Get() *Authorization { + return v.value +} + +func (v *NullableAuthorization) Set(val *Authorization) { + v.value = val + v.isSet = true +} + +func (v NullableAuthorization) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthorization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthorization(val *Authorization) *NullableAuthorization { + return &NullableAuthorization{value: val, isSet: true} +} + +func (v NullableAuthorization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthorization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brute_force_strategy.go b/model_brute_force_strategy.go new file mode 100644 index 0000000..eb1dbcd --- /dev/null +++ b/model_brute_force_strategy.go @@ -0,0 +1,110 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// BruteForceStrategy the model 'BruteForceStrategy' +type BruteForceStrategy string + +// List of BruteForceStrategy +const ( + LINEAR BruteForceStrategy = "LINEAR" + MULTIPLE BruteForceStrategy = "MULTIPLE" +) + +// All allowed values of BruteForceStrategy enum +var AllowedBruteForceStrategyEnumValues = []BruteForceStrategy{ + "LINEAR", + "MULTIPLE", +} + +func (v *BruteForceStrategy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BruteForceStrategy(value) + for _, existing := range AllowedBruteForceStrategyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BruteForceStrategy", value) +} + +// NewBruteForceStrategyFromValue returns a pointer to a valid BruteForceStrategy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBruteForceStrategyFromValue(v string) (*BruteForceStrategy, error) { + ev := BruteForceStrategy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BruteForceStrategy: valid values are %v", v, AllowedBruteForceStrategyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BruteForceStrategy) IsValid() bool { + for _, existing := range AllowedBruteForceStrategyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BruteForceStrategy value +func (v BruteForceStrategy) Ptr() *BruteForceStrategy { + return &v +} + +type NullableBruteForceStrategy struct { + value *BruteForceStrategy + isSet bool +} + +func (v NullableBruteForceStrategy) Get() *BruteForceStrategy { + return v.value +} + +func (v *NullableBruteForceStrategy) Set(val *BruteForceStrategy) { + v.value = val + v.isSet = true +} + +func (v NullableBruteForceStrategy) IsSet() bool { + return v.isSet +} + +func (v *NullableBruteForceStrategy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBruteForceStrategy(val *BruteForceStrategy) *NullableBruteForceStrategy { + return &NullableBruteForceStrategy{value: val, isSet: true} +} + +func (v NullableBruteForceStrategy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBruteForceStrategy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_certificate_representation.go b/model_certificate_representation.go new file mode 100644 index 0000000..cbe8116 --- /dev/null +++ b/model_certificate_representation.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the CertificateRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateRepresentation{} + +// CertificateRepresentation struct for CertificateRepresentation +type CertificateRepresentation struct { + PrivateKey *string `json:"privateKey,omitempty"` + PublicKey *string `json:"publicKey,omitempty"` + Certificate *string `json:"certificate,omitempty"` + Kid *string `json:"kid,omitempty"` +} + +// NewCertificateRepresentation instantiates a new CertificateRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateRepresentation() *CertificateRepresentation { + this := CertificateRepresentation{} + return &this +} + +// NewCertificateRepresentationWithDefaults instantiates a new CertificateRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateRepresentationWithDefaults() *CertificateRepresentation { + this := CertificateRepresentation{} + return &this +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise. +func (o *CertificateRepresentation) 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 *CertificateRepresentation) 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 *CertificateRepresentation) 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 *CertificateRepresentation) SetPrivateKey(v string) { + o.PrivateKey = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +func (o *CertificateRepresentation) 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 *CertificateRepresentation) 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 *CertificateRepresentation) 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 *CertificateRepresentation) SetPublicKey(v string) { + o.PublicKey = &v +} + +// GetCertificate returns the Certificate field value if set, zero value otherwise. +func (o *CertificateRepresentation) 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 *CertificateRepresentation) 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 *CertificateRepresentation) 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 *CertificateRepresentation) SetCertificate(v string) { + o.Certificate = &v +} + +// GetKid returns the Kid field value if set, zero value otherwise. +func (o *CertificateRepresentation) GetKid() string { + if o == nil || IsNil(o.Kid) { + var ret string + return ret + } + return *o.Kid +} + +// GetKidOk returns a tuple with the Kid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateRepresentation) GetKidOk() (*string, bool) { + if o == nil || IsNil(o.Kid) { + return nil, false + } + return o.Kid, true +} + +// HasKid returns a boolean if a field has been set. +func (o *CertificateRepresentation) HasKid() bool { + if o != nil && !IsNil(o.Kid) { + return true + } + + return false +} + +// SetKid gets a reference to the given string and assigns it to the Kid field. +func (o *CertificateRepresentation) SetKid(v string) { + o.Kid = &v +} + +func (o CertificateRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PrivateKey) { + toSerialize["privateKey"] = o.PrivateKey + } + if !IsNil(o.PublicKey) { + toSerialize["publicKey"] = o.PublicKey + } + if !IsNil(o.Certificate) { + toSerialize["certificate"] = o.Certificate + } + if !IsNil(o.Kid) { + toSerialize["kid"] = o.Kid + } + return toSerialize, nil +} + +type NullableCertificateRepresentation struct { + value *CertificateRepresentation + isSet bool +} + +func (v NullableCertificateRepresentation) Get() *CertificateRepresentation { + return v.value +} + +func (v *NullableCertificateRepresentation) Set(val *CertificateRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateRepresentation(val *CertificateRepresentation) *NullableCertificateRepresentation { + return &NullableCertificateRepresentation{value: val, isSet: true} +} + +func (v NullableCertificateRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_claim_representation.go b/model_claim_representation.go new file mode 100644 index 0000000..9e99a37 --- /dev/null +++ b/model_claim_representation.go @@ -0,0 +1,448 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClaimRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClaimRepresentation{} + +// ClaimRepresentation struct for ClaimRepresentation +type ClaimRepresentation struct { + Name *bool `json:"name,omitempty"` + Username *bool `json:"username,omitempty"` + Profile *bool `json:"profile,omitempty"` + Picture *bool `json:"picture,omitempty"` + Website *bool `json:"website,omitempty"` + Email *bool `json:"email,omitempty"` + Gender *bool `json:"gender,omitempty"` + Locale *bool `json:"locale,omitempty"` + Address *bool `json:"address,omitempty"` + Phone *bool `json:"phone,omitempty"` +} + +// NewClaimRepresentation instantiates a new ClaimRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClaimRepresentation() *ClaimRepresentation { + this := ClaimRepresentation{} + return &this +} + +// NewClaimRepresentationWithDefaults instantiates a new ClaimRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClaimRepresentationWithDefaults() *ClaimRepresentation { + this := ClaimRepresentation{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetName() bool { + if o == nil || IsNil(o.Name) { + var ret bool + 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 *ClaimRepresentation) GetNameOk() (*bool, 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 *ClaimRepresentation) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given bool and assigns it to the Name field. +func (o *ClaimRepresentation) SetName(v bool) { + o.Name = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetUsername() bool { + if o == nil || IsNil(o.Username) { + var ret bool + 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 *ClaimRepresentation) GetUsernameOk() (*bool, 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 *ClaimRepresentation) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given bool and assigns it to the Username field. +func (o *ClaimRepresentation) SetUsername(v bool) { + o.Username = &v +} + +// GetProfile returns the Profile field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetProfile() bool { + if o == nil || IsNil(o.Profile) { + var ret bool + return ret + } + return *o.Profile +} + +// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClaimRepresentation) GetProfileOk() (*bool, bool) { + if o == nil || IsNil(o.Profile) { + return nil, false + } + return o.Profile, true +} + +// HasProfile returns a boolean if a field has been set. +func (o *ClaimRepresentation) HasProfile() bool { + if o != nil && !IsNil(o.Profile) { + return true + } + + return false +} + +// SetProfile gets a reference to the given bool and assigns it to the Profile field. +func (o *ClaimRepresentation) SetProfile(v bool) { + o.Profile = &v +} + +// GetPicture returns the Picture field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetPicture() bool { + if o == nil || IsNil(o.Picture) { + var ret bool + return ret + } + return *o.Picture +} + +// GetPictureOk returns a tuple with the Picture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClaimRepresentation) GetPictureOk() (*bool, bool) { + if o == nil || IsNil(o.Picture) { + return nil, false + } + return o.Picture, true +} + +// HasPicture returns a boolean if a field has been set. +func (o *ClaimRepresentation) HasPicture() bool { + if o != nil && !IsNil(o.Picture) { + return true + } + + return false +} + +// SetPicture gets a reference to the given bool and assigns it to the Picture field. +func (o *ClaimRepresentation) SetPicture(v bool) { + o.Picture = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetWebsite() bool { + if o == nil || IsNil(o.Website) { + var ret bool + return ret + } + return *o.Website +} + +// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClaimRepresentation) GetWebsiteOk() (*bool, bool) { + if o == nil || IsNil(o.Website) { + return nil, false + } + return o.Website, true +} + +// HasWebsite returns a boolean if a field has been set. +func (o *ClaimRepresentation) HasWebsite() bool { + if o != nil && !IsNil(o.Website) { + return true + } + + return false +} + +// SetWebsite gets a reference to the given bool and assigns it to the Website field. +func (o *ClaimRepresentation) SetWebsite(v bool) { + o.Website = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetEmail() bool { + if o == nil || IsNil(o.Email) { + var ret bool + 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 *ClaimRepresentation) GetEmailOk() (*bool, 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 *ClaimRepresentation) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given bool and assigns it to the Email field. +func (o *ClaimRepresentation) SetEmail(v bool) { + o.Email = &v +} + +// GetGender returns the Gender field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetGender() bool { + if o == nil || IsNil(o.Gender) { + var ret bool + return ret + } + return *o.Gender +} + +// GetGenderOk returns a tuple with the Gender field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClaimRepresentation) GetGenderOk() (*bool, bool) { + if o == nil || IsNil(o.Gender) { + return nil, false + } + return o.Gender, true +} + +// HasGender returns a boolean if a field has been set. +func (o *ClaimRepresentation) HasGender() bool { + if o != nil && !IsNil(o.Gender) { + return true + } + + return false +} + +// SetGender gets a reference to the given bool and assigns it to the Gender field. +func (o *ClaimRepresentation) SetGender(v bool) { + o.Gender = &v +} + +// GetLocale returns the Locale field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetLocale() bool { + if o == nil || IsNil(o.Locale) { + var ret bool + return ret + } + return *o.Locale +} + +// GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClaimRepresentation) GetLocaleOk() (*bool, bool) { + if o == nil || IsNil(o.Locale) { + return nil, false + } + return o.Locale, true +} + +// HasLocale returns a boolean if a field has been set. +func (o *ClaimRepresentation) HasLocale() bool { + if o != nil && !IsNil(o.Locale) { + return true + } + + return false +} + +// SetLocale gets a reference to the given bool and assigns it to the Locale field. +func (o *ClaimRepresentation) SetLocale(v bool) { + o.Locale = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetAddress() bool { + if o == nil || IsNil(o.Address) { + var ret bool + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClaimRepresentation) GetAddressOk() (*bool, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *ClaimRepresentation) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given bool and assigns it to the Address field. +func (o *ClaimRepresentation) SetAddress(v bool) { + o.Address = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *ClaimRepresentation) GetPhone() bool { + if o == nil || IsNil(o.Phone) { + var ret bool + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClaimRepresentation) GetPhoneOk() (*bool, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *ClaimRepresentation) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given bool and assigns it to the Phone field. +func (o *ClaimRepresentation) SetPhone(v bool) { + o.Phone = &v +} + +func (o ClaimRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClaimRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.Profile) { + toSerialize["profile"] = o.Profile + } + if !IsNil(o.Picture) { + toSerialize["picture"] = o.Picture + } + if !IsNil(o.Website) { + toSerialize["website"] = o.Website + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Gender) { + toSerialize["gender"] = o.Gender + } + if !IsNil(o.Locale) { + toSerialize["locale"] = o.Locale + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + return toSerialize, nil +} + +type NullableClaimRepresentation struct { + value *ClaimRepresentation + isSet bool +} + +func (v NullableClaimRepresentation) Get() *ClaimRepresentation { + return v.value +} + +func (v *NullableClaimRepresentation) Set(val *ClaimRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClaimRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClaimRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClaimRepresentation(val *ClaimRepresentation) *NullableClaimRepresentation { + return &NullableClaimRepresentation{value: val, isSet: true} +} + +func (v NullableClaimRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClaimRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_initial_access_create_presentation.go b/model_client_initial_access_create_presentation.go new file mode 100644 index 0000000..75a102c --- /dev/null +++ b/model_client_initial_access_create_presentation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientInitialAccessCreatePresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientInitialAccessCreatePresentation{} + +// ClientInitialAccessCreatePresentation struct for ClientInitialAccessCreatePresentation +type ClientInitialAccessCreatePresentation struct { + Expiration *int32 `json:"expiration,omitempty"` + Count *int32 `json:"count,omitempty"` +} + +// NewClientInitialAccessCreatePresentation instantiates a new ClientInitialAccessCreatePresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientInitialAccessCreatePresentation() *ClientInitialAccessCreatePresentation { + this := ClientInitialAccessCreatePresentation{} + return &this +} + +// NewClientInitialAccessCreatePresentationWithDefaults instantiates a new ClientInitialAccessCreatePresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientInitialAccessCreatePresentationWithDefaults() *ClientInitialAccessCreatePresentation { + this := ClientInitialAccessCreatePresentation{} + return &this +} + +// GetExpiration returns the Expiration field value if set, zero value otherwise. +func (o *ClientInitialAccessCreatePresentation) GetExpiration() int32 { + if o == nil || IsNil(o.Expiration) { + var ret int32 + return ret + } + return *o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientInitialAccessCreatePresentation) GetExpirationOk() (*int32, bool) { + if o == nil || IsNil(o.Expiration) { + return nil, false + } + return o.Expiration, true +} + +// HasExpiration returns a boolean if a field has been set. +func (o *ClientInitialAccessCreatePresentation) HasExpiration() bool { + if o != nil && !IsNil(o.Expiration) { + return true + } + + return false +} + +// SetExpiration gets a reference to the given int32 and assigns it to the Expiration field. +func (o *ClientInitialAccessCreatePresentation) SetExpiration(v int32) { + o.Expiration = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ClientInitialAccessCreatePresentation) 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 *ClientInitialAccessCreatePresentation) 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 *ClientInitialAccessCreatePresentation) 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 *ClientInitialAccessCreatePresentation) SetCount(v int32) { + o.Count = &v +} + +func (o ClientInitialAccessCreatePresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientInitialAccessCreatePresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Expiration) { + toSerialize["expiration"] = o.Expiration + } + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + return toSerialize, nil +} + +type NullableClientInitialAccessCreatePresentation struct { + value *ClientInitialAccessCreatePresentation + isSet bool +} + +func (v NullableClientInitialAccessCreatePresentation) Get() *ClientInitialAccessCreatePresentation { + return v.value +} + +func (v *NullableClientInitialAccessCreatePresentation) Set(val *ClientInitialAccessCreatePresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientInitialAccessCreatePresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientInitialAccessCreatePresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientInitialAccessCreatePresentation(val *ClientInitialAccessCreatePresentation) *NullableClientInitialAccessCreatePresentation { + return &NullableClientInitialAccessCreatePresentation{value: val, isSet: true} +} + +func (v NullableClientInitialAccessCreatePresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientInitialAccessCreatePresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_initial_access_presentation.go b/model_client_initial_access_presentation.go new file mode 100644 index 0000000..ad70e60 --- /dev/null +++ b/model_client_initial_access_presentation.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientInitialAccessPresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientInitialAccessPresentation{} + +// ClientInitialAccessPresentation struct for ClientInitialAccessPresentation +type ClientInitialAccessPresentation struct { + Id *string `json:"id,omitempty"` + Token *string `json:"token,omitempty"` + Timestamp *int32 `json:"timestamp,omitempty"` + Expiration *int32 `json:"expiration,omitempty"` + Count *int32 `json:"count,omitempty"` + RemainingCount *int32 `json:"remainingCount,omitempty"` +} + +// NewClientInitialAccessPresentation instantiates a new ClientInitialAccessPresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientInitialAccessPresentation() *ClientInitialAccessPresentation { + this := ClientInitialAccessPresentation{} + return &this +} + +// NewClientInitialAccessPresentationWithDefaults instantiates a new ClientInitialAccessPresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientInitialAccessPresentationWithDefaults() *ClientInitialAccessPresentation { + this := ClientInitialAccessPresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) SetId(v string) { + o.Id = &v +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *ClientInitialAccessPresentation) GetToken() string { + if o == nil || IsNil(o.Token) { + var ret string + return ret + } + return *o.Token +} + +// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientInitialAccessPresentation) GetTokenOk() (*string, bool) { + if o == nil || IsNil(o.Token) { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *ClientInitialAccessPresentation) HasToken() bool { + if o != nil && !IsNil(o.Token) { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *ClientInitialAccessPresentation) SetToken(v string) { + o.Token = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *ClientInitialAccessPresentation) GetTimestamp() int32 { + if o == nil || IsNil(o.Timestamp) { + var ret int32 + 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 *ClientInitialAccessPresentation) GetTimestampOk() (*int32, 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 *ClientInitialAccessPresentation) HasTimestamp() bool { + if o != nil && !IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given int32 and assigns it to the Timestamp field. +func (o *ClientInitialAccessPresentation) SetTimestamp(v int32) { + o.Timestamp = &v +} + +// GetExpiration returns the Expiration field value if set, zero value otherwise. +func (o *ClientInitialAccessPresentation) GetExpiration() int32 { + if o == nil || IsNil(o.Expiration) { + var ret int32 + return ret + } + return *o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientInitialAccessPresentation) GetExpirationOk() (*int32, bool) { + if o == nil || IsNil(o.Expiration) { + return nil, false + } + return o.Expiration, true +} + +// HasExpiration returns a boolean if a field has been set. +func (o *ClientInitialAccessPresentation) HasExpiration() bool { + if o != nil && !IsNil(o.Expiration) { + return true + } + + return false +} + +// SetExpiration gets a reference to the given int32 and assigns it to the Expiration field. +func (o *ClientInitialAccessPresentation) SetExpiration(v int32) { + o.Expiration = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) 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 *ClientInitialAccessPresentation) SetCount(v int32) { + o.Count = &v +} + +// GetRemainingCount returns the RemainingCount field value if set, zero value otherwise. +func (o *ClientInitialAccessPresentation) GetRemainingCount() int32 { + if o == nil || IsNil(o.RemainingCount) { + var ret int32 + return ret + } + return *o.RemainingCount +} + +// GetRemainingCountOk returns a tuple with the RemainingCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientInitialAccessPresentation) GetRemainingCountOk() (*int32, bool) { + if o == nil || IsNil(o.RemainingCount) { + return nil, false + } + return o.RemainingCount, true +} + +// HasRemainingCount returns a boolean if a field has been set. +func (o *ClientInitialAccessPresentation) HasRemainingCount() bool { + if o != nil && !IsNil(o.RemainingCount) { + return true + } + + return false +} + +// SetRemainingCount gets a reference to the given int32 and assigns it to the RemainingCount field. +func (o *ClientInitialAccessPresentation) SetRemainingCount(v int32) { + o.RemainingCount = &v +} + +func (o ClientInitialAccessPresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientInitialAccessPresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Token) { + toSerialize["token"] = o.Token + } + if !IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } + if !IsNil(o.Expiration) { + toSerialize["expiration"] = o.Expiration + } + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.RemainingCount) { + toSerialize["remainingCount"] = o.RemainingCount + } + return toSerialize, nil +} + +type NullableClientInitialAccessPresentation struct { + value *ClientInitialAccessPresentation + isSet bool +} + +func (v NullableClientInitialAccessPresentation) Get() *ClientInitialAccessPresentation { + return v.value +} + +func (v *NullableClientInitialAccessPresentation) Set(val *ClientInitialAccessPresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientInitialAccessPresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientInitialAccessPresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientInitialAccessPresentation(val *ClientInitialAccessPresentation) *NullableClientInitialAccessPresentation { + return &NullableClientInitialAccessPresentation{value: val, isSet: true} +} + +func (v NullableClientInitialAccessPresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientInitialAccessPresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_mappings_representation.go b/model_client_mappings_representation.go new file mode 100644 index 0000000..4befaf9 --- /dev/null +++ b/model_client_mappings_representation.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientMappingsRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientMappingsRepresentation{} + +// ClientMappingsRepresentation struct for ClientMappingsRepresentation +type ClientMappingsRepresentation struct { + Id *string `json:"id,omitempty"` + Client *string `json:"client,omitempty"` + Mappings []RoleRepresentation `json:"mappings,omitempty"` +} + +// NewClientMappingsRepresentation instantiates a new ClientMappingsRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientMappingsRepresentation() *ClientMappingsRepresentation { + this := ClientMappingsRepresentation{} + return &this +} + +// NewClientMappingsRepresentationWithDefaults instantiates a new ClientMappingsRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientMappingsRepresentationWithDefaults() *ClientMappingsRepresentation { + this := ClientMappingsRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ClientMappingsRepresentation) 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 *ClientMappingsRepresentation) 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 *ClientMappingsRepresentation) 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 *ClientMappingsRepresentation) SetId(v string) { + o.Id = &v +} + +// GetClient returns the Client field value if set, zero value otherwise. +func (o *ClientMappingsRepresentation) GetClient() string { + if o == nil || IsNil(o.Client) { + var ret string + return ret + } + return *o.Client +} + +// GetClientOk returns a tuple with the Client field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientMappingsRepresentation) GetClientOk() (*string, bool) { + if o == nil || IsNil(o.Client) { + return nil, false + } + return o.Client, true +} + +// HasClient returns a boolean if a field has been set. +func (o *ClientMappingsRepresentation) HasClient() bool { + if o != nil && !IsNil(o.Client) { + return true + } + + return false +} + +// SetClient gets a reference to the given string and assigns it to the Client field. +func (o *ClientMappingsRepresentation) SetClient(v string) { + o.Client = &v +} + +// GetMappings returns the Mappings field value if set, zero value otherwise. +func (o *ClientMappingsRepresentation) GetMappings() []RoleRepresentation { + if o == nil || IsNil(o.Mappings) { + var ret []RoleRepresentation + return ret + } + return o.Mappings +} + +// GetMappingsOk returns a tuple with the Mappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientMappingsRepresentation) GetMappingsOk() ([]RoleRepresentation, bool) { + if o == nil || IsNil(o.Mappings) { + return nil, false + } + return o.Mappings, true +} + +// HasMappings returns a boolean if a field has been set. +func (o *ClientMappingsRepresentation) HasMappings() bool { + if o != nil && !IsNil(o.Mappings) { + return true + } + + return false +} + +// SetMappings gets a reference to the given []RoleRepresentation and assigns it to the Mappings field. +func (o *ClientMappingsRepresentation) SetMappings(v []RoleRepresentation) { + o.Mappings = v +} + +func (o ClientMappingsRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientMappingsRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Client) { + toSerialize["client"] = o.Client + } + if !IsNil(o.Mappings) { + toSerialize["mappings"] = o.Mappings + } + return toSerialize, nil +} + +type NullableClientMappingsRepresentation struct { + value *ClientMappingsRepresentation + isSet bool +} + +func (v NullableClientMappingsRepresentation) Get() *ClientMappingsRepresentation { + return v.value +} + +func (v *NullableClientMappingsRepresentation) Set(val *ClientMappingsRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientMappingsRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientMappingsRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientMappingsRepresentation(val *ClientMappingsRepresentation) *NullableClientMappingsRepresentation { + return &NullableClientMappingsRepresentation{value: val, isSet: true} +} + +func (v NullableClientMappingsRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientMappingsRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_policies_representation.go b/model_client_policies_representation.go new file mode 100644 index 0000000..f8aa2a7 --- /dev/null +++ b/model_client_policies_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientPoliciesRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientPoliciesRepresentation{} + +// ClientPoliciesRepresentation struct for ClientPoliciesRepresentation +type ClientPoliciesRepresentation struct { + Policies []ClientPolicyRepresentation `json:"policies,omitempty"` + GlobalPolicies []ClientPolicyRepresentation `json:"globalPolicies,omitempty"` +} + +// NewClientPoliciesRepresentation instantiates a new ClientPoliciesRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientPoliciesRepresentation() *ClientPoliciesRepresentation { + this := ClientPoliciesRepresentation{} + return &this +} + +// NewClientPoliciesRepresentationWithDefaults instantiates a new ClientPoliciesRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientPoliciesRepresentationWithDefaults() *ClientPoliciesRepresentation { + this := ClientPoliciesRepresentation{} + return &this +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *ClientPoliciesRepresentation) GetPolicies() []ClientPolicyRepresentation { + if o == nil || IsNil(o.Policies) { + var ret []ClientPolicyRepresentation + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientPoliciesRepresentation) GetPoliciesOk() ([]ClientPolicyRepresentation, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *ClientPoliciesRepresentation) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []ClientPolicyRepresentation and assigns it to the Policies field. +func (o *ClientPoliciesRepresentation) SetPolicies(v []ClientPolicyRepresentation) { + o.Policies = v +} + +// GetGlobalPolicies returns the GlobalPolicies field value if set, zero value otherwise. +func (o *ClientPoliciesRepresentation) GetGlobalPolicies() []ClientPolicyRepresentation { + if o == nil || IsNil(o.GlobalPolicies) { + var ret []ClientPolicyRepresentation + return ret + } + return o.GlobalPolicies +} + +// GetGlobalPoliciesOk returns a tuple with the GlobalPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientPoliciesRepresentation) GetGlobalPoliciesOk() ([]ClientPolicyRepresentation, bool) { + if o == nil || IsNil(o.GlobalPolicies) { + return nil, false + } + return o.GlobalPolicies, true +} + +// HasGlobalPolicies returns a boolean if a field has been set. +func (o *ClientPoliciesRepresentation) HasGlobalPolicies() bool { + if o != nil && !IsNil(o.GlobalPolicies) { + return true + } + + return false +} + +// SetGlobalPolicies gets a reference to the given []ClientPolicyRepresentation and assigns it to the GlobalPolicies field. +func (o *ClientPoliciesRepresentation) SetGlobalPolicies(v []ClientPolicyRepresentation) { + o.GlobalPolicies = v +} + +func (o ClientPoliciesRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientPoliciesRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + if !IsNil(o.GlobalPolicies) { + toSerialize["globalPolicies"] = o.GlobalPolicies + } + return toSerialize, nil +} + +type NullableClientPoliciesRepresentation struct { + value *ClientPoliciesRepresentation + isSet bool +} + +func (v NullableClientPoliciesRepresentation) Get() *ClientPoliciesRepresentation { + return v.value +} + +func (v *NullableClientPoliciesRepresentation) Set(val *ClientPoliciesRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientPoliciesRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientPoliciesRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientPoliciesRepresentation(val *ClientPoliciesRepresentation) *NullableClientPoliciesRepresentation { + return &NullableClientPoliciesRepresentation{value: val, isSet: true} +} + +func (v NullableClientPoliciesRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientPoliciesRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_policy_condition_representation.go b/model_client_policy_condition_representation.go new file mode 100644 index 0000000..b4361cb --- /dev/null +++ b/model_client_policy_condition_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientPolicyConditionRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientPolicyConditionRepresentation{} + +// ClientPolicyConditionRepresentation struct for ClientPolicyConditionRepresentation +type ClientPolicyConditionRepresentation struct { + Condition *string `json:"condition,omitempty"` + Configuration []string `json:"configuration,omitempty"` +} + +// NewClientPolicyConditionRepresentation instantiates a new ClientPolicyConditionRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientPolicyConditionRepresentation() *ClientPolicyConditionRepresentation { + this := ClientPolicyConditionRepresentation{} + return &this +} + +// NewClientPolicyConditionRepresentationWithDefaults instantiates a new ClientPolicyConditionRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientPolicyConditionRepresentationWithDefaults() *ClientPolicyConditionRepresentation { + this := ClientPolicyConditionRepresentation{} + return &this +} + +// GetCondition returns the Condition field value if set, zero value otherwise. +func (o *ClientPolicyConditionRepresentation) GetCondition() string { + if o == nil || IsNil(o.Condition) { + var ret string + return ret + } + return *o.Condition +} + +// GetConditionOk returns a tuple with the Condition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientPolicyConditionRepresentation) GetConditionOk() (*string, bool) { + if o == nil || IsNil(o.Condition) { + return nil, false + } + return o.Condition, true +} + +// HasCondition returns a boolean if a field has been set. +func (o *ClientPolicyConditionRepresentation) HasCondition() bool { + if o != nil && !IsNil(o.Condition) { + return true + } + + return false +} + +// SetCondition gets a reference to the given string and assigns it to the Condition field. +func (o *ClientPolicyConditionRepresentation) SetCondition(v string) { + o.Condition = &v +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *ClientPolicyConditionRepresentation) GetConfiguration() []string { + if o == nil || IsNil(o.Configuration) { + var ret []string + return ret + } + return o.Configuration +} + +// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientPolicyConditionRepresentation) GetConfigurationOk() ([]string, bool) { + if o == nil || IsNil(o.Configuration) { + return nil, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *ClientPolicyConditionRepresentation) HasConfiguration() bool { + if o != nil && !IsNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given []string and assigns it to the Configuration field. +func (o *ClientPolicyConditionRepresentation) SetConfiguration(v []string) { + o.Configuration = v +} + +func (o ClientPolicyConditionRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientPolicyConditionRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Condition) { + toSerialize["condition"] = o.Condition + } + if !IsNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + return toSerialize, nil +} + +type NullableClientPolicyConditionRepresentation struct { + value *ClientPolicyConditionRepresentation + isSet bool +} + +func (v NullableClientPolicyConditionRepresentation) Get() *ClientPolicyConditionRepresentation { + return v.value +} + +func (v *NullableClientPolicyConditionRepresentation) Set(val *ClientPolicyConditionRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientPolicyConditionRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientPolicyConditionRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientPolicyConditionRepresentation(val *ClientPolicyConditionRepresentation) *NullableClientPolicyConditionRepresentation { + return &NullableClientPolicyConditionRepresentation{value: val, isSet: true} +} + +func (v NullableClientPolicyConditionRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientPolicyConditionRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_policy_executor_representation.go b/model_client_policy_executor_representation.go new file mode 100644 index 0000000..f0a849e --- /dev/null +++ b/model_client_policy_executor_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientPolicyExecutorRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientPolicyExecutorRepresentation{} + +// ClientPolicyExecutorRepresentation struct for ClientPolicyExecutorRepresentation +type ClientPolicyExecutorRepresentation struct { + Executor *string `json:"executor,omitempty"` + Configuration []string `json:"configuration,omitempty"` +} + +// NewClientPolicyExecutorRepresentation instantiates a new ClientPolicyExecutorRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientPolicyExecutorRepresentation() *ClientPolicyExecutorRepresentation { + this := ClientPolicyExecutorRepresentation{} + return &this +} + +// NewClientPolicyExecutorRepresentationWithDefaults instantiates a new ClientPolicyExecutorRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientPolicyExecutorRepresentationWithDefaults() *ClientPolicyExecutorRepresentation { + this := ClientPolicyExecutorRepresentation{} + return &this +} + +// GetExecutor returns the Executor field value if set, zero value otherwise. +func (o *ClientPolicyExecutorRepresentation) GetExecutor() string { + if o == nil || IsNil(o.Executor) { + var ret string + return ret + } + return *o.Executor +} + +// GetExecutorOk returns a tuple with the Executor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientPolicyExecutorRepresentation) GetExecutorOk() (*string, bool) { + if o == nil || IsNil(o.Executor) { + return nil, false + } + return o.Executor, true +} + +// HasExecutor returns a boolean if a field has been set. +func (o *ClientPolicyExecutorRepresentation) HasExecutor() bool { + if o != nil && !IsNil(o.Executor) { + return true + } + + return false +} + +// SetExecutor gets a reference to the given string and assigns it to the Executor field. +func (o *ClientPolicyExecutorRepresentation) SetExecutor(v string) { + o.Executor = &v +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *ClientPolicyExecutorRepresentation) GetConfiguration() []string { + if o == nil || IsNil(o.Configuration) { + var ret []string + return ret + } + return o.Configuration +} + +// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientPolicyExecutorRepresentation) GetConfigurationOk() ([]string, bool) { + if o == nil || IsNil(o.Configuration) { + return nil, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *ClientPolicyExecutorRepresentation) HasConfiguration() bool { + if o != nil && !IsNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given []string and assigns it to the Configuration field. +func (o *ClientPolicyExecutorRepresentation) SetConfiguration(v []string) { + o.Configuration = v +} + +func (o ClientPolicyExecutorRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientPolicyExecutorRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Executor) { + toSerialize["executor"] = o.Executor + } + if !IsNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + return toSerialize, nil +} + +type NullableClientPolicyExecutorRepresentation struct { + value *ClientPolicyExecutorRepresentation + isSet bool +} + +func (v NullableClientPolicyExecutorRepresentation) Get() *ClientPolicyExecutorRepresentation { + return v.value +} + +func (v *NullableClientPolicyExecutorRepresentation) Set(val *ClientPolicyExecutorRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientPolicyExecutorRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientPolicyExecutorRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientPolicyExecutorRepresentation(val *ClientPolicyExecutorRepresentation) *NullableClientPolicyExecutorRepresentation { + return &NullableClientPolicyExecutorRepresentation{value: val, isSet: true} +} + +func (v NullableClientPolicyExecutorRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientPolicyExecutorRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_policy_representation.go b/model_client_policy_representation.go new file mode 100644 index 0000000..38d1e96 --- /dev/null +++ b/model_client_policy_representation.go @@ -0,0 +1,268 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientPolicyRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientPolicyRepresentation{} + +// ClientPolicyRepresentation struct for ClientPolicyRepresentation +type ClientPolicyRepresentation struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Conditions []ClientPolicyConditionRepresentation `json:"conditions,omitempty"` + Profiles []string `json:"profiles,omitempty"` +} + +// NewClientPolicyRepresentation instantiates a new ClientPolicyRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientPolicyRepresentation() *ClientPolicyRepresentation { + this := ClientPolicyRepresentation{} + return &this +} + +// NewClientPolicyRepresentationWithDefaults instantiates a new ClientPolicyRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientPolicyRepresentationWithDefaults() *ClientPolicyRepresentation { + this := ClientPolicyRepresentation{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) 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 *ClientPolicyRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ClientPolicyRepresentation) GetConditions() []ClientPolicyConditionRepresentation { + if o == nil || IsNil(o.Conditions) { + var ret []ClientPolicyConditionRepresentation + 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 *ClientPolicyRepresentation) GetConditionsOk() ([]ClientPolicyConditionRepresentation, 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 *ClientPolicyRepresentation) HasConditions() bool { + if o != nil && !IsNil(o.Conditions) { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ClientPolicyConditionRepresentation and assigns it to the Conditions field. +func (o *ClientPolicyRepresentation) SetConditions(v []ClientPolicyConditionRepresentation) { + o.Conditions = v +} + +// GetProfiles returns the Profiles field value if set, zero value otherwise. +func (o *ClientPolicyRepresentation) GetProfiles() []string { + if o == nil || IsNil(o.Profiles) { + var ret []string + return ret + } + return o.Profiles +} + +// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientPolicyRepresentation) GetProfilesOk() ([]string, bool) { + if o == nil || IsNil(o.Profiles) { + return nil, false + } + return o.Profiles, true +} + +// HasProfiles returns a boolean if a field has been set. +func (o *ClientPolicyRepresentation) HasProfiles() bool { + if o != nil && !IsNil(o.Profiles) { + return true + } + + return false +} + +// SetProfiles gets a reference to the given []string and assigns it to the Profiles field. +func (o *ClientPolicyRepresentation) SetProfiles(v []string) { + o.Profiles = v +} + +func (o ClientPolicyRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientPolicyRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Conditions) { + toSerialize["conditions"] = o.Conditions + } + if !IsNil(o.Profiles) { + toSerialize["profiles"] = o.Profiles + } + return toSerialize, nil +} + +type NullableClientPolicyRepresentation struct { + value *ClientPolicyRepresentation + isSet bool +} + +func (v NullableClientPolicyRepresentation) Get() *ClientPolicyRepresentation { + return v.value +} + +func (v *NullableClientPolicyRepresentation) Set(val *ClientPolicyRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientPolicyRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientPolicyRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientPolicyRepresentation(val *ClientPolicyRepresentation) *NullableClientPolicyRepresentation { + return &NullableClientPolicyRepresentation{value: val, isSet: true} +} + +func (v NullableClientPolicyRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientPolicyRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_profile_representation.go b/model_client_profile_representation.go new file mode 100644 index 0000000..b520ea9 --- /dev/null +++ b/model_client_profile_representation.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientProfileRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientProfileRepresentation{} + +// ClientProfileRepresentation struct for ClientProfileRepresentation +type ClientProfileRepresentation struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Executors []ClientPolicyExecutorRepresentation `json:"executors,omitempty"` +} + +// NewClientProfileRepresentation instantiates a new ClientProfileRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientProfileRepresentation() *ClientProfileRepresentation { + this := ClientProfileRepresentation{} + return &this +} + +// NewClientProfileRepresentationWithDefaults instantiates a new ClientProfileRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientProfileRepresentationWithDefaults() *ClientProfileRepresentation { + this := ClientProfileRepresentation{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ClientProfileRepresentation) 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 *ClientProfileRepresentation) 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 *ClientProfileRepresentation) 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 *ClientProfileRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ClientProfileRepresentation) 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 *ClientProfileRepresentation) 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 *ClientProfileRepresentation) 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 *ClientProfileRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetExecutors returns the Executors field value if set, zero value otherwise. +func (o *ClientProfileRepresentation) GetExecutors() []ClientPolicyExecutorRepresentation { + if o == nil || IsNil(o.Executors) { + var ret []ClientPolicyExecutorRepresentation + return ret + } + return o.Executors +} + +// GetExecutorsOk returns a tuple with the Executors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientProfileRepresentation) GetExecutorsOk() ([]ClientPolicyExecutorRepresentation, bool) { + if o == nil || IsNil(o.Executors) { + return nil, false + } + return o.Executors, true +} + +// HasExecutors returns a boolean if a field has been set. +func (o *ClientProfileRepresentation) HasExecutors() bool { + if o != nil && !IsNil(o.Executors) { + return true + } + + return false +} + +// SetExecutors gets a reference to the given []ClientPolicyExecutorRepresentation and assigns it to the Executors field. +func (o *ClientProfileRepresentation) SetExecutors(v []ClientPolicyExecutorRepresentation) { + o.Executors = v +} + +func (o ClientProfileRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientProfileRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Executors) { + toSerialize["executors"] = o.Executors + } + return toSerialize, nil +} + +type NullableClientProfileRepresentation struct { + value *ClientProfileRepresentation + isSet bool +} + +func (v NullableClientProfileRepresentation) Get() *ClientProfileRepresentation { + return v.value +} + +func (v *NullableClientProfileRepresentation) Set(val *ClientProfileRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientProfileRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientProfileRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientProfileRepresentation(val *ClientProfileRepresentation) *NullableClientProfileRepresentation { + return &NullableClientProfileRepresentation{value: val, isSet: true} +} + +func (v NullableClientProfileRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientProfileRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_profiles_representation.go b/model_client_profiles_representation.go new file mode 100644 index 0000000..919b1c1 --- /dev/null +++ b/model_client_profiles_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientProfilesRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientProfilesRepresentation{} + +// ClientProfilesRepresentation struct for ClientProfilesRepresentation +type ClientProfilesRepresentation struct { + Profiles []ClientProfileRepresentation `json:"profiles,omitempty"` + GlobalProfiles []ClientProfileRepresentation `json:"globalProfiles,omitempty"` +} + +// NewClientProfilesRepresentation instantiates a new ClientProfilesRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientProfilesRepresentation() *ClientProfilesRepresentation { + this := ClientProfilesRepresentation{} + return &this +} + +// NewClientProfilesRepresentationWithDefaults instantiates a new ClientProfilesRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientProfilesRepresentationWithDefaults() *ClientProfilesRepresentation { + this := ClientProfilesRepresentation{} + return &this +} + +// GetProfiles returns the Profiles field value if set, zero value otherwise. +func (o *ClientProfilesRepresentation) GetProfiles() []ClientProfileRepresentation { + if o == nil || IsNil(o.Profiles) { + var ret []ClientProfileRepresentation + return ret + } + return o.Profiles +} + +// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientProfilesRepresentation) GetProfilesOk() ([]ClientProfileRepresentation, bool) { + if o == nil || IsNil(o.Profiles) { + return nil, false + } + return o.Profiles, true +} + +// HasProfiles returns a boolean if a field has been set. +func (o *ClientProfilesRepresentation) HasProfiles() bool { + if o != nil && !IsNil(o.Profiles) { + return true + } + + return false +} + +// SetProfiles gets a reference to the given []ClientProfileRepresentation and assigns it to the Profiles field. +func (o *ClientProfilesRepresentation) SetProfiles(v []ClientProfileRepresentation) { + o.Profiles = v +} + +// GetGlobalProfiles returns the GlobalProfiles field value if set, zero value otherwise. +func (o *ClientProfilesRepresentation) GetGlobalProfiles() []ClientProfileRepresentation { + if o == nil || IsNil(o.GlobalProfiles) { + var ret []ClientProfileRepresentation + return ret + } + return o.GlobalProfiles +} + +// GetGlobalProfilesOk returns a tuple with the GlobalProfiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientProfilesRepresentation) GetGlobalProfilesOk() ([]ClientProfileRepresentation, bool) { + if o == nil || IsNil(o.GlobalProfiles) { + return nil, false + } + return o.GlobalProfiles, true +} + +// HasGlobalProfiles returns a boolean if a field has been set. +func (o *ClientProfilesRepresentation) HasGlobalProfiles() bool { + if o != nil && !IsNil(o.GlobalProfiles) { + return true + } + + return false +} + +// SetGlobalProfiles gets a reference to the given []ClientProfileRepresentation and assigns it to the GlobalProfiles field. +func (o *ClientProfilesRepresentation) SetGlobalProfiles(v []ClientProfileRepresentation) { + o.GlobalProfiles = v +} + +func (o ClientProfilesRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientProfilesRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Profiles) { + toSerialize["profiles"] = o.Profiles + } + if !IsNil(o.GlobalProfiles) { + toSerialize["globalProfiles"] = o.GlobalProfiles + } + return toSerialize, nil +} + +type NullableClientProfilesRepresentation struct { + value *ClientProfilesRepresentation + isSet bool +} + +func (v NullableClientProfilesRepresentation) Get() *ClientProfilesRepresentation { + return v.value +} + +func (v *NullableClientProfilesRepresentation) Set(val *ClientProfilesRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientProfilesRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientProfilesRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientProfilesRepresentation(val *ClientProfilesRepresentation) *NullableClientProfilesRepresentation { + return &NullableClientProfilesRepresentation{value: val, isSet: true} +} + +func (v NullableClientProfilesRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientProfilesRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_representation.go b/model_client_representation.go new file mode 100644 index 0000000..24d6ad4 --- /dev/null +++ b/model_client_representation.go @@ -0,0 +1,1696 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientRepresentation{} + +// ClientRepresentation struct for ClientRepresentation +type ClientRepresentation struct { + Id *string `json:"id,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + RootUrl *string `json:"rootUrl,omitempty"` + AdminUrl *string `json:"adminUrl,omitempty"` + BaseUrl *string `json:"baseUrl,omitempty"` + SurrogateAuthRequired *bool `json:"surrogateAuthRequired,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + AlwaysDisplayInConsole *bool `json:"alwaysDisplayInConsole,omitempty"` + ClientAuthenticatorType *string `json:"clientAuthenticatorType,omitempty"` + Secret *string `json:"secret,omitempty"` + RegistrationAccessToken *string `json:"registrationAccessToken,omitempty"` + // Deprecated + DefaultRoles []string `json:"defaultRoles,omitempty"` + RedirectUris []string `json:"redirectUris,omitempty"` + WebOrigins []string `json:"webOrigins,omitempty"` + NotBefore *int32 `json:"notBefore,omitempty"` + BearerOnly *bool `json:"bearerOnly,omitempty"` + ConsentRequired *bool `json:"consentRequired,omitempty"` + StandardFlowEnabled *bool `json:"standardFlowEnabled,omitempty"` + ImplicitFlowEnabled *bool `json:"implicitFlowEnabled,omitempty"` + DirectAccessGrantsEnabled *bool `json:"directAccessGrantsEnabled,omitempty"` + ServiceAccountsEnabled *bool `json:"serviceAccountsEnabled,omitempty"` + AuthorizationServicesEnabled *bool `json:"authorizationServicesEnabled,omitempty"` + // Deprecated + DirectGrantsOnly *bool `json:"directGrantsOnly,omitempty"` + PublicClient *bool `json:"publicClient,omitempty"` + FrontchannelLogout *bool `json:"frontchannelLogout,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Attributes *map[string]string `json:"attributes,omitempty"` + AuthenticationFlowBindingOverrides *map[string]string `json:"authenticationFlowBindingOverrides,omitempty"` + FullScopeAllowed *bool `json:"fullScopeAllowed,omitempty"` + NodeReRegistrationTimeout *int32 `json:"nodeReRegistrationTimeout,omitempty"` + RegisteredNodes *map[string]int32 `json:"registeredNodes,omitempty"` + ProtocolMappers []ProtocolMapperRepresentation `json:"protocolMappers,omitempty"` + // Deprecated + ClientTemplate *string `json:"clientTemplate,omitempty"` + // Deprecated + UseTemplateConfig *bool `json:"useTemplateConfig,omitempty"` + // Deprecated + UseTemplateScope *bool `json:"useTemplateScope,omitempty"` + // Deprecated + UseTemplateMappers *bool `json:"useTemplateMappers,omitempty"` + DefaultClientScopes []string `json:"defaultClientScopes,omitempty"` + OptionalClientScopes []string `json:"optionalClientScopes,omitempty"` + AuthorizationSettings *ResourceServerRepresentation `json:"authorizationSettings,omitempty"` + Access *map[string]bool `json:"access,omitempty"` + Origin *string `json:"origin,omitempty"` +} + +// NewClientRepresentation instantiates a new ClientRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientRepresentation() *ClientRepresentation { + this := ClientRepresentation{} + return &this +} + +// NewClientRepresentationWithDefaults instantiates a new ClientRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientRepresentationWithDefaults() *ClientRepresentation { + this := ClientRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) SetId(v string) { + o.Id = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ClientRepresentation) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ClientRepresentation) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ClientRepresentation) SetClientId(v string) { + o.ClientId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) SetType(v string) { + o.Type = &v +} + +// GetRootUrl returns the RootUrl field value if set, zero value otherwise. +func (o *ClientRepresentation) GetRootUrl() string { + if o == nil || IsNil(o.RootUrl) { + var ret string + return ret + } + return *o.RootUrl +} + +// GetRootUrlOk returns a tuple with the RootUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetRootUrlOk() (*string, bool) { + if o == nil || IsNil(o.RootUrl) { + return nil, false + } + return o.RootUrl, true +} + +// HasRootUrl returns a boolean if a field has been set. +func (o *ClientRepresentation) HasRootUrl() bool { + if o != nil && !IsNil(o.RootUrl) { + return true + } + + return false +} + +// SetRootUrl gets a reference to the given string and assigns it to the RootUrl field. +func (o *ClientRepresentation) SetRootUrl(v string) { + o.RootUrl = &v +} + +// GetAdminUrl returns the AdminUrl field value if set, zero value otherwise. +func (o *ClientRepresentation) GetAdminUrl() string { + if o == nil || IsNil(o.AdminUrl) { + var ret string + return ret + } + return *o.AdminUrl +} + +// GetAdminUrlOk returns a tuple with the AdminUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetAdminUrlOk() (*string, bool) { + if o == nil || IsNil(o.AdminUrl) { + return nil, false + } + return o.AdminUrl, true +} + +// HasAdminUrl returns a boolean if a field has been set. +func (o *ClientRepresentation) HasAdminUrl() bool { + if o != nil && !IsNil(o.AdminUrl) { + return true + } + + return false +} + +// SetAdminUrl gets a reference to the given string and assigns it to the AdminUrl field. +func (o *ClientRepresentation) SetAdminUrl(v string) { + o.AdminUrl = &v +} + +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *ClientRepresentation) GetBaseUrl() string { + if o == nil || IsNil(o.BaseUrl) { + var ret string + return ret + } + return *o.BaseUrl +} + +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { + return nil, false + } + return o.BaseUrl, true +} + +// HasBaseUrl returns a boolean if a field has been set. +func (o *ClientRepresentation) HasBaseUrl() bool { + if o != nil && !IsNil(o.BaseUrl) { + return true + } + + return false +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ClientRepresentation) SetBaseUrl(v string) { + o.BaseUrl = &v +} + +// GetSurrogateAuthRequired returns the SurrogateAuthRequired field value if set, zero value otherwise. +func (o *ClientRepresentation) GetSurrogateAuthRequired() bool { + if o == nil || IsNil(o.SurrogateAuthRequired) { + var ret bool + return ret + } + return *o.SurrogateAuthRequired +} + +// GetSurrogateAuthRequiredOk returns a tuple with the SurrogateAuthRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetSurrogateAuthRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.SurrogateAuthRequired) { + return nil, false + } + return o.SurrogateAuthRequired, true +} + +// HasSurrogateAuthRequired returns a boolean if a field has been set. +func (o *ClientRepresentation) HasSurrogateAuthRequired() bool { + if o != nil && !IsNil(o.SurrogateAuthRequired) { + return true + } + + return false +} + +// SetSurrogateAuthRequired gets a reference to the given bool and assigns it to the SurrogateAuthRequired field. +func (o *ClientRepresentation) SetSurrogateAuthRequired(v bool) { + o.SurrogateAuthRequired = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) 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 *ClientRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetAlwaysDisplayInConsole returns the AlwaysDisplayInConsole field value if set, zero value otherwise. +func (o *ClientRepresentation) GetAlwaysDisplayInConsole() bool { + if o == nil || IsNil(o.AlwaysDisplayInConsole) { + var ret bool + return ret + } + return *o.AlwaysDisplayInConsole +} + +// GetAlwaysDisplayInConsoleOk returns a tuple with the AlwaysDisplayInConsole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetAlwaysDisplayInConsoleOk() (*bool, bool) { + if o == nil || IsNil(o.AlwaysDisplayInConsole) { + return nil, false + } + return o.AlwaysDisplayInConsole, true +} + +// HasAlwaysDisplayInConsole returns a boolean if a field has been set. +func (o *ClientRepresentation) HasAlwaysDisplayInConsole() bool { + if o != nil && !IsNil(o.AlwaysDisplayInConsole) { + return true + } + + return false +} + +// SetAlwaysDisplayInConsole gets a reference to the given bool and assigns it to the AlwaysDisplayInConsole field. +func (o *ClientRepresentation) SetAlwaysDisplayInConsole(v bool) { + o.AlwaysDisplayInConsole = &v +} + +// GetClientAuthenticatorType returns the ClientAuthenticatorType field value if set, zero value otherwise. +func (o *ClientRepresentation) GetClientAuthenticatorType() string { + if o == nil || IsNil(o.ClientAuthenticatorType) { + var ret string + return ret + } + return *o.ClientAuthenticatorType +} + +// GetClientAuthenticatorTypeOk returns a tuple with the ClientAuthenticatorType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetClientAuthenticatorTypeOk() (*string, bool) { + if o == nil || IsNil(o.ClientAuthenticatorType) { + return nil, false + } + return o.ClientAuthenticatorType, true +} + +// HasClientAuthenticatorType returns a boolean if a field has been set. +func (o *ClientRepresentation) HasClientAuthenticatorType() bool { + if o != nil && !IsNil(o.ClientAuthenticatorType) { + return true + } + + return false +} + +// SetClientAuthenticatorType gets a reference to the given string and assigns it to the ClientAuthenticatorType field. +func (o *ClientRepresentation) SetClientAuthenticatorType(v string) { + o.ClientAuthenticatorType = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ClientRepresentation) GetSecret() string { + if o == nil || IsNil(o.Secret) { + var ret string + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetSecretOk() (*string, bool) { + if o == nil || IsNil(o.Secret) { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ClientRepresentation) HasSecret() bool { + if o != nil && !IsNil(o.Secret) { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *ClientRepresentation) SetSecret(v string) { + o.Secret = &v +} + +// GetRegistrationAccessToken returns the RegistrationAccessToken field value if set, zero value otherwise. +func (o *ClientRepresentation) GetRegistrationAccessToken() string { + if o == nil || IsNil(o.RegistrationAccessToken) { + var ret string + return ret + } + return *o.RegistrationAccessToken +} + +// GetRegistrationAccessTokenOk returns a tuple with the RegistrationAccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetRegistrationAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.RegistrationAccessToken) { + return nil, false + } + return o.RegistrationAccessToken, true +} + +// HasRegistrationAccessToken returns a boolean if a field has been set. +func (o *ClientRepresentation) HasRegistrationAccessToken() bool { + if o != nil && !IsNil(o.RegistrationAccessToken) { + return true + } + + return false +} + +// SetRegistrationAccessToken gets a reference to the given string and assigns it to the RegistrationAccessToken field. +func (o *ClientRepresentation) SetRegistrationAccessToken(v string) { + o.RegistrationAccessToken = &v +} + +// GetDefaultRoles returns the DefaultRoles field value if set, zero value otherwise. +// Deprecated +func (o *ClientRepresentation) GetDefaultRoles() []string { + if o == nil || IsNil(o.DefaultRoles) { + var ret []string + return ret + } + return o.DefaultRoles +} + +// GetDefaultRolesOk returns a tuple with the DefaultRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ClientRepresentation) GetDefaultRolesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultRoles) { + return nil, false + } + return o.DefaultRoles, true +} + +// HasDefaultRoles returns a boolean if a field has been set. +func (o *ClientRepresentation) HasDefaultRoles() bool { + if o != nil && !IsNil(o.DefaultRoles) { + return true + } + + return false +} + +// SetDefaultRoles gets a reference to the given []string and assigns it to the DefaultRoles field. +// Deprecated +func (o *ClientRepresentation) SetDefaultRoles(v []string) { + o.DefaultRoles = v +} + +// GetRedirectUris returns the RedirectUris field value if set, zero value otherwise. +func (o *ClientRepresentation) GetRedirectUris() []string { + if o == nil || IsNil(o.RedirectUris) { + var ret []string + return ret + } + return o.RedirectUris +} + +// GetRedirectUrisOk returns a tuple with the RedirectUris field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetRedirectUrisOk() ([]string, bool) { + if o == nil || IsNil(o.RedirectUris) { + return nil, false + } + return o.RedirectUris, true +} + +// HasRedirectUris returns a boolean if a field has been set. +func (o *ClientRepresentation) HasRedirectUris() bool { + if o != nil && !IsNil(o.RedirectUris) { + return true + } + + return false +} + +// SetRedirectUris gets a reference to the given []string and assigns it to the RedirectUris field. +func (o *ClientRepresentation) SetRedirectUris(v []string) { + o.RedirectUris = v +} + +// GetWebOrigins returns the WebOrigins field value if set, zero value otherwise. +func (o *ClientRepresentation) GetWebOrigins() []string { + if o == nil || IsNil(o.WebOrigins) { + var ret []string + return ret + } + return o.WebOrigins +} + +// GetWebOriginsOk returns a tuple with the WebOrigins field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetWebOriginsOk() ([]string, bool) { + if o == nil || IsNil(o.WebOrigins) { + return nil, false + } + return o.WebOrigins, true +} + +// HasWebOrigins returns a boolean if a field has been set. +func (o *ClientRepresentation) HasWebOrigins() bool { + if o != nil && !IsNil(o.WebOrigins) { + return true + } + + return false +} + +// SetWebOrigins gets a reference to the given []string and assigns it to the WebOrigins field. +func (o *ClientRepresentation) SetWebOrigins(v []string) { + o.WebOrigins = v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *ClientRepresentation) GetNotBefore() int32 { + if o == nil || IsNil(o.NotBefore) { + var ret int32 + 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 *ClientRepresentation) GetNotBeforeOk() (*int32, 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 *ClientRepresentation) HasNotBefore() bool { + if o != nil && !IsNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given int32 and assigns it to the NotBefore field. +func (o *ClientRepresentation) SetNotBefore(v int32) { + o.NotBefore = &v +} + +// GetBearerOnly returns the BearerOnly field value if set, zero value otherwise. +func (o *ClientRepresentation) GetBearerOnly() bool { + if o == nil || IsNil(o.BearerOnly) { + var ret bool + return ret + } + return *o.BearerOnly +} + +// GetBearerOnlyOk returns a tuple with the BearerOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetBearerOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.BearerOnly) { + return nil, false + } + return o.BearerOnly, true +} + +// HasBearerOnly returns a boolean if a field has been set. +func (o *ClientRepresentation) HasBearerOnly() bool { + if o != nil && !IsNil(o.BearerOnly) { + return true + } + + return false +} + +// SetBearerOnly gets a reference to the given bool and assigns it to the BearerOnly field. +func (o *ClientRepresentation) SetBearerOnly(v bool) { + o.BearerOnly = &v +} + +// GetConsentRequired returns the ConsentRequired field value if set, zero value otherwise. +func (o *ClientRepresentation) GetConsentRequired() bool { + if o == nil || IsNil(o.ConsentRequired) { + var ret bool + return ret + } + return *o.ConsentRequired +} + +// GetConsentRequiredOk returns a tuple with the ConsentRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetConsentRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.ConsentRequired) { + return nil, false + } + return o.ConsentRequired, true +} + +// HasConsentRequired returns a boolean if a field has been set. +func (o *ClientRepresentation) HasConsentRequired() bool { + if o != nil && !IsNil(o.ConsentRequired) { + return true + } + + return false +} + +// SetConsentRequired gets a reference to the given bool and assigns it to the ConsentRequired field. +func (o *ClientRepresentation) SetConsentRequired(v bool) { + o.ConsentRequired = &v +} + +// GetStandardFlowEnabled returns the StandardFlowEnabled field value if set, zero value otherwise. +func (o *ClientRepresentation) GetStandardFlowEnabled() bool { + if o == nil || IsNil(o.StandardFlowEnabled) { + var ret bool + return ret + } + return *o.StandardFlowEnabled +} + +// GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetStandardFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.StandardFlowEnabled) { + return nil, false + } + return o.StandardFlowEnabled, true +} + +// HasStandardFlowEnabled returns a boolean if a field has been set. +func (o *ClientRepresentation) HasStandardFlowEnabled() bool { + if o != nil && !IsNil(o.StandardFlowEnabled) { + return true + } + + return false +} + +// SetStandardFlowEnabled gets a reference to the given bool and assigns it to the StandardFlowEnabled field. +func (o *ClientRepresentation) SetStandardFlowEnabled(v bool) { + o.StandardFlowEnabled = &v +} + +// GetImplicitFlowEnabled returns the ImplicitFlowEnabled field value if set, zero value otherwise. +func (o *ClientRepresentation) GetImplicitFlowEnabled() bool { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + var ret bool + return ret + } + return *o.ImplicitFlowEnabled +} + +// GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetImplicitFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + return nil, false + } + return o.ImplicitFlowEnabled, true +} + +// HasImplicitFlowEnabled returns a boolean if a field has been set. +func (o *ClientRepresentation) HasImplicitFlowEnabled() bool { + if o != nil && !IsNil(o.ImplicitFlowEnabled) { + return true + } + + return false +} + +// SetImplicitFlowEnabled gets a reference to the given bool and assigns it to the ImplicitFlowEnabled field. +func (o *ClientRepresentation) SetImplicitFlowEnabled(v bool) { + o.ImplicitFlowEnabled = &v +} + +// GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field value if set, zero value otherwise. +func (o *ClientRepresentation) GetDirectAccessGrantsEnabled() bool { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + var ret bool + return ret + } + return *o.DirectAccessGrantsEnabled +} + +// GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + return nil, false + } + return o.DirectAccessGrantsEnabled, true +} + +// HasDirectAccessGrantsEnabled returns a boolean if a field has been set. +func (o *ClientRepresentation) HasDirectAccessGrantsEnabled() bool { + if o != nil && !IsNil(o.DirectAccessGrantsEnabled) { + return true + } + + return false +} + +// SetDirectAccessGrantsEnabled gets a reference to the given bool and assigns it to the DirectAccessGrantsEnabled field. +func (o *ClientRepresentation) SetDirectAccessGrantsEnabled(v bool) { + o.DirectAccessGrantsEnabled = &v +} + +// GetServiceAccountsEnabled returns the ServiceAccountsEnabled field value if set, zero value otherwise. +func (o *ClientRepresentation) GetServiceAccountsEnabled() bool { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + var ret bool + return ret + } + return *o.ServiceAccountsEnabled +} + +// GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetServiceAccountsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + return nil, false + } + return o.ServiceAccountsEnabled, true +} + +// HasServiceAccountsEnabled returns a boolean if a field has been set. +func (o *ClientRepresentation) HasServiceAccountsEnabled() bool { + if o != nil && !IsNil(o.ServiceAccountsEnabled) { + return true + } + + return false +} + +// SetServiceAccountsEnabled gets a reference to the given bool and assigns it to the ServiceAccountsEnabled field. +func (o *ClientRepresentation) SetServiceAccountsEnabled(v bool) { + o.ServiceAccountsEnabled = &v +} + +// GetAuthorizationServicesEnabled returns the AuthorizationServicesEnabled field value if set, zero value otherwise. +func (o *ClientRepresentation) GetAuthorizationServicesEnabled() bool { + if o == nil || IsNil(o.AuthorizationServicesEnabled) { + var ret bool + return ret + } + return *o.AuthorizationServicesEnabled +} + +// GetAuthorizationServicesEnabledOk returns a tuple with the AuthorizationServicesEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetAuthorizationServicesEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AuthorizationServicesEnabled) { + return nil, false + } + return o.AuthorizationServicesEnabled, true +} + +// HasAuthorizationServicesEnabled returns a boolean if a field has been set. +func (o *ClientRepresentation) HasAuthorizationServicesEnabled() bool { + if o != nil && !IsNil(o.AuthorizationServicesEnabled) { + return true + } + + return false +} + +// SetAuthorizationServicesEnabled gets a reference to the given bool and assigns it to the AuthorizationServicesEnabled field. +func (o *ClientRepresentation) SetAuthorizationServicesEnabled(v bool) { + o.AuthorizationServicesEnabled = &v +} + +// GetDirectGrantsOnly returns the DirectGrantsOnly field value if set, zero value otherwise. +// Deprecated +func (o *ClientRepresentation) GetDirectGrantsOnly() bool { + if o == nil || IsNil(o.DirectGrantsOnly) { + var ret bool + return ret + } + return *o.DirectGrantsOnly +} + +// GetDirectGrantsOnlyOk returns a tuple with the DirectGrantsOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ClientRepresentation) GetDirectGrantsOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.DirectGrantsOnly) { + return nil, false + } + return o.DirectGrantsOnly, true +} + +// HasDirectGrantsOnly returns a boolean if a field has been set. +func (o *ClientRepresentation) HasDirectGrantsOnly() bool { + if o != nil && !IsNil(o.DirectGrantsOnly) { + return true + } + + return false +} + +// SetDirectGrantsOnly gets a reference to the given bool and assigns it to the DirectGrantsOnly field. +// Deprecated +func (o *ClientRepresentation) SetDirectGrantsOnly(v bool) { + o.DirectGrantsOnly = &v +} + +// GetPublicClient returns the PublicClient field value if set, zero value otherwise. +func (o *ClientRepresentation) GetPublicClient() bool { + if o == nil || IsNil(o.PublicClient) { + var ret bool + return ret + } + return *o.PublicClient +} + +// GetPublicClientOk returns a tuple with the PublicClient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetPublicClientOk() (*bool, bool) { + if o == nil || IsNil(o.PublicClient) { + return nil, false + } + return o.PublicClient, true +} + +// HasPublicClient returns a boolean if a field has been set. +func (o *ClientRepresentation) HasPublicClient() bool { + if o != nil && !IsNil(o.PublicClient) { + return true + } + + return false +} + +// SetPublicClient gets a reference to the given bool and assigns it to the PublicClient field. +func (o *ClientRepresentation) SetPublicClient(v bool) { + o.PublicClient = &v +} + +// GetFrontchannelLogout returns the FrontchannelLogout field value if set, zero value otherwise. +func (o *ClientRepresentation) GetFrontchannelLogout() bool { + if o == nil || IsNil(o.FrontchannelLogout) { + var ret bool + return ret + } + return *o.FrontchannelLogout +} + +// GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetFrontchannelLogoutOk() (*bool, bool) { + if o == nil || IsNil(o.FrontchannelLogout) { + return nil, false + } + return o.FrontchannelLogout, true +} + +// HasFrontchannelLogout returns a boolean if a field has been set. +func (o *ClientRepresentation) HasFrontchannelLogout() bool { + if o != nil && !IsNil(o.FrontchannelLogout) { + return true + } + + return false +} + +// SetFrontchannelLogout gets a reference to the given bool and assigns it to the FrontchannelLogout field. +func (o *ClientRepresentation) SetFrontchannelLogout(v bool) { + o.FrontchannelLogout = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *ClientRepresentation) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *ClientRepresentation) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *ClientRepresentation) SetProtocol(v string) { + o.Protocol = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *ClientRepresentation) GetAttributes() map[string]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetAttributesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *ClientRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. +func (o *ClientRepresentation) SetAttributes(v map[string]string) { + o.Attributes = &v +} + +// GetAuthenticationFlowBindingOverrides returns the AuthenticationFlowBindingOverrides field value if set, zero value otherwise. +func (o *ClientRepresentation) GetAuthenticationFlowBindingOverrides() map[string]string { + if o == nil || IsNil(o.AuthenticationFlowBindingOverrides) { + var ret map[string]string + return ret + } + return *o.AuthenticationFlowBindingOverrides +} + +// GetAuthenticationFlowBindingOverridesOk returns a tuple with the AuthenticationFlowBindingOverrides field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetAuthenticationFlowBindingOverridesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.AuthenticationFlowBindingOverrides) { + return nil, false + } + return o.AuthenticationFlowBindingOverrides, true +} + +// HasAuthenticationFlowBindingOverrides returns a boolean if a field has been set. +func (o *ClientRepresentation) HasAuthenticationFlowBindingOverrides() bool { + if o != nil && !IsNil(o.AuthenticationFlowBindingOverrides) { + return true + } + + return false +} + +// SetAuthenticationFlowBindingOverrides gets a reference to the given map[string]string and assigns it to the AuthenticationFlowBindingOverrides field. +func (o *ClientRepresentation) SetAuthenticationFlowBindingOverrides(v map[string]string) { + o.AuthenticationFlowBindingOverrides = &v +} + +// GetFullScopeAllowed returns the FullScopeAllowed field value if set, zero value otherwise. +func (o *ClientRepresentation) GetFullScopeAllowed() bool { + if o == nil || IsNil(o.FullScopeAllowed) { + var ret bool + return ret + } + return *o.FullScopeAllowed +} + +// GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetFullScopeAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.FullScopeAllowed) { + return nil, false + } + return o.FullScopeAllowed, true +} + +// HasFullScopeAllowed returns a boolean if a field has been set. +func (o *ClientRepresentation) HasFullScopeAllowed() bool { + if o != nil && !IsNil(o.FullScopeAllowed) { + return true + } + + return false +} + +// SetFullScopeAllowed gets a reference to the given bool and assigns it to the FullScopeAllowed field. +func (o *ClientRepresentation) SetFullScopeAllowed(v bool) { + o.FullScopeAllowed = &v +} + +// GetNodeReRegistrationTimeout returns the NodeReRegistrationTimeout field value if set, zero value otherwise. +func (o *ClientRepresentation) GetNodeReRegistrationTimeout() int32 { + if o == nil || IsNil(o.NodeReRegistrationTimeout) { + var ret int32 + return ret + } + return *o.NodeReRegistrationTimeout +} + +// GetNodeReRegistrationTimeoutOk returns a tuple with the NodeReRegistrationTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetNodeReRegistrationTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.NodeReRegistrationTimeout) { + return nil, false + } + return o.NodeReRegistrationTimeout, true +} + +// HasNodeReRegistrationTimeout returns a boolean if a field has been set. +func (o *ClientRepresentation) HasNodeReRegistrationTimeout() bool { + if o != nil && !IsNil(o.NodeReRegistrationTimeout) { + return true + } + + return false +} + +// SetNodeReRegistrationTimeout gets a reference to the given int32 and assigns it to the NodeReRegistrationTimeout field. +func (o *ClientRepresentation) SetNodeReRegistrationTimeout(v int32) { + o.NodeReRegistrationTimeout = &v +} + +// GetRegisteredNodes returns the RegisteredNodes field value if set, zero value otherwise. +func (o *ClientRepresentation) GetRegisteredNodes() map[string]int32 { + if o == nil || IsNil(o.RegisteredNodes) { + var ret map[string]int32 + return ret + } + return *o.RegisteredNodes +} + +// GetRegisteredNodesOk returns a tuple with the RegisteredNodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetRegisteredNodesOk() (*map[string]int32, bool) { + if o == nil || IsNil(o.RegisteredNodes) { + return nil, false + } + return o.RegisteredNodes, true +} + +// HasRegisteredNodes returns a boolean if a field has been set. +func (o *ClientRepresentation) HasRegisteredNodes() bool { + if o != nil && !IsNil(o.RegisteredNodes) { + return true + } + + return false +} + +// SetRegisteredNodes gets a reference to the given map[string]int32 and assigns it to the RegisteredNodes field. +func (o *ClientRepresentation) SetRegisteredNodes(v map[string]int32) { + o.RegisteredNodes = &v +} + +// GetProtocolMappers returns the ProtocolMappers field value if set, zero value otherwise. +func (o *ClientRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation { + if o == nil || IsNil(o.ProtocolMappers) { + var ret []ProtocolMapperRepresentation + return ret + } + return o.ProtocolMappers +} + +// GetProtocolMappersOk returns a tuple with the ProtocolMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetProtocolMappersOk() ([]ProtocolMapperRepresentation, bool) { + if o == nil || IsNil(o.ProtocolMappers) { + return nil, false + } + return o.ProtocolMappers, true +} + +// HasProtocolMappers returns a boolean if a field has been set. +func (o *ClientRepresentation) HasProtocolMappers() bool { + if o != nil && !IsNil(o.ProtocolMappers) { + return true + } + + return false +} + +// SetProtocolMappers gets a reference to the given []ProtocolMapperRepresentation and assigns it to the ProtocolMappers field. +func (o *ClientRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation) { + o.ProtocolMappers = v +} + +// GetClientTemplate returns the ClientTemplate field value if set, zero value otherwise. +// Deprecated +func (o *ClientRepresentation) GetClientTemplate() string { + if o == nil || IsNil(o.ClientTemplate) { + var ret string + return ret + } + return *o.ClientTemplate +} + +// GetClientTemplateOk returns a tuple with the ClientTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ClientRepresentation) GetClientTemplateOk() (*string, bool) { + if o == nil || IsNil(o.ClientTemplate) { + return nil, false + } + return o.ClientTemplate, true +} + +// HasClientTemplate returns a boolean if a field has been set. +func (o *ClientRepresentation) HasClientTemplate() bool { + if o != nil && !IsNil(o.ClientTemplate) { + return true + } + + return false +} + +// SetClientTemplate gets a reference to the given string and assigns it to the ClientTemplate field. +// Deprecated +func (o *ClientRepresentation) SetClientTemplate(v string) { + o.ClientTemplate = &v +} + +// GetUseTemplateConfig returns the UseTemplateConfig field value if set, zero value otherwise. +// Deprecated +func (o *ClientRepresentation) GetUseTemplateConfig() bool { + if o == nil || IsNil(o.UseTemplateConfig) { + var ret bool + return ret + } + return *o.UseTemplateConfig +} + +// GetUseTemplateConfigOk returns a tuple with the UseTemplateConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ClientRepresentation) GetUseTemplateConfigOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateConfig) { + return nil, false + } + return o.UseTemplateConfig, true +} + +// HasUseTemplateConfig returns a boolean if a field has been set. +func (o *ClientRepresentation) HasUseTemplateConfig() bool { + if o != nil && !IsNil(o.UseTemplateConfig) { + return true + } + + return false +} + +// SetUseTemplateConfig gets a reference to the given bool and assigns it to the UseTemplateConfig field. +// Deprecated +func (o *ClientRepresentation) SetUseTemplateConfig(v bool) { + o.UseTemplateConfig = &v +} + +// GetUseTemplateScope returns the UseTemplateScope field value if set, zero value otherwise. +// Deprecated +func (o *ClientRepresentation) GetUseTemplateScope() bool { + if o == nil || IsNil(o.UseTemplateScope) { + var ret bool + return ret + } + return *o.UseTemplateScope +} + +// GetUseTemplateScopeOk returns a tuple with the UseTemplateScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ClientRepresentation) GetUseTemplateScopeOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateScope) { + return nil, false + } + return o.UseTemplateScope, true +} + +// HasUseTemplateScope returns a boolean if a field has been set. +func (o *ClientRepresentation) HasUseTemplateScope() bool { + if o != nil && !IsNil(o.UseTemplateScope) { + return true + } + + return false +} + +// SetUseTemplateScope gets a reference to the given bool and assigns it to the UseTemplateScope field. +// Deprecated +func (o *ClientRepresentation) SetUseTemplateScope(v bool) { + o.UseTemplateScope = &v +} + +// GetUseTemplateMappers returns the UseTemplateMappers field value if set, zero value otherwise. +// Deprecated +func (o *ClientRepresentation) GetUseTemplateMappers() bool { + if o == nil || IsNil(o.UseTemplateMappers) { + var ret bool + return ret + } + return *o.UseTemplateMappers +} + +// GetUseTemplateMappersOk returns a tuple with the UseTemplateMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ClientRepresentation) GetUseTemplateMappersOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateMappers) { + return nil, false + } + return o.UseTemplateMappers, true +} + +// HasUseTemplateMappers returns a boolean if a field has been set. +func (o *ClientRepresentation) HasUseTemplateMappers() bool { + if o != nil && !IsNil(o.UseTemplateMappers) { + return true + } + + return false +} + +// SetUseTemplateMappers gets a reference to the given bool and assigns it to the UseTemplateMappers field. +// Deprecated +func (o *ClientRepresentation) SetUseTemplateMappers(v bool) { + o.UseTemplateMappers = &v +} + +// GetDefaultClientScopes returns the DefaultClientScopes field value if set, zero value otherwise. +func (o *ClientRepresentation) GetDefaultClientScopes() []string { + if o == nil || IsNil(o.DefaultClientScopes) { + var ret []string + return ret + } + return o.DefaultClientScopes +} + +// GetDefaultClientScopesOk returns a tuple with the DefaultClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetDefaultClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultClientScopes) { + return nil, false + } + return o.DefaultClientScopes, true +} + +// HasDefaultClientScopes returns a boolean if a field has been set. +func (o *ClientRepresentation) HasDefaultClientScopes() bool { + if o != nil && !IsNil(o.DefaultClientScopes) { + return true + } + + return false +} + +// SetDefaultClientScopes gets a reference to the given []string and assigns it to the DefaultClientScopes field. +func (o *ClientRepresentation) SetDefaultClientScopes(v []string) { + o.DefaultClientScopes = v +} + +// GetOptionalClientScopes returns the OptionalClientScopes field value if set, zero value otherwise. +func (o *ClientRepresentation) GetOptionalClientScopes() []string { + if o == nil || IsNil(o.OptionalClientScopes) { + var ret []string + return ret + } + return o.OptionalClientScopes +} + +// GetOptionalClientScopesOk returns a tuple with the OptionalClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetOptionalClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.OptionalClientScopes) { + return nil, false + } + return o.OptionalClientScopes, true +} + +// HasOptionalClientScopes returns a boolean if a field has been set. +func (o *ClientRepresentation) HasOptionalClientScopes() bool { + if o != nil && !IsNil(o.OptionalClientScopes) { + return true + } + + return false +} + +// SetOptionalClientScopes gets a reference to the given []string and assigns it to the OptionalClientScopes field. +func (o *ClientRepresentation) SetOptionalClientScopes(v []string) { + o.OptionalClientScopes = v +} + +// GetAuthorizationSettings returns the AuthorizationSettings field value if set, zero value otherwise. +func (o *ClientRepresentation) GetAuthorizationSettings() ResourceServerRepresentation { + if o == nil || IsNil(o.AuthorizationSettings) { + var ret ResourceServerRepresentation + return ret + } + return *o.AuthorizationSettings +} + +// GetAuthorizationSettingsOk returns a tuple with the AuthorizationSettings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetAuthorizationSettingsOk() (*ResourceServerRepresentation, bool) { + if o == nil || IsNil(o.AuthorizationSettings) { + return nil, false + } + return o.AuthorizationSettings, true +} + +// HasAuthorizationSettings returns a boolean if a field has been set. +func (o *ClientRepresentation) HasAuthorizationSettings() bool { + if o != nil && !IsNil(o.AuthorizationSettings) { + return true + } + + return false +} + +// SetAuthorizationSettings gets a reference to the given ResourceServerRepresentation and assigns it to the AuthorizationSettings field. +func (o *ClientRepresentation) SetAuthorizationSettings(v ResourceServerRepresentation) { + o.AuthorizationSettings = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *ClientRepresentation) GetAccess() map[string]bool { + if o == nil || IsNil(o.Access) { + var ret map[string]bool + 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 *ClientRepresentation) GetAccessOk() (*map[string]bool, 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 *ClientRepresentation) HasAccess() bool { + if o != nil && !IsNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given map[string]bool and assigns it to the Access field. +func (o *ClientRepresentation) SetAccess(v map[string]bool) { + o.Access = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *ClientRepresentation) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientRepresentation) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *ClientRepresentation) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *ClientRepresentation) SetOrigin(v string) { + o.Origin = &v +} + +func (o ClientRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.RootUrl) { + toSerialize["rootUrl"] = o.RootUrl + } + if !IsNil(o.AdminUrl) { + toSerialize["adminUrl"] = o.AdminUrl + } + if !IsNil(o.BaseUrl) { + toSerialize["baseUrl"] = o.BaseUrl + } + if !IsNil(o.SurrogateAuthRequired) { + toSerialize["surrogateAuthRequired"] = o.SurrogateAuthRequired + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.AlwaysDisplayInConsole) { + toSerialize["alwaysDisplayInConsole"] = o.AlwaysDisplayInConsole + } + if !IsNil(o.ClientAuthenticatorType) { + toSerialize["clientAuthenticatorType"] = o.ClientAuthenticatorType + } + if !IsNil(o.Secret) { + toSerialize["secret"] = o.Secret + } + if !IsNil(o.RegistrationAccessToken) { + toSerialize["registrationAccessToken"] = o.RegistrationAccessToken + } + if !IsNil(o.DefaultRoles) { + toSerialize["defaultRoles"] = o.DefaultRoles + } + if !IsNil(o.RedirectUris) { + toSerialize["redirectUris"] = o.RedirectUris + } + if !IsNil(o.WebOrigins) { + toSerialize["webOrigins"] = o.WebOrigins + } + if !IsNil(o.NotBefore) { + toSerialize["notBefore"] = o.NotBefore + } + if !IsNil(o.BearerOnly) { + toSerialize["bearerOnly"] = o.BearerOnly + } + if !IsNil(o.ConsentRequired) { + toSerialize["consentRequired"] = o.ConsentRequired + } + if !IsNil(o.StandardFlowEnabled) { + toSerialize["standardFlowEnabled"] = o.StandardFlowEnabled + } + if !IsNil(o.ImplicitFlowEnabled) { + toSerialize["implicitFlowEnabled"] = o.ImplicitFlowEnabled + } + if !IsNil(o.DirectAccessGrantsEnabled) { + toSerialize["directAccessGrantsEnabled"] = o.DirectAccessGrantsEnabled + } + if !IsNil(o.ServiceAccountsEnabled) { + toSerialize["serviceAccountsEnabled"] = o.ServiceAccountsEnabled + } + if !IsNil(o.AuthorizationServicesEnabled) { + toSerialize["authorizationServicesEnabled"] = o.AuthorizationServicesEnabled + } + if !IsNil(o.DirectGrantsOnly) { + toSerialize["directGrantsOnly"] = o.DirectGrantsOnly + } + if !IsNil(o.PublicClient) { + toSerialize["publicClient"] = o.PublicClient + } + if !IsNil(o.FrontchannelLogout) { + toSerialize["frontchannelLogout"] = o.FrontchannelLogout + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.AuthenticationFlowBindingOverrides) { + toSerialize["authenticationFlowBindingOverrides"] = o.AuthenticationFlowBindingOverrides + } + if !IsNil(o.FullScopeAllowed) { + toSerialize["fullScopeAllowed"] = o.FullScopeAllowed + } + if !IsNil(o.NodeReRegistrationTimeout) { + toSerialize["nodeReRegistrationTimeout"] = o.NodeReRegistrationTimeout + } + if !IsNil(o.RegisteredNodes) { + toSerialize["registeredNodes"] = o.RegisteredNodes + } + if !IsNil(o.ProtocolMappers) { + toSerialize["protocolMappers"] = o.ProtocolMappers + } + if !IsNil(o.ClientTemplate) { + toSerialize["clientTemplate"] = o.ClientTemplate + } + if !IsNil(o.UseTemplateConfig) { + toSerialize["useTemplateConfig"] = o.UseTemplateConfig + } + if !IsNil(o.UseTemplateScope) { + toSerialize["useTemplateScope"] = o.UseTemplateScope + } + if !IsNil(o.UseTemplateMappers) { + toSerialize["useTemplateMappers"] = o.UseTemplateMappers + } + if !IsNil(o.DefaultClientScopes) { + toSerialize["defaultClientScopes"] = o.DefaultClientScopes + } + if !IsNil(o.OptionalClientScopes) { + toSerialize["optionalClientScopes"] = o.OptionalClientScopes + } + if !IsNil(o.AuthorizationSettings) { + toSerialize["authorizationSettings"] = o.AuthorizationSettings + } + if !IsNil(o.Access) { + toSerialize["access"] = o.Access + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + return toSerialize, nil +} + +type NullableClientRepresentation struct { + value *ClientRepresentation + isSet bool +} + +func (v NullableClientRepresentation) Get() *ClientRepresentation { + return v.value +} + +func (v *NullableClientRepresentation) Set(val *ClientRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientRepresentation(val *ClientRepresentation) *NullableClientRepresentation { + return &NullableClientRepresentation{value: val, isSet: true} +} + +func (v NullableClientRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_scope_representation.go b/model_client_scope_representation.go new file mode 100644 index 0000000..1c7b4aa --- /dev/null +++ b/model_client_scope_representation.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientScopeRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientScopeRepresentation{} + +// ClientScopeRepresentation struct for ClientScopeRepresentation +type ClientScopeRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Attributes *map[string]string `json:"attributes,omitempty"` + ProtocolMappers []ProtocolMapperRepresentation `json:"protocolMappers,omitempty"` +} + +// NewClientScopeRepresentation instantiates a new ClientScopeRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientScopeRepresentation() *ClientScopeRepresentation { + this := ClientScopeRepresentation{} + return &this +} + +// NewClientScopeRepresentationWithDefaults instantiates a new ClientScopeRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientScopeRepresentationWithDefaults() *ClientScopeRepresentation { + this := ClientScopeRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ClientScopeRepresentation) 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 *ClientScopeRepresentation) 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 *ClientScopeRepresentation) 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 *ClientScopeRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ClientScopeRepresentation) 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 *ClientScopeRepresentation) 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 *ClientScopeRepresentation) 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 *ClientScopeRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ClientScopeRepresentation) 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 *ClientScopeRepresentation) 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 *ClientScopeRepresentation) 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 *ClientScopeRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *ClientScopeRepresentation) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientScopeRepresentation) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *ClientScopeRepresentation) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *ClientScopeRepresentation) SetProtocol(v string) { + o.Protocol = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *ClientScopeRepresentation) GetAttributes() map[string]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientScopeRepresentation) GetAttributesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *ClientScopeRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. +func (o *ClientScopeRepresentation) SetAttributes(v map[string]string) { + o.Attributes = &v +} + +// GetProtocolMappers returns the ProtocolMappers field value if set, zero value otherwise. +func (o *ClientScopeRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation { + if o == nil || IsNil(o.ProtocolMappers) { + var ret []ProtocolMapperRepresentation + return ret + } + return o.ProtocolMappers +} + +// GetProtocolMappersOk returns a tuple with the ProtocolMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientScopeRepresentation) GetProtocolMappersOk() ([]ProtocolMapperRepresentation, bool) { + if o == nil || IsNil(o.ProtocolMappers) { + return nil, false + } + return o.ProtocolMappers, true +} + +// HasProtocolMappers returns a boolean if a field has been set. +func (o *ClientScopeRepresentation) HasProtocolMappers() bool { + if o != nil && !IsNil(o.ProtocolMappers) { + return true + } + + return false +} + +// SetProtocolMappers gets a reference to the given []ProtocolMapperRepresentation and assigns it to the ProtocolMappers field. +func (o *ClientScopeRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation) { + o.ProtocolMappers = v +} + +func (o ClientScopeRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientScopeRepresentation) 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.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.ProtocolMappers) { + toSerialize["protocolMappers"] = o.ProtocolMappers + } + return toSerialize, nil +} + +type NullableClientScopeRepresentation struct { + value *ClientScopeRepresentation + isSet bool +} + +func (v NullableClientScopeRepresentation) Get() *ClientScopeRepresentation { + return v.value +} + +func (v *NullableClientScopeRepresentation) Set(val *ClientScopeRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientScopeRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientScopeRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientScopeRepresentation(val *ClientScopeRepresentation) *NullableClientScopeRepresentation { + return &NullableClientScopeRepresentation{value: val, isSet: true} +} + +func (v NullableClientScopeRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientScopeRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_template_representation.go b/model_client_template_representation.go new file mode 100644 index 0000000..5139f95 --- /dev/null +++ b/model_client_template_representation.go @@ -0,0 +1,628 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientTemplateRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientTemplateRepresentation{} + +// ClientTemplateRepresentation struct for ClientTemplateRepresentation +type ClientTemplateRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Protocol *string `json:"protocol,omitempty"` + FullScopeAllowed *bool `json:"fullScopeAllowed,omitempty"` + BearerOnly *bool `json:"bearerOnly,omitempty"` + ConsentRequired *bool `json:"consentRequired,omitempty"` + StandardFlowEnabled *bool `json:"standardFlowEnabled,omitempty"` + ImplicitFlowEnabled *bool `json:"implicitFlowEnabled,omitempty"` + DirectAccessGrantsEnabled *bool `json:"directAccessGrantsEnabled,omitempty"` + ServiceAccountsEnabled *bool `json:"serviceAccountsEnabled,omitempty"` + PublicClient *bool `json:"publicClient,omitempty"` + FrontchannelLogout *bool `json:"frontchannelLogout,omitempty"` + Attributes *map[string]string `json:"attributes,omitempty"` + ProtocolMappers []ProtocolMapperRepresentation `json:"protocolMappers,omitempty"` +} + +// NewClientTemplateRepresentation instantiates a new ClientTemplateRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientTemplateRepresentation() *ClientTemplateRepresentation { + this := ClientTemplateRepresentation{} + return &this +} + +// NewClientTemplateRepresentationWithDefaults instantiates a new ClientTemplateRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientTemplateRepresentationWithDefaults() *ClientTemplateRepresentation { + this := ClientTemplateRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) 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 *ClientTemplateRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *ClientTemplateRepresentation) SetProtocol(v string) { + o.Protocol = &v +} + +// GetFullScopeAllowed returns the FullScopeAllowed field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetFullScopeAllowed() bool { + if o == nil || IsNil(o.FullScopeAllowed) { + var ret bool + return ret + } + return *o.FullScopeAllowed +} + +// GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetFullScopeAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.FullScopeAllowed) { + return nil, false + } + return o.FullScopeAllowed, true +} + +// HasFullScopeAllowed returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasFullScopeAllowed() bool { + if o != nil && !IsNil(o.FullScopeAllowed) { + return true + } + + return false +} + +// SetFullScopeAllowed gets a reference to the given bool and assigns it to the FullScopeAllowed field. +func (o *ClientTemplateRepresentation) SetFullScopeAllowed(v bool) { + o.FullScopeAllowed = &v +} + +// GetBearerOnly returns the BearerOnly field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetBearerOnly() bool { + if o == nil || IsNil(o.BearerOnly) { + var ret bool + return ret + } + return *o.BearerOnly +} + +// GetBearerOnlyOk returns a tuple with the BearerOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetBearerOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.BearerOnly) { + return nil, false + } + return o.BearerOnly, true +} + +// HasBearerOnly returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasBearerOnly() bool { + if o != nil && !IsNil(o.BearerOnly) { + return true + } + + return false +} + +// SetBearerOnly gets a reference to the given bool and assigns it to the BearerOnly field. +func (o *ClientTemplateRepresentation) SetBearerOnly(v bool) { + o.BearerOnly = &v +} + +// GetConsentRequired returns the ConsentRequired field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetConsentRequired() bool { + if o == nil || IsNil(o.ConsentRequired) { + var ret bool + return ret + } + return *o.ConsentRequired +} + +// GetConsentRequiredOk returns a tuple with the ConsentRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetConsentRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.ConsentRequired) { + return nil, false + } + return o.ConsentRequired, true +} + +// HasConsentRequired returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasConsentRequired() bool { + if o != nil && !IsNil(o.ConsentRequired) { + return true + } + + return false +} + +// SetConsentRequired gets a reference to the given bool and assigns it to the ConsentRequired field. +func (o *ClientTemplateRepresentation) SetConsentRequired(v bool) { + o.ConsentRequired = &v +} + +// GetStandardFlowEnabled returns the StandardFlowEnabled field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetStandardFlowEnabled() bool { + if o == nil || IsNil(o.StandardFlowEnabled) { + var ret bool + return ret + } + return *o.StandardFlowEnabled +} + +// GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetStandardFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.StandardFlowEnabled) { + return nil, false + } + return o.StandardFlowEnabled, true +} + +// HasStandardFlowEnabled returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasStandardFlowEnabled() bool { + if o != nil && !IsNil(o.StandardFlowEnabled) { + return true + } + + return false +} + +// SetStandardFlowEnabled gets a reference to the given bool and assigns it to the StandardFlowEnabled field. +func (o *ClientTemplateRepresentation) SetStandardFlowEnabled(v bool) { + o.StandardFlowEnabled = &v +} + +// GetImplicitFlowEnabled returns the ImplicitFlowEnabled field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetImplicitFlowEnabled() bool { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + var ret bool + return ret + } + return *o.ImplicitFlowEnabled +} + +// GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetImplicitFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + return nil, false + } + return o.ImplicitFlowEnabled, true +} + +// HasImplicitFlowEnabled returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasImplicitFlowEnabled() bool { + if o != nil && !IsNil(o.ImplicitFlowEnabled) { + return true + } + + return false +} + +// SetImplicitFlowEnabled gets a reference to the given bool and assigns it to the ImplicitFlowEnabled field. +func (o *ClientTemplateRepresentation) SetImplicitFlowEnabled(v bool) { + o.ImplicitFlowEnabled = &v +} + +// GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetDirectAccessGrantsEnabled() bool { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + var ret bool + return ret + } + return *o.DirectAccessGrantsEnabled +} + +// GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + return nil, false + } + return o.DirectAccessGrantsEnabled, true +} + +// HasDirectAccessGrantsEnabled returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasDirectAccessGrantsEnabled() bool { + if o != nil && !IsNil(o.DirectAccessGrantsEnabled) { + return true + } + + return false +} + +// SetDirectAccessGrantsEnabled gets a reference to the given bool and assigns it to the DirectAccessGrantsEnabled field. +func (o *ClientTemplateRepresentation) SetDirectAccessGrantsEnabled(v bool) { + o.DirectAccessGrantsEnabled = &v +} + +// GetServiceAccountsEnabled returns the ServiceAccountsEnabled field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetServiceAccountsEnabled() bool { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + var ret bool + return ret + } + return *o.ServiceAccountsEnabled +} + +// GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetServiceAccountsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + return nil, false + } + return o.ServiceAccountsEnabled, true +} + +// HasServiceAccountsEnabled returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasServiceAccountsEnabled() bool { + if o != nil && !IsNil(o.ServiceAccountsEnabled) { + return true + } + + return false +} + +// SetServiceAccountsEnabled gets a reference to the given bool and assigns it to the ServiceAccountsEnabled field. +func (o *ClientTemplateRepresentation) SetServiceAccountsEnabled(v bool) { + o.ServiceAccountsEnabled = &v +} + +// GetPublicClient returns the PublicClient field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetPublicClient() bool { + if o == nil || IsNil(o.PublicClient) { + var ret bool + return ret + } + return *o.PublicClient +} + +// GetPublicClientOk returns a tuple with the PublicClient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetPublicClientOk() (*bool, bool) { + if o == nil || IsNil(o.PublicClient) { + return nil, false + } + return o.PublicClient, true +} + +// HasPublicClient returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasPublicClient() bool { + if o != nil && !IsNil(o.PublicClient) { + return true + } + + return false +} + +// SetPublicClient gets a reference to the given bool and assigns it to the PublicClient field. +func (o *ClientTemplateRepresentation) SetPublicClient(v bool) { + o.PublicClient = &v +} + +// GetFrontchannelLogout returns the FrontchannelLogout field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetFrontchannelLogout() bool { + if o == nil || IsNil(o.FrontchannelLogout) { + var ret bool + return ret + } + return *o.FrontchannelLogout +} + +// GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetFrontchannelLogoutOk() (*bool, bool) { + if o == nil || IsNil(o.FrontchannelLogout) { + return nil, false + } + return o.FrontchannelLogout, true +} + +// HasFrontchannelLogout returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasFrontchannelLogout() bool { + if o != nil && !IsNil(o.FrontchannelLogout) { + return true + } + + return false +} + +// SetFrontchannelLogout gets a reference to the given bool and assigns it to the FrontchannelLogout field. +func (o *ClientTemplateRepresentation) SetFrontchannelLogout(v bool) { + o.FrontchannelLogout = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetAttributes() map[string]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetAttributesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. +func (o *ClientTemplateRepresentation) SetAttributes(v map[string]string) { + o.Attributes = &v +} + +// GetProtocolMappers returns the ProtocolMappers field value if set, zero value otherwise. +func (o *ClientTemplateRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation { + if o == nil || IsNil(o.ProtocolMappers) { + var ret []ProtocolMapperRepresentation + return ret + } + return o.ProtocolMappers +} + +// GetProtocolMappersOk returns a tuple with the ProtocolMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTemplateRepresentation) GetProtocolMappersOk() ([]ProtocolMapperRepresentation, bool) { + if o == nil || IsNil(o.ProtocolMappers) { + return nil, false + } + return o.ProtocolMappers, true +} + +// HasProtocolMappers returns a boolean if a field has been set. +func (o *ClientTemplateRepresentation) HasProtocolMappers() bool { + if o != nil && !IsNil(o.ProtocolMappers) { + return true + } + + return false +} + +// SetProtocolMappers gets a reference to the given []ProtocolMapperRepresentation and assigns it to the ProtocolMappers field. +func (o *ClientTemplateRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation) { + o.ProtocolMappers = v +} + +func (o ClientTemplateRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientTemplateRepresentation) 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.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.FullScopeAllowed) { + toSerialize["fullScopeAllowed"] = o.FullScopeAllowed + } + if !IsNil(o.BearerOnly) { + toSerialize["bearerOnly"] = o.BearerOnly + } + if !IsNil(o.ConsentRequired) { + toSerialize["consentRequired"] = o.ConsentRequired + } + if !IsNil(o.StandardFlowEnabled) { + toSerialize["standardFlowEnabled"] = o.StandardFlowEnabled + } + if !IsNil(o.ImplicitFlowEnabled) { + toSerialize["implicitFlowEnabled"] = o.ImplicitFlowEnabled + } + if !IsNil(o.DirectAccessGrantsEnabled) { + toSerialize["directAccessGrantsEnabled"] = o.DirectAccessGrantsEnabled + } + if !IsNil(o.ServiceAccountsEnabled) { + toSerialize["serviceAccountsEnabled"] = o.ServiceAccountsEnabled + } + if !IsNil(o.PublicClient) { + toSerialize["publicClient"] = o.PublicClient + } + if !IsNil(o.FrontchannelLogout) { + toSerialize["frontchannelLogout"] = o.FrontchannelLogout + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.ProtocolMappers) { + toSerialize["protocolMappers"] = o.ProtocolMappers + } + return toSerialize, nil +} + +type NullableClientTemplateRepresentation struct { + value *ClientTemplateRepresentation + isSet bool +} + +func (v NullableClientTemplateRepresentation) Get() *ClientTemplateRepresentation { + return v.value +} + +func (v *NullableClientTemplateRepresentation) Set(val *ClientTemplateRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientTemplateRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientTemplateRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientTemplateRepresentation(val *ClientTemplateRepresentation) *NullableClientTemplateRepresentation { + return &NullableClientTemplateRepresentation{value: val, isSet: true} +} + +func (v NullableClientTemplateRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientTemplateRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_type_representation.go b/model_client_type_representation.go new file mode 100644 index 0000000..0051cb0 --- /dev/null +++ b/model_client_type_representation.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientTypeRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientTypeRepresentation{} + +// ClientTypeRepresentation struct for ClientTypeRepresentation +type ClientTypeRepresentation struct { + Name *string `json:"name,omitempty"` + Provider *string `json:"provider,omitempty"` + Parent *string `json:"parent,omitempty"` + Config *map[string]PropertyConfig `json:"config,omitempty"` +} + +// NewClientTypeRepresentation instantiates a new ClientTypeRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientTypeRepresentation() *ClientTypeRepresentation { + this := ClientTypeRepresentation{} + return &this +} + +// NewClientTypeRepresentationWithDefaults instantiates a new ClientTypeRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientTypeRepresentationWithDefaults() *ClientTypeRepresentation { + this := ClientTypeRepresentation{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ClientTypeRepresentation) 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 *ClientTypeRepresentation) 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 *ClientTypeRepresentation) 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 *ClientTypeRepresentation) SetName(v string) { + o.Name = &v +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *ClientTypeRepresentation) GetProvider() string { + if o == nil || IsNil(o.Provider) { + var ret string + 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 *ClientTypeRepresentation) GetProviderOk() (*string, 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 *ClientTypeRepresentation) HasProvider() bool { + if o != nil && !IsNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given string and assigns it to the Provider field. +func (o *ClientTypeRepresentation) SetProvider(v string) { + o.Provider = &v +} + +// GetParent returns the Parent field value if set, zero value otherwise. +func (o *ClientTypeRepresentation) GetParent() string { + if o == nil || IsNil(o.Parent) { + var ret string + return ret + } + return *o.Parent +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTypeRepresentation) GetParentOk() (*string, bool) { + if o == nil || IsNil(o.Parent) { + return nil, false + } + return o.Parent, true +} + +// HasParent returns a boolean if a field has been set. +func (o *ClientTypeRepresentation) HasParent() bool { + if o != nil && !IsNil(o.Parent) { + return true + } + + return false +} + +// SetParent gets a reference to the given string and assigns it to the Parent field. +func (o *ClientTypeRepresentation) SetParent(v string) { + o.Parent = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *ClientTypeRepresentation) GetConfig() map[string]PropertyConfig { + if o == nil || IsNil(o.Config) { + var ret map[string]PropertyConfig + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTypeRepresentation) GetConfigOk() (*map[string]PropertyConfig, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *ClientTypeRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]PropertyConfig and assigns it to the Config field. +func (o *ClientTypeRepresentation) SetConfig(v map[string]PropertyConfig) { + o.Config = &v +} + +func (o ClientTypeRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientTypeRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Provider) { + toSerialize["provider"] = o.Provider + } + if !IsNil(o.Parent) { + toSerialize["parent"] = o.Parent + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableClientTypeRepresentation struct { + value *ClientTypeRepresentation + isSet bool +} + +func (v NullableClientTypeRepresentation) Get() *ClientTypeRepresentation { + return v.value +} + +func (v *NullableClientTypeRepresentation) Set(val *ClientTypeRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientTypeRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientTypeRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientTypeRepresentation(val *ClientTypeRepresentation) *NullableClientTypeRepresentation { + return &NullableClientTypeRepresentation{value: val, isSet: true} +} + +func (v NullableClientTypeRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientTypeRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_client_types_representation.go b/model_client_types_representation.go new file mode 100644 index 0000000..7d163df --- /dev/null +++ b/model_client_types_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ClientTypesRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientTypesRepresentation{} + +// ClientTypesRepresentation struct for ClientTypesRepresentation +type ClientTypesRepresentation struct { + ClientTypes []ClientTypeRepresentation `json:"client-types,omitempty"` + GlobalClientTypes []ClientTypeRepresentation `json:"global-client-types,omitempty"` +} + +// NewClientTypesRepresentation instantiates a new ClientTypesRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientTypesRepresentation() *ClientTypesRepresentation { + this := ClientTypesRepresentation{} + return &this +} + +// NewClientTypesRepresentationWithDefaults instantiates a new ClientTypesRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientTypesRepresentationWithDefaults() *ClientTypesRepresentation { + this := ClientTypesRepresentation{} + return &this +} + +// GetClientTypes returns the ClientTypes field value if set, zero value otherwise. +func (o *ClientTypesRepresentation) GetClientTypes() []ClientTypeRepresentation { + if o == nil || IsNil(o.ClientTypes) { + var ret []ClientTypeRepresentation + return ret + } + return o.ClientTypes +} + +// GetClientTypesOk returns a tuple with the ClientTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTypesRepresentation) GetClientTypesOk() ([]ClientTypeRepresentation, bool) { + if o == nil || IsNil(o.ClientTypes) { + return nil, false + } + return o.ClientTypes, true +} + +// HasClientTypes returns a boolean if a field has been set. +func (o *ClientTypesRepresentation) HasClientTypes() bool { + if o != nil && !IsNil(o.ClientTypes) { + return true + } + + return false +} + +// SetClientTypes gets a reference to the given []ClientTypeRepresentation and assigns it to the ClientTypes field. +func (o *ClientTypesRepresentation) SetClientTypes(v []ClientTypeRepresentation) { + o.ClientTypes = v +} + +// GetGlobalClientTypes returns the GlobalClientTypes field value if set, zero value otherwise. +func (o *ClientTypesRepresentation) GetGlobalClientTypes() []ClientTypeRepresentation { + if o == nil || IsNil(o.GlobalClientTypes) { + var ret []ClientTypeRepresentation + return ret + } + return o.GlobalClientTypes +} + +// GetGlobalClientTypesOk returns a tuple with the GlobalClientTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientTypesRepresentation) GetGlobalClientTypesOk() ([]ClientTypeRepresentation, bool) { + if o == nil || IsNil(o.GlobalClientTypes) { + return nil, false + } + return o.GlobalClientTypes, true +} + +// HasGlobalClientTypes returns a boolean if a field has been set. +func (o *ClientTypesRepresentation) HasGlobalClientTypes() bool { + if o != nil && !IsNil(o.GlobalClientTypes) { + return true + } + + return false +} + +// SetGlobalClientTypes gets a reference to the given []ClientTypeRepresentation and assigns it to the GlobalClientTypes field. +func (o *ClientTypesRepresentation) SetGlobalClientTypes(v []ClientTypeRepresentation) { + o.GlobalClientTypes = v +} + +func (o ClientTypesRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientTypesRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClientTypes) { + toSerialize["client-types"] = o.ClientTypes + } + if !IsNil(o.GlobalClientTypes) { + toSerialize["global-client-types"] = o.GlobalClientTypes + } + return toSerialize, nil +} + +type NullableClientTypesRepresentation struct { + value *ClientTypesRepresentation + isSet bool +} + +func (v NullableClientTypesRepresentation) Get() *ClientTypesRepresentation { + return v.value +} + +func (v *NullableClientTypesRepresentation) Set(val *ClientTypesRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableClientTypesRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableClientTypesRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientTypesRepresentation(val *ClientTypesRepresentation) *NullableClientTypesRepresentation { + return &NullableClientTypesRepresentation{value: val, isSet: true} +} + +func (v NullableClientTypesRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientTypesRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_component_export_representation.go b/model_component_export_representation.go new file mode 100644 index 0000000..9697ef7 --- /dev/null +++ b/model_component_export_representation.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ComponentExportRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ComponentExportRepresentation{} + +// ComponentExportRepresentation struct for ComponentExportRepresentation +type ComponentExportRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + ProviderId *string `json:"providerId,omitempty"` + SubType *string `json:"subType,omitempty"` + SubComponents *map[string][]ComponentExportRepresentation `json:"subComponents,omitempty"` + Config *map[string][]string `json:"config,omitempty"` +} + +// NewComponentExportRepresentation instantiates a new ComponentExportRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentExportRepresentation() *ComponentExportRepresentation { + this := ComponentExportRepresentation{} + return &this +} + +// NewComponentExportRepresentationWithDefaults instantiates a new ComponentExportRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComponentExportRepresentationWithDefaults() *ComponentExportRepresentation { + this := ComponentExportRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComponentExportRepresentation) 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 *ComponentExportRepresentation) 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 *ComponentExportRepresentation) 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 *ComponentExportRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComponentExportRepresentation) 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 *ComponentExportRepresentation) 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 *ComponentExportRepresentation) 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 *ComponentExportRepresentation) SetName(v string) { + o.Name = &v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *ComponentExportRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentExportRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *ComponentExportRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *ComponentExportRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetSubType returns the SubType field value if set, zero value otherwise. +func (o *ComponentExportRepresentation) GetSubType() string { + if o == nil || IsNil(o.SubType) { + var ret string + return ret + } + return *o.SubType +} + +// GetSubTypeOk returns a tuple with the SubType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentExportRepresentation) GetSubTypeOk() (*string, bool) { + if o == nil || IsNil(o.SubType) { + return nil, false + } + return o.SubType, true +} + +// HasSubType returns a boolean if a field has been set. +func (o *ComponentExportRepresentation) HasSubType() bool { + if o != nil && !IsNil(o.SubType) { + return true + } + + return false +} + +// SetSubType gets a reference to the given string and assigns it to the SubType field. +func (o *ComponentExportRepresentation) SetSubType(v string) { + o.SubType = &v +} + +// GetSubComponents returns the SubComponents field value if set, zero value otherwise. +func (o *ComponentExportRepresentation) GetSubComponents() map[string][]ComponentExportRepresentation { + if o == nil || IsNil(o.SubComponents) { + var ret map[string][]ComponentExportRepresentation + return ret + } + return *o.SubComponents +} + +// GetSubComponentsOk returns a tuple with the SubComponents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentExportRepresentation) GetSubComponentsOk() (*map[string][]ComponentExportRepresentation, bool) { + if o == nil || IsNil(o.SubComponents) { + return nil, false + } + return o.SubComponents, true +} + +// HasSubComponents returns a boolean if a field has been set. +func (o *ComponentExportRepresentation) HasSubComponents() bool { + if o != nil && !IsNil(o.SubComponents) { + return true + } + + return false +} + +// SetSubComponents gets a reference to the given map[string][]ComponentExportRepresentation and assigns it to the SubComponents field. +func (o *ComponentExportRepresentation) SetSubComponents(v map[string][]ComponentExportRepresentation) { + o.SubComponents = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *ComponentExportRepresentation) GetConfig() map[string][]string { + if o == nil || IsNil(o.Config) { + var ret map[string][]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentExportRepresentation) GetConfigOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *ComponentExportRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string][]string and assigns it to the Config field. +func (o *ComponentExportRepresentation) SetConfig(v map[string][]string) { + o.Config = &v +} + +func (o ComponentExportRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ComponentExportRepresentation) 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.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.SubType) { + toSerialize["subType"] = o.SubType + } + if !IsNil(o.SubComponents) { + toSerialize["subComponents"] = o.SubComponents + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableComponentExportRepresentation struct { + value *ComponentExportRepresentation + isSet bool +} + +func (v NullableComponentExportRepresentation) Get() *ComponentExportRepresentation { + return v.value +} + +func (v *NullableComponentExportRepresentation) Set(val *ComponentExportRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableComponentExportRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentExportRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentExportRepresentation(val *ComponentExportRepresentation) *NullableComponentExportRepresentation { + return &NullableComponentExportRepresentation{value: val, isSet: true} +} + +func (v NullableComponentExportRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentExportRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_component_representation.go b/model_component_representation.go new file mode 100644 index 0000000..1a7ecdc --- /dev/null +++ b/model_component_representation.go @@ -0,0 +1,340 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ComponentRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ComponentRepresentation{} + +// ComponentRepresentation struct for ComponentRepresentation +type ComponentRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + ProviderId *string `json:"providerId,omitempty"` + ProviderType *string `json:"providerType,omitempty"` + ParentId *string `json:"parentId,omitempty"` + SubType *string `json:"subType,omitempty"` + Config *map[string][]string `json:"config,omitempty"` +} + +// NewComponentRepresentation instantiates a new ComponentRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentRepresentation() *ComponentRepresentation { + this := ComponentRepresentation{} + return &this +} + +// NewComponentRepresentationWithDefaults instantiates a new ComponentRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComponentRepresentationWithDefaults() *ComponentRepresentation { + this := ComponentRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComponentRepresentation) 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 *ComponentRepresentation) 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 *ComponentRepresentation) 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 *ComponentRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComponentRepresentation) 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 *ComponentRepresentation) 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 *ComponentRepresentation) 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 *ComponentRepresentation) SetName(v string) { + o.Name = &v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *ComponentRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *ComponentRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *ComponentRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetProviderType returns the ProviderType field value if set, zero value otherwise. +func (o *ComponentRepresentation) GetProviderType() string { + if o == nil || IsNil(o.ProviderType) { + var ret string + return ret + } + return *o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentRepresentation) GetProviderTypeOk() (*string, bool) { + if o == nil || IsNil(o.ProviderType) { + return nil, false + } + return o.ProviderType, true +} + +// HasProviderType returns a boolean if a field has been set. +func (o *ComponentRepresentation) HasProviderType() bool { + if o != nil && !IsNil(o.ProviderType) { + return true + } + + return false +} + +// SetProviderType gets a reference to the given string and assigns it to the ProviderType field. +func (o *ComponentRepresentation) SetProviderType(v string) { + o.ProviderType = &v +} + +// GetParentId returns the ParentId field value if set, zero value otherwise. +func (o *ComponentRepresentation) GetParentId() string { + if o == nil || IsNil(o.ParentId) { + var ret string + return ret + } + return *o.ParentId +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentRepresentation) GetParentIdOk() (*string, bool) { + if o == nil || IsNil(o.ParentId) { + return nil, false + } + return o.ParentId, true +} + +// HasParentId returns a boolean if a field has been set. +func (o *ComponentRepresentation) HasParentId() bool { + if o != nil && !IsNil(o.ParentId) { + return true + } + + return false +} + +// SetParentId gets a reference to the given string and assigns it to the ParentId field. +func (o *ComponentRepresentation) SetParentId(v string) { + o.ParentId = &v +} + +// GetSubType returns the SubType field value if set, zero value otherwise. +func (o *ComponentRepresentation) GetSubType() string { + if o == nil || IsNil(o.SubType) { + var ret string + return ret + } + return *o.SubType +} + +// GetSubTypeOk returns a tuple with the SubType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentRepresentation) GetSubTypeOk() (*string, bool) { + if o == nil || IsNil(o.SubType) { + return nil, false + } + return o.SubType, true +} + +// HasSubType returns a boolean if a field has been set. +func (o *ComponentRepresentation) HasSubType() bool { + if o != nil && !IsNil(o.SubType) { + return true + } + + return false +} + +// SetSubType gets a reference to the given string and assigns it to the SubType field. +func (o *ComponentRepresentation) SetSubType(v string) { + o.SubType = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *ComponentRepresentation) GetConfig() map[string][]string { + if o == nil || IsNil(o.Config) { + var ret map[string][]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentRepresentation) GetConfigOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *ComponentRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string][]string and assigns it to the Config field. +func (o *ComponentRepresentation) SetConfig(v map[string][]string) { + o.Config = &v +} + +func (o ComponentRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ComponentRepresentation) 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.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.ProviderType) { + toSerialize["providerType"] = o.ProviderType + } + if !IsNil(o.ParentId) { + toSerialize["parentId"] = o.ParentId + } + if !IsNil(o.SubType) { + toSerialize["subType"] = o.SubType + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableComponentRepresentation struct { + value *ComponentRepresentation + isSet bool +} + +func (v NullableComponentRepresentation) Get() *ComponentRepresentation { + return v.value +} + +func (v *NullableComponentRepresentation) Set(val *ComponentRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableComponentRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentRepresentation(val *ComponentRepresentation) *NullableComponentRepresentation { + return &NullableComponentRepresentation{value: val, isSet: true} +} + +func (v NullableComponentRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_component_type_representation.go b/model_component_type_representation.go new file mode 100644 index 0000000..42f2b7a --- /dev/null +++ b/model_component_type_representation.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ComponentTypeRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ComponentTypeRepresentation{} + +// ComponentTypeRepresentation struct for ComponentTypeRepresentation +type ComponentTypeRepresentation struct { + Id *string `json:"id,omitempty"` + HelpText *string `json:"helpText,omitempty"` + Properties []ConfigPropertyRepresentation `json:"properties,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` +} + +// NewComponentTypeRepresentation instantiates a new ComponentTypeRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentTypeRepresentation() *ComponentTypeRepresentation { + this := ComponentTypeRepresentation{} + return &this +} + +// NewComponentTypeRepresentationWithDefaults instantiates a new ComponentTypeRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComponentTypeRepresentationWithDefaults() *ComponentTypeRepresentation { + this := ComponentTypeRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) SetId(v string) { + o.Id = &v +} + +// GetHelpText returns the HelpText field value if set, zero value otherwise. +func (o *ComponentTypeRepresentation) GetHelpText() string { + if o == nil || IsNil(o.HelpText) { + var ret string + return ret + } + return *o.HelpText +} + +// GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentTypeRepresentation) GetHelpTextOk() (*string, bool) { + if o == nil || IsNil(o.HelpText) { + return nil, false + } + return o.HelpText, true +} + +// HasHelpText returns a boolean if a field has been set. +func (o *ComponentTypeRepresentation) HasHelpText() bool { + if o != nil && !IsNil(o.HelpText) { + return true + } + + return false +} + +// SetHelpText gets a reference to the given string and assigns it to the HelpText field. +func (o *ComponentTypeRepresentation) SetHelpText(v string) { + o.HelpText = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ComponentTypeRepresentation) GetProperties() []ConfigPropertyRepresentation { + if o == nil || IsNil(o.Properties) { + var ret []ConfigPropertyRepresentation + 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 *ComponentTypeRepresentation) GetPropertiesOk() ([]ConfigPropertyRepresentation, 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 *ComponentTypeRepresentation) HasProperties() bool { + if o != nil && !IsNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []ConfigPropertyRepresentation and assigns it to the Properties field. +func (o *ComponentTypeRepresentation) SetProperties(v []ConfigPropertyRepresentation) { + o.Properties = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) 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 *ComponentTypeRepresentation) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +func (o ComponentTypeRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ComponentTypeRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.HelpText) { + toSerialize["helpText"] = o.HelpText + } + if !IsNil(o.Properties) { + toSerialize["properties"] = o.Properties + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableComponentTypeRepresentation struct { + value *ComponentTypeRepresentation + isSet bool +} + +func (v NullableComponentTypeRepresentation) Get() *ComponentTypeRepresentation { + return v.value +} + +func (v *NullableComponentTypeRepresentation) Set(val *ComponentTypeRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableComponentTypeRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentTypeRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentTypeRepresentation(val *ComponentTypeRepresentation) *NullableComponentTypeRepresentation { + return &NullableComponentTypeRepresentation{value: val, isSet: true} +} + +func (v NullableComponentTypeRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentTypeRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_composites.go b/model_composites.go new file mode 100644 index 0000000..9220cff --- /dev/null +++ b/model_composites.go @@ -0,0 +1,200 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the Composites type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Composites{} + +// Composites struct for Composites +type Composites struct { + Realm []string `json:"realm,omitempty"` + Client *map[string][]string `json:"client,omitempty"` + // Deprecated + Application *map[string][]string `json:"application,omitempty"` +} + +// NewComposites instantiates a new Composites object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComposites() *Composites { + this := Composites{} + return &this +} + +// NewCompositesWithDefaults instantiates a new Composites object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCompositesWithDefaults() *Composites { + this := Composites{} + return &this +} + +// GetRealm returns the Realm field value if set, zero value otherwise. +func (o *Composites) GetRealm() []string { + if o == nil || IsNil(o.Realm) { + var ret []string + return ret + } + return o.Realm +} + +// GetRealmOk returns a tuple with the Realm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Composites) GetRealmOk() ([]string, bool) { + if o == nil || IsNil(o.Realm) { + return nil, false + } + return o.Realm, true +} + +// HasRealm returns a boolean if a field has been set. +func (o *Composites) HasRealm() bool { + if o != nil && !IsNil(o.Realm) { + return true + } + + return false +} + +// SetRealm gets a reference to the given []string and assigns it to the Realm field. +func (o *Composites) SetRealm(v []string) { + o.Realm = v +} + +// GetClient returns the Client field value if set, zero value otherwise. +func (o *Composites) GetClient() map[string][]string { + if o == nil || IsNil(o.Client) { + var ret map[string][]string + return ret + } + return *o.Client +} + +// GetClientOk returns a tuple with the Client field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Composites) GetClientOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Client) { + return nil, false + } + return o.Client, true +} + +// HasClient returns a boolean if a field has been set. +func (o *Composites) HasClient() bool { + if o != nil && !IsNil(o.Client) { + return true + } + + return false +} + +// SetClient gets a reference to the given map[string][]string and assigns it to the Client field. +func (o *Composites) SetClient(v map[string][]string) { + o.Client = &v +} + +// GetApplication returns the Application field value if set, zero value otherwise. +// Deprecated +func (o *Composites) GetApplication() map[string][]string { + if o == nil || IsNil(o.Application) { + var ret map[string][]string + return ret + } + return *o.Application +} + +// GetApplicationOk returns a tuple with the Application field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *Composites) GetApplicationOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Application) { + return nil, false + } + return o.Application, true +} + +// HasApplication returns a boolean if a field has been set. +func (o *Composites) HasApplication() bool { + if o != nil && !IsNil(o.Application) { + return true + } + + return false +} + +// SetApplication gets a reference to the given map[string][]string and assigns it to the Application field. +// Deprecated +func (o *Composites) SetApplication(v map[string][]string) { + o.Application = &v +} + +func (o Composites) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Composites) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Realm) { + toSerialize["realm"] = o.Realm + } + if !IsNil(o.Client) { + toSerialize["client"] = o.Client + } + if !IsNil(o.Application) { + toSerialize["application"] = o.Application + } + return toSerialize, nil +} + +type NullableComposites struct { + value *Composites + isSet bool +} + +func (v NullableComposites) Get() *Composites { + return v.value +} + +func (v *NullableComposites) Set(val *Composites) { + v.value = val + v.isSet = true +} + +func (v NullableComposites) IsSet() bool { + return v.isSet +} + +func (v *NullableComposites) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComposites(val *Composites) *NullableComposites { + return &NullableComposites{value: val, isSet: true} +} + +func (v NullableComposites) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComposites) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_config_property_representation.go b/model_config_property_representation.go new file mode 100644 index 0000000..3ce9310 --- /dev/null +++ b/model_config_property_representation.go @@ -0,0 +1,413 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ConfigPropertyRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertyRepresentation{} + +// ConfigPropertyRepresentation struct for ConfigPropertyRepresentation +type ConfigPropertyRepresentation struct { + Name *string `json:"name,omitempty"` + Label *string `json:"label,omitempty"` + HelpText *string `json:"helpText,omitempty"` + Type *string `json:"type,omitempty"` + DefaultValue interface{} `json:"defaultValue,omitempty"` + Options []string `json:"options,omitempty"` + Secret *bool `json:"secret,omitempty"` + Required *bool `json:"required,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// NewConfigPropertyRepresentation instantiates a new ConfigPropertyRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertyRepresentation() *ConfigPropertyRepresentation { + this := ConfigPropertyRepresentation{} + return &this +} + +// NewConfigPropertyRepresentationWithDefaults instantiates a new ConfigPropertyRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertyRepresentationWithDefaults() *ConfigPropertyRepresentation { + this := ConfigPropertyRepresentation{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetName(v string) { + o.Name = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertyRepresentation) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ConfigPropertyRepresentation) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *ConfigPropertyRepresentation) SetLabel(v string) { + o.Label = &v +} + +// GetHelpText returns the HelpText field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) GetHelpText() string { + if o == nil || IsNil(o.HelpText) { + var ret string + return ret + } + return *o.HelpText +} + +// GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertyRepresentation) GetHelpTextOk() (*string, bool) { + if o == nil || IsNil(o.HelpText) { + return nil, false + } + return o.HelpText, true +} + +// HasHelpText returns a boolean if a field has been set. +func (o *ConfigPropertyRepresentation) HasHelpText() bool { + if o != nil && !IsNil(o.HelpText) { + return true + } + + return false +} + +// SetHelpText gets a reference to the given string and assigns it to the HelpText field. +func (o *ConfigPropertyRepresentation) SetHelpText(v string) { + o.HelpText = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetType(v string) { + o.Type = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigPropertyRepresentation) GetDefaultValue() interface{} { + if o == nil { + var ret interface{} + 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. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigPropertyRepresentation) GetDefaultValueOk() (*interface{}, 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 *ConfigPropertyRepresentation) HasDefaultValue() bool { + if o != nil && !IsNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given interface{} and assigns it to the DefaultValue field. +func (o *ConfigPropertyRepresentation) SetDefaultValue(v interface{}) { + o.DefaultValue = v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetOptions(v []string) { + o.Options = v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) GetSecret() bool { + if o == nil || IsNil(o.Secret) { + var ret bool + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertyRepresentation) GetSecretOk() (*bool, bool) { + if o == nil || IsNil(o.Secret) { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ConfigPropertyRepresentation) HasSecret() bool { + if o != nil && !IsNil(o.Secret) { + return true + } + + return false +} + +// SetSecret gets a reference to the given bool and assigns it to the Secret field. +func (o *ConfigPropertyRepresentation) SetSecret(v bool) { + o.Secret = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) 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 *ConfigPropertyRepresentation) SetRequired(v bool) { + o.Required = &v +} + +// GetReadOnly returns the ReadOnly field value if set, zero value otherwise. +func (o *ConfigPropertyRepresentation) GetReadOnly() bool { + if o == nil || IsNil(o.ReadOnly) { + var ret bool + return ret + } + return *o.ReadOnly +} + +// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertyRepresentation) GetReadOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.ReadOnly) { + return nil, false + } + return o.ReadOnly, true +} + +// HasReadOnly returns a boolean if a field has been set. +func (o *ConfigPropertyRepresentation) HasReadOnly() bool { + if o != nil && !IsNil(o.ReadOnly) { + return true + } + + return false +} + +// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field. +func (o *ConfigPropertyRepresentation) SetReadOnly(v bool) { + o.ReadOnly = &v +} + +func (o ConfigPropertyRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertyRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.HelpText) { + toSerialize["helpText"] = o.HelpText + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if o.DefaultValue != nil { + toSerialize["defaultValue"] = o.DefaultValue + } + if !IsNil(o.Options) { + toSerialize["options"] = o.Options + } + if !IsNil(o.Secret) { + toSerialize["secret"] = o.Secret + } + if !IsNil(o.Required) { + toSerialize["required"] = o.Required + } + if !IsNil(o.ReadOnly) { + toSerialize["readOnly"] = o.ReadOnly + } + return toSerialize, nil +} + +type NullableConfigPropertyRepresentation struct { + value *ConfigPropertyRepresentation + isSet bool +} + +func (v NullableConfigPropertyRepresentation) Get() *ConfigPropertyRepresentation { + return v.value +} + +func (v *NullableConfigPropertyRepresentation) Set(val *ConfigPropertyRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertyRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertyRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertyRepresentation(val *ConfigPropertyRepresentation) *NullableConfigPropertyRepresentation { + return &NullableConfigPropertyRepresentation{value: val, isSet: true} +} + +func (v NullableConfigPropertyRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertyRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_confirmation.go b/model_confirmation.go new file mode 100644 index 0000000..a4d74dc --- /dev/null +++ b/model_confirmation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the Confirmation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Confirmation{} + +// Confirmation struct for Confirmation +type Confirmation struct { + X5tS256 *string `json:"x5t#S256,omitempty"` + Jkt *string `json:"jkt,omitempty"` +} + +// NewConfirmation instantiates a new Confirmation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfirmation() *Confirmation { + this := Confirmation{} + return &this +} + +// NewConfirmationWithDefaults instantiates a new Confirmation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfirmationWithDefaults() *Confirmation { + this := Confirmation{} + return &this +} + +// GetX5tS256 returns the X5tS256 field value if set, zero value otherwise. +func (o *Confirmation) GetX5tS256() string { + if o == nil || IsNil(o.X5tS256) { + var ret string + return ret + } + return *o.X5tS256 +} + +// GetX5tS256Ok returns a tuple with the X5tS256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Confirmation) GetX5tS256Ok() (*string, bool) { + if o == nil || IsNil(o.X5tS256) { + return nil, false + } + return o.X5tS256, true +} + +// HasX5tS256 returns a boolean if a field has been set. +func (o *Confirmation) HasX5tS256() bool { + if o != nil && !IsNil(o.X5tS256) { + return true + } + + return false +} + +// SetX5tS256 gets a reference to the given string and assigns it to the X5tS256 field. +func (o *Confirmation) SetX5tS256(v string) { + o.X5tS256 = &v +} + +// GetJkt returns the Jkt field value if set, zero value otherwise. +func (o *Confirmation) GetJkt() string { + if o == nil || IsNil(o.Jkt) { + var ret string + return ret + } + return *o.Jkt +} + +// GetJktOk returns a tuple with the Jkt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Confirmation) GetJktOk() (*string, bool) { + if o == nil || IsNil(o.Jkt) { + return nil, false + } + return o.Jkt, true +} + +// HasJkt returns a boolean if a field has been set. +func (o *Confirmation) HasJkt() bool { + if o != nil && !IsNil(o.Jkt) { + return true + } + + return false +} + +// SetJkt gets a reference to the given string and assigns it to the Jkt field. +func (o *Confirmation) SetJkt(v string) { + o.Jkt = &v +} + +func (o Confirmation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Confirmation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.X5tS256) { + toSerialize["x5t#S256"] = o.X5tS256 + } + if !IsNil(o.Jkt) { + toSerialize["jkt"] = o.Jkt + } + return toSerialize, nil +} + +type NullableConfirmation struct { + value *Confirmation + isSet bool +} + +func (v NullableConfirmation) Get() *Confirmation { + return v.value +} + +func (v *NullableConfirmation) Set(val *Confirmation) { + v.value = val + v.isSet = true +} + +func (v NullableConfirmation) IsSet() bool { + return v.isSet +} + +func (v *NullableConfirmation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfirmation(val *Confirmation) *NullableConfirmation { + return &NullableConfirmation{value: val, isSet: true} +} + +func (v NullableConfirmation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfirmation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_credential_representation.go b/model_credential_representation.go new file mode 100644 index 0000000..22d04a3 --- /dev/null +++ b/model_credential_representation.go @@ -0,0 +1,772 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the CredentialRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CredentialRepresentation{} + +// CredentialRepresentation struct for CredentialRepresentation +type CredentialRepresentation struct { + Id *string `json:"id,omitempty"` + Type *string `json:"type,omitempty"` + UserLabel *string `json:"userLabel,omitempty"` + CreatedDate *int64 `json:"createdDate,omitempty"` + SecretData *string `json:"secretData,omitempty"` + CredentialData *string `json:"credentialData,omitempty"` + Priority *int32 `json:"priority,omitempty"` + Value *string `json:"value,omitempty"` + Temporary *bool `json:"temporary,omitempty"` + // Deprecated + Device *string `json:"device,omitempty"` + // Deprecated + HashedSaltedValue *string `json:"hashedSaltedValue,omitempty"` + // Deprecated + Salt *string `json:"salt,omitempty"` + // Deprecated + HashIterations *int32 `json:"hashIterations,omitempty"` + // Deprecated + Counter *int32 `json:"counter,omitempty"` + // Deprecated + Algorithm *string `json:"algorithm,omitempty"` + // Deprecated + Digits *int32 `json:"digits,omitempty"` + // Deprecated + Period *int32 `json:"period,omitempty"` + // Deprecated + Config *map[string][]string `json:"config,omitempty"` +} + +// NewCredentialRepresentation instantiates a new CredentialRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCredentialRepresentation() *CredentialRepresentation { + this := CredentialRepresentation{} + return &this +} + +// NewCredentialRepresentationWithDefaults instantiates a new CredentialRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCredentialRepresentationWithDefaults() *CredentialRepresentation { + this := CredentialRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CredentialRepresentation) 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 *CredentialRepresentation) 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 *CredentialRepresentation) 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 *CredentialRepresentation) SetId(v string) { + o.Id = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CredentialRepresentation) 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 *CredentialRepresentation) 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 *CredentialRepresentation) 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 *CredentialRepresentation) SetType(v string) { + o.Type = &v +} + +// GetUserLabel returns the UserLabel field value if set, zero value otherwise. +func (o *CredentialRepresentation) GetUserLabel() string { + if o == nil || IsNil(o.UserLabel) { + var ret string + return ret + } + return *o.UserLabel +} + +// GetUserLabelOk returns a tuple with the UserLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CredentialRepresentation) GetUserLabelOk() (*string, bool) { + if o == nil || IsNil(o.UserLabel) { + return nil, false + } + return o.UserLabel, true +} + +// HasUserLabel returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasUserLabel() bool { + if o != nil && !IsNil(o.UserLabel) { + return true + } + + return false +} + +// SetUserLabel gets a reference to the given string and assigns it to the UserLabel field. +func (o *CredentialRepresentation) SetUserLabel(v string) { + o.UserLabel = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *CredentialRepresentation) GetCreatedDate() int64 { + if o == nil || IsNil(o.CreatedDate) { + var ret int64 + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CredentialRepresentation) GetCreatedDateOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given int64 and assigns it to the CreatedDate field. +func (o *CredentialRepresentation) SetCreatedDate(v int64) { + o.CreatedDate = &v +} + +// GetSecretData returns the SecretData field value if set, zero value otherwise. +func (o *CredentialRepresentation) GetSecretData() string { + if o == nil || IsNil(o.SecretData) { + var ret string + return ret + } + return *o.SecretData +} + +// GetSecretDataOk returns a tuple with the SecretData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CredentialRepresentation) GetSecretDataOk() (*string, bool) { + if o == nil || IsNil(o.SecretData) { + return nil, false + } + return o.SecretData, true +} + +// HasSecretData returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasSecretData() bool { + if o != nil && !IsNil(o.SecretData) { + return true + } + + return false +} + +// SetSecretData gets a reference to the given string and assigns it to the SecretData field. +func (o *CredentialRepresentation) SetSecretData(v string) { + o.SecretData = &v +} + +// GetCredentialData returns the CredentialData field value if set, zero value otherwise. +func (o *CredentialRepresentation) GetCredentialData() string { + if o == nil || IsNil(o.CredentialData) { + var ret string + return ret + } + return *o.CredentialData +} + +// GetCredentialDataOk returns a tuple with the CredentialData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CredentialRepresentation) GetCredentialDataOk() (*string, bool) { + if o == nil || IsNil(o.CredentialData) { + return nil, false + } + return o.CredentialData, true +} + +// HasCredentialData returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasCredentialData() bool { + if o != nil && !IsNil(o.CredentialData) { + return true + } + + return false +} + +// SetCredentialData gets a reference to the given string and assigns it to the CredentialData field. +func (o *CredentialRepresentation) SetCredentialData(v string) { + o.CredentialData = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CredentialRepresentation) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CredentialRepresentation) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *CredentialRepresentation) SetPriority(v int32) { + o.Priority = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CredentialRepresentation) 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 *CredentialRepresentation) 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 *CredentialRepresentation) 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 *CredentialRepresentation) SetValue(v string) { + o.Value = &v +} + +// GetTemporary returns the Temporary field value if set, zero value otherwise. +func (o *CredentialRepresentation) GetTemporary() bool { + if o == nil || IsNil(o.Temporary) { + var ret bool + return ret + } + return *o.Temporary +} + +// GetTemporaryOk returns a tuple with the Temporary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CredentialRepresentation) GetTemporaryOk() (*bool, bool) { + if o == nil || IsNil(o.Temporary) { + return nil, false + } + return o.Temporary, true +} + +// HasTemporary returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasTemporary() bool { + if o != nil && !IsNil(o.Temporary) { + return true + } + + return false +} + +// SetTemporary gets a reference to the given bool and assigns it to the Temporary field. +func (o *CredentialRepresentation) SetTemporary(v bool) { + o.Temporary = &v +} + +// GetDevice returns the Device field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetDevice() string { + if o == nil || IsNil(o.Device) { + var ret string + return ret + } + return *o.Device +} + +// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetDeviceOk() (*string, bool) { + if o == nil || IsNil(o.Device) { + return nil, false + } + return o.Device, true +} + +// HasDevice returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasDevice() bool { + if o != nil && !IsNil(o.Device) { + return true + } + + return false +} + +// SetDevice gets a reference to the given string and assigns it to the Device field. +// Deprecated +func (o *CredentialRepresentation) SetDevice(v string) { + o.Device = &v +} + +// GetHashedSaltedValue returns the HashedSaltedValue field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetHashedSaltedValue() string { + if o == nil || IsNil(o.HashedSaltedValue) { + var ret string + return ret + } + return *o.HashedSaltedValue +} + +// GetHashedSaltedValueOk returns a tuple with the HashedSaltedValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetHashedSaltedValueOk() (*string, bool) { + if o == nil || IsNil(o.HashedSaltedValue) { + return nil, false + } + return o.HashedSaltedValue, true +} + +// HasHashedSaltedValue returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasHashedSaltedValue() bool { + if o != nil && !IsNil(o.HashedSaltedValue) { + return true + } + + return false +} + +// SetHashedSaltedValue gets a reference to the given string and assigns it to the HashedSaltedValue field. +// Deprecated +func (o *CredentialRepresentation) SetHashedSaltedValue(v string) { + o.HashedSaltedValue = &v +} + +// GetSalt returns the Salt field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetSalt() string { + if o == nil || IsNil(o.Salt) { + var ret string + return ret + } + return *o.Salt +} + +// GetSaltOk returns a tuple with the Salt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetSaltOk() (*string, bool) { + if o == nil || IsNil(o.Salt) { + return nil, false + } + return o.Salt, true +} + +// HasSalt returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasSalt() bool { + if o != nil && !IsNil(o.Salt) { + return true + } + + return false +} + +// SetSalt gets a reference to the given string and assigns it to the Salt field. +// Deprecated +func (o *CredentialRepresentation) SetSalt(v string) { + o.Salt = &v +} + +// GetHashIterations returns the HashIterations field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetHashIterations() int32 { + if o == nil || IsNil(o.HashIterations) { + var ret int32 + return ret + } + return *o.HashIterations +} + +// GetHashIterationsOk returns a tuple with the HashIterations field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetHashIterationsOk() (*int32, bool) { + if o == nil || IsNil(o.HashIterations) { + return nil, false + } + return o.HashIterations, true +} + +// HasHashIterations returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasHashIterations() bool { + if o != nil && !IsNil(o.HashIterations) { + return true + } + + return false +} + +// SetHashIterations gets a reference to the given int32 and assigns it to the HashIterations field. +// Deprecated +func (o *CredentialRepresentation) SetHashIterations(v int32) { + o.HashIterations = &v +} + +// GetCounter returns the Counter field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetCounter() int32 { + if o == nil || IsNil(o.Counter) { + var ret int32 + return ret + } + return *o.Counter +} + +// GetCounterOk returns a tuple with the Counter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetCounterOk() (*int32, bool) { + if o == nil || IsNil(o.Counter) { + return nil, false + } + return o.Counter, true +} + +// HasCounter returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasCounter() bool { + if o != nil && !IsNil(o.Counter) { + return true + } + + return false +} + +// SetCounter gets a reference to the given int32 and assigns it to the Counter field. +// Deprecated +func (o *CredentialRepresentation) SetCounter(v int32) { + o.Counter = &v +} + +// GetAlgorithm returns the Algorithm field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetAlgorithm() string { + if o == nil || IsNil(o.Algorithm) { + var ret string + return ret + } + return *o.Algorithm +} + +// GetAlgorithmOk returns a tuple with the Algorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetAlgorithmOk() (*string, bool) { + if o == nil || IsNil(o.Algorithm) { + return nil, false + } + return o.Algorithm, true +} + +// HasAlgorithm returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasAlgorithm() bool { + if o != nil && !IsNil(o.Algorithm) { + return true + } + + return false +} + +// SetAlgorithm gets a reference to the given string and assigns it to the Algorithm field. +// Deprecated +func (o *CredentialRepresentation) SetAlgorithm(v string) { + o.Algorithm = &v +} + +// GetDigits returns the Digits field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetDigits() int32 { + if o == nil || IsNil(o.Digits) { + var ret int32 + return ret + } + return *o.Digits +} + +// GetDigitsOk returns a tuple with the Digits field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetDigitsOk() (*int32, bool) { + if o == nil || IsNil(o.Digits) { + return nil, false + } + return o.Digits, true +} + +// HasDigits returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasDigits() bool { + if o != nil && !IsNil(o.Digits) { + return true + } + + return false +} + +// SetDigits gets a reference to the given int32 and assigns it to the Digits field. +// Deprecated +func (o *CredentialRepresentation) SetDigits(v int32) { + o.Digits = &v +} + +// GetPeriod returns the Period field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetPeriod() int32 { + if o == nil || IsNil(o.Period) { + var ret int32 + return ret + } + return *o.Period +} + +// GetPeriodOk returns a tuple with the Period field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetPeriodOk() (*int32, bool) { + if o == nil || IsNil(o.Period) { + return nil, false + } + return o.Period, true +} + +// HasPeriod returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasPeriod() bool { + if o != nil && !IsNil(o.Period) { + return true + } + + return false +} + +// SetPeriod gets a reference to the given int32 and assigns it to the Period field. +// Deprecated +func (o *CredentialRepresentation) SetPeriod(v int32) { + o.Period = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +// Deprecated +func (o *CredentialRepresentation) GetConfig() map[string][]string { + if o == nil || IsNil(o.Config) { + var ret map[string][]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CredentialRepresentation) GetConfigOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *CredentialRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string][]string and assigns it to the Config field. +// Deprecated +func (o *CredentialRepresentation) SetConfig(v map[string][]string) { + o.Config = &v +} + +func (o CredentialRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CredentialRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UserLabel) { + toSerialize["userLabel"] = o.UserLabel + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.SecretData) { + toSerialize["secretData"] = o.SecretData + } + if !IsNil(o.CredentialData) { + toSerialize["credentialData"] = o.CredentialData + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Temporary) { + toSerialize["temporary"] = o.Temporary + } + if !IsNil(o.Device) { + toSerialize["device"] = o.Device + } + if !IsNil(o.HashedSaltedValue) { + toSerialize["hashedSaltedValue"] = o.HashedSaltedValue + } + if !IsNil(o.Salt) { + toSerialize["salt"] = o.Salt + } + if !IsNil(o.HashIterations) { + toSerialize["hashIterations"] = o.HashIterations + } + if !IsNil(o.Counter) { + toSerialize["counter"] = o.Counter + } + if !IsNil(o.Algorithm) { + toSerialize["algorithm"] = o.Algorithm + } + if !IsNil(o.Digits) { + toSerialize["digits"] = o.Digits + } + if !IsNil(o.Period) { + toSerialize["period"] = o.Period + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableCredentialRepresentation struct { + value *CredentialRepresentation + isSet bool +} + +func (v NullableCredentialRepresentation) Get() *CredentialRepresentation { + return v.value +} + +func (v *NullableCredentialRepresentation) Set(val *CredentialRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableCredentialRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentialRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentialRepresentation(val *CredentialRepresentation) *NullableCredentialRepresentation { + return &NullableCredentialRepresentation{value: val, isSet: true} +} + +func (v NullableCredentialRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentialRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_decision_effect.go b/model_decision_effect.go new file mode 100644 index 0000000..b000e45 --- /dev/null +++ b/model_decision_effect.go @@ -0,0 +1,110 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// DecisionEffect the model 'DecisionEffect' +type DecisionEffect string + +// List of DecisionEffect +const ( + PERMIT DecisionEffect = "PERMIT" + DENY DecisionEffect = "DENY" +) + +// All allowed values of DecisionEffect enum +var AllowedDecisionEffectEnumValues = []DecisionEffect{ + "PERMIT", + "DENY", +} + +func (v *DecisionEffect) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DecisionEffect(value) + for _, existing := range AllowedDecisionEffectEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DecisionEffect", value) +} + +// NewDecisionEffectFromValue returns a pointer to a valid DecisionEffect +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDecisionEffectFromValue(v string) (*DecisionEffect, error) { + ev := DecisionEffect(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DecisionEffect: valid values are %v", v, AllowedDecisionEffectEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DecisionEffect) IsValid() bool { + for _, existing := range AllowedDecisionEffectEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DecisionEffect value +func (v DecisionEffect) Ptr() *DecisionEffect { + return &v +} + +type NullableDecisionEffect struct { + value *DecisionEffect + isSet bool +} + +func (v NullableDecisionEffect) Get() *DecisionEffect { + return v.value +} + +func (v *NullableDecisionEffect) Set(val *DecisionEffect) { + v.value = val + v.isSet = true +} + +func (v NullableDecisionEffect) IsSet() bool { + return v.isSet +} + +func (v *NullableDecisionEffect) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDecisionEffect(val *DecisionEffect) *NullableDecisionEffect { + return &NullableDecisionEffect{value: val, isSet: true} +} + +func (v NullableDecisionEffect) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDecisionEffect) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_decision_strategy.go b/model_decision_strategy.go new file mode 100644 index 0000000..573ce70 --- /dev/null +++ b/model_decision_strategy.go @@ -0,0 +1,112 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// DecisionStrategy the model 'DecisionStrategy' +type DecisionStrategy string + +// List of DecisionStrategy +const ( + AFFIRMATIVE DecisionStrategy = "AFFIRMATIVE" + UNANIMOUS DecisionStrategy = "UNANIMOUS" + CONSENSUS DecisionStrategy = "CONSENSUS" +) + +// All allowed values of DecisionStrategy enum +var AllowedDecisionStrategyEnumValues = []DecisionStrategy{ + "AFFIRMATIVE", + "UNANIMOUS", + "CONSENSUS", +} + +func (v *DecisionStrategy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DecisionStrategy(value) + for _, existing := range AllowedDecisionStrategyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DecisionStrategy", value) +} + +// NewDecisionStrategyFromValue returns a pointer to a valid DecisionStrategy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDecisionStrategyFromValue(v string) (*DecisionStrategy, error) { + ev := DecisionStrategy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DecisionStrategy: valid values are %v", v, AllowedDecisionStrategyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DecisionStrategy) IsValid() bool { + for _, existing := range AllowedDecisionStrategyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DecisionStrategy value +func (v DecisionStrategy) Ptr() *DecisionStrategy { + return &v +} + +type NullableDecisionStrategy struct { + value *DecisionStrategy + isSet bool +} + +func (v NullableDecisionStrategy) Get() *DecisionStrategy { + return v.value +} + +func (v *NullableDecisionStrategy) Set(val *DecisionStrategy) { + v.value = val + v.isSet = true +} + +func (v NullableDecisionStrategy) IsSet() bool { + return v.isSet +} + +func (v *NullableDecisionStrategy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDecisionStrategy(val *DecisionStrategy) *NullableDecisionStrategy { + return &NullableDecisionStrategy{value: val, isSet: true} +} + +func (v NullableDecisionStrategy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDecisionStrategy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_enforcement_mode.go b/model_enforcement_mode.go new file mode 100644 index 0000000..dc6b9f7 --- /dev/null +++ b/model_enforcement_mode.go @@ -0,0 +1,112 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// EnforcementMode the model 'EnforcementMode' +type EnforcementMode string + +// List of EnforcementMode +const ( + PERMISSIVE EnforcementMode = "PERMISSIVE" + ENFORCING EnforcementMode = "ENFORCING" + DISABLED EnforcementMode = "DISABLED" +) + +// All allowed values of EnforcementMode enum +var AllowedEnforcementModeEnumValues = []EnforcementMode{ + "PERMISSIVE", + "ENFORCING", + "DISABLED", +} + +func (v *EnforcementMode) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EnforcementMode(value) + for _, existing := range AllowedEnforcementModeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EnforcementMode", value) +} + +// NewEnforcementModeFromValue returns a pointer to a valid EnforcementMode +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEnforcementModeFromValue(v string) (*EnforcementMode, error) { + ev := EnforcementMode(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EnforcementMode: valid values are %v", v, AllowedEnforcementModeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EnforcementMode) IsValid() bool { + for _, existing := range AllowedEnforcementModeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EnforcementMode value +func (v EnforcementMode) Ptr() *EnforcementMode { + return &v +} + +type NullableEnforcementMode struct { + value *EnforcementMode + isSet bool +} + +func (v NullableEnforcementMode) Get() *EnforcementMode { + return v.value +} + +func (v *NullableEnforcementMode) Set(val *EnforcementMode) { + v.value = val + v.isSet = true +} + +func (v NullableEnforcementMode) IsSet() bool { + return v.isSet +} + +func (v *NullableEnforcementMode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnforcementMode(val *EnforcementMode) *NullableEnforcementMode { + return &NullableEnforcementMode{value: val, isSet: true} +} + +func (v NullableEnforcementMode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnforcementMode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_evaluation_result_representation.go b/model_evaluation_result_representation.go new file mode 100644 index 0000000..521df29 --- /dev/null +++ b/model_evaluation_result_representation.go @@ -0,0 +1,268 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the EvaluationResultRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EvaluationResultRepresentation{} + +// EvaluationResultRepresentation struct for EvaluationResultRepresentation +type EvaluationResultRepresentation struct { + Resource *ResourceRepresentation `json:"resource,omitempty"` + Scopes []ScopeRepresentation `json:"scopes,omitempty"` + Policies []PolicyResultRepresentation `json:"policies,omitempty"` + Status *DecisionEffect `json:"status,omitempty"` + AllowedScopes []ScopeRepresentation `json:"allowedScopes,omitempty"` +} + +// NewEvaluationResultRepresentation instantiates a new EvaluationResultRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEvaluationResultRepresentation() *EvaluationResultRepresentation { + this := EvaluationResultRepresentation{} + return &this +} + +// NewEvaluationResultRepresentationWithDefaults instantiates a new EvaluationResultRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEvaluationResultRepresentationWithDefaults() *EvaluationResultRepresentation { + this := EvaluationResultRepresentation{} + return &this +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *EvaluationResultRepresentation) GetResource() ResourceRepresentation { + if o == nil || IsNil(o.Resource) { + var ret ResourceRepresentation + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvaluationResultRepresentation) GetResourceOk() (*ResourceRepresentation, bool) { + if o == nil || IsNil(o.Resource) { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *EvaluationResultRepresentation) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given ResourceRepresentation and assigns it to the Resource field. +func (o *EvaluationResultRepresentation) SetResource(v ResourceRepresentation) { + o.Resource = &v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *EvaluationResultRepresentation) GetScopes() []ScopeRepresentation { + if o == nil || IsNil(o.Scopes) { + var ret []ScopeRepresentation + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvaluationResultRepresentation) GetScopesOk() ([]ScopeRepresentation, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *EvaluationResultRepresentation) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []ScopeRepresentation and assigns it to the Scopes field. +func (o *EvaluationResultRepresentation) SetScopes(v []ScopeRepresentation) { + o.Scopes = v +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *EvaluationResultRepresentation) GetPolicies() []PolicyResultRepresentation { + if o == nil || IsNil(o.Policies) { + var ret []PolicyResultRepresentation + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvaluationResultRepresentation) GetPoliciesOk() ([]PolicyResultRepresentation, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *EvaluationResultRepresentation) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []PolicyResultRepresentation and assigns it to the Policies field. +func (o *EvaluationResultRepresentation) SetPolicies(v []PolicyResultRepresentation) { + o.Policies = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *EvaluationResultRepresentation) GetStatus() DecisionEffect { + if o == nil || IsNil(o.Status) { + var ret DecisionEffect + 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 *EvaluationResultRepresentation) GetStatusOk() (*DecisionEffect, 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 *EvaluationResultRepresentation) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given DecisionEffect and assigns it to the Status field. +func (o *EvaluationResultRepresentation) SetStatus(v DecisionEffect) { + o.Status = &v +} + +// GetAllowedScopes returns the AllowedScopes field value if set, zero value otherwise. +func (o *EvaluationResultRepresentation) GetAllowedScopes() []ScopeRepresentation { + if o == nil || IsNil(o.AllowedScopes) { + var ret []ScopeRepresentation + return ret + } + return o.AllowedScopes +} + +// GetAllowedScopesOk returns a tuple with the AllowedScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvaluationResultRepresentation) GetAllowedScopesOk() ([]ScopeRepresentation, bool) { + if o == nil || IsNil(o.AllowedScopes) { + return nil, false + } + return o.AllowedScopes, true +} + +// HasAllowedScopes returns a boolean if a field has been set. +func (o *EvaluationResultRepresentation) HasAllowedScopes() bool { + if o != nil && !IsNil(o.AllowedScopes) { + return true + } + + return false +} + +// SetAllowedScopes gets a reference to the given []ScopeRepresentation and assigns it to the AllowedScopes field. +func (o *EvaluationResultRepresentation) SetAllowedScopes(v []ScopeRepresentation) { + o.AllowedScopes = v +} + +func (o EvaluationResultRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EvaluationResultRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.AllowedScopes) { + toSerialize["allowedScopes"] = o.AllowedScopes + } + return toSerialize, nil +} + +type NullableEvaluationResultRepresentation struct { + value *EvaluationResultRepresentation + isSet bool +} + +func (v NullableEvaluationResultRepresentation) Get() *EvaluationResultRepresentation { + return v.value +} + +func (v *NullableEvaluationResultRepresentation) Set(val *EvaluationResultRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableEvaluationResultRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableEvaluationResultRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEvaluationResultRepresentation(val *EvaluationResultRepresentation) *NullableEvaluationResultRepresentation { + return &NullableEvaluationResultRepresentation{value: val, isSet: true} +} + +func (v NullableEvaluationResultRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEvaluationResultRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_event_representation.go b/model_event_representation.go new file mode 100644 index 0000000..b6088c4 --- /dev/null +++ b/model_event_representation.go @@ -0,0 +1,412 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the EventRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventRepresentation{} + +// EventRepresentation struct for EventRepresentation +type EventRepresentation struct { + Time *int64 `json:"time,omitempty"` + Type *string `json:"type,omitempty"` + RealmId *string `json:"realmId,omitempty"` + ClientId *string `json:"clientId,omitempty"` + UserId *string `json:"userId,omitempty"` + SessionId *string `json:"sessionId,omitempty"` + IpAddress *string `json:"ipAddress,omitempty"` + Error *string `json:"error,omitempty"` + Details *map[string]string `json:"details,omitempty"` +} + +// NewEventRepresentation instantiates a new EventRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventRepresentation() *EventRepresentation { + this := EventRepresentation{} + return &this +} + +// NewEventRepresentationWithDefaults instantiates a new EventRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventRepresentationWithDefaults() *EventRepresentation { + this := EventRepresentation{} + return &this +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *EventRepresentation) GetTime() int64 { + if o == nil || IsNil(o.Time) { + var ret int64 + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRepresentation) GetTimeOk() (*int64, bool) { + if o == nil || IsNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *EventRepresentation) HasTime() bool { + if o != nil && !IsNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given int64 and assigns it to the Time field. +func (o *EventRepresentation) SetTime(v int64) { + o.Time = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *EventRepresentation) 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 *EventRepresentation) 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 *EventRepresentation) 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 *EventRepresentation) SetType(v string) { + o.Type = &v +} + +// GetRealmId returns the RealmId field value if set, zero value otherwise. +func (o *EventRepresentation) GetRealmId() string { + if o == nil || IsNil(o.RealmId) { + var ret string + return ret + } + return *o.RealmId +} + +// GetRealmIdOk returns a tuple with the RealmId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRepresentation) GetRealmIdOk() (*string, bool) { + if o == nil || IsNil(o.RealmId) { + return nil, false + } + return o.RealmId, true +} + +// HasRealmId returns a boolean if a field has been set. +func (o *EventRepresentation) HasRealmId() bool { + if o != nil && !IsNil(o.RealmId) { + return true + } + + return false +} + +// SetRealmId gets a reference to the given string and assigns it to the RealmId field. +func (o *EventRepresentation) SetRealmId(v string) { + o.RealmId = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *EventRepresentation) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRepresentation) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *EventRepresentation) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *EventRepresentation) SetClientId(v string) { + o.ClientId = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *EventRepresentation) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRepresentation) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *EventRepresentation) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *EventRepresentation) SetUserId(v string) { + o.UserId = &v +} + +// GetSessionId returns the SessionId field value if set, zero value otherwise. +func (o *EventRepresentation) GetSessionId() string { + if o == nil || IsNil(o.SessionId) { + var ret string + return ret + } + return *o.SessionId +} + +// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRepresentation) GetSessionIdOk() (*string, bool) { + if o == nil || IsNil(o.SessionId) { + return nil, false + } + return o.SessionId, true +} + +// HasSessionId returns a boolean if a field has been set. +func (o *EventRepresentation) HasSessionId() bool { + if o != nil && !IsNil(o.SessionId) { + return true + } + + return false +} + +// SetSessionId gets a reference to the given string and assigns it to the SessionId field. +func (o *EventRepresentation) SetSessionId(v string) { + o.SessionId = &v +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *EventRepresentation) 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 *EventRepresentation) 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 *EventRepresentation) 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 *EventRepresentation) SetIpAddress(v string) { + o.IpAddress = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *EventRepresentation) 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 *EventRepresentation) 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 *EventRepresentation) 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 *EventRepresentation) SetError(v string) { + o.Error = &v +} + +// GetDetails returns the Details field value if set, zero value otherwise. +func (o *EventRepresentation) GetDetails() map[string]string { + if o == nil || IsNil(o.Details) { + var ret map[string]string + 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 *EventRepresentation) GetDetailsOk() (*map[string]string, 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 *EventRepresentation) HasDetails() bool { + if o != nil && !IsNil(o.Details) { + return true + } + + return false +} + +// SetDetails gets a reference to the given map[string]string and assigns it to the Details field. +func (o *EventRepresentation) SetDetails(v map[string]string) { + o.Details = &v +} + +func (o EventRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Time) { + toSerialize["time"] = o.Time + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.RealmId) { + toSerialize["realmId"] = o.RealmId + } + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.SessionId) { + toSerialize["sessionId"] = o.SessionId + } + if !IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Details) { + toSerialize["details"] = o.Details + } + return toSerialize, nil +} + +type NullableEventRepresentation struct { + value *EventRepresentation + isSet bool +} + +func (v NullableEventRepresentation) Get() *EventRepresentation { + return v.value +} + +func (v *NullableEventRepresentation) Set(val *EventRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableEventRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableEventRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventRepresentation(val *EventRepresentation) *NullableEventRepresentation { + return &NullableEventRepresentation{value: val, isSet: true} +} + +func (v NullableEventRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_federated_identity_representation.go b/model_federated_identity_representation.go new file mode 100644 index 0000000..a3fb7bc --- /dev/null +++ b/model_federated_identity_representation.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the FederatedIdentityRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederatedIdentityRepresentation{} + +// FederatedIdentityRepresentation struct for FederatedIdentityRepresentation +type FederatedIdentityRepresentation struct { + IdentityProvider *string `json:"identityProvider,omitempty"` + UserId *string `json:"userId,omitempty"` + UserName *string `json:"userName,omitempty"` +} + +// NewFederatedIdentityRepresentation instantiates a new FederatedIdentityRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFederatedIdentityRepresentation() *FederatedIdentityRepresentation { + this := FederatedIdentityRepresentation{} + return &this +} + +// NewFederatedIdentityRepresentationWithDefaults instantiates a new FederatedIdentityRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFederatedIdentityRepresentationWithDefaults() *FederatedIdentityRepresentation { + this := FederatedIdentityRepresentation{} + return &this +} + +// GetIdentityProvider returns the IdentityProvider field value if set, zero value otherwise. +func (o *FederatedIdentityRepresentation) GetIdentityProvider() string { + if o == nil || IsNil(o.IdentityProvider) { + var ret string + return ret + } + return *o.IdentityProvider +} + +// GetIdentityProviderOk returns a tuple with the IdentityProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederatedIdentityRepresentation) GetIdentityProviderOk() (*string, bool) { + if o == nil || IsNil(o.IdentityProvider) { + return nil, false + } + return o.IdentityProvider, true +} + +// HasIdentityProvider returns a boolean if a field has been set. +func (o *FederatedIdentityRepresentation) HasIdentityProvider() bool { + if o != nil && !IsNil(o.IdentityProvider) { + return true + } + + return false +} + +// SetIdentityProvider gets a reference to the given string and assigns it to the IdentityProvider field. +func (o *FederatedIdentityRepresentation) SetIdentityProvider(v string) { + o.IdentityProvider = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *FederatedIdentityRepresentation) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederatedIdentityRepresentation) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *FederatedIdentityRepresentation) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *FederatedIdentityRepresentation) SetUserId(v string) { + o.UserId = &v +} + +// GetUserName returns the UserName field value if set, zero value otherwise. +func (o *FederatedIdentityRepresentation) 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 *FederatedIdentityRepresentation) 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 *FederatedIdentityRepresentation) 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 *FederatedIdentityRepresentation) SetUserName(v string) { + o.UserName = &v +} + +func (o FederatedIdentityRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederatedIdentityRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IdentityProvider) { + toSerialize["identityProvider"] = o.IdentityProvider + } + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.UserName) { + toSerialize["userName"] = o.UserName + } + return toSerialize, nil +} + +type NullableFederatedIdentityRepresentation struct { + value *FederatedIdentityRepresentation + isSet bool +} + +func (v NullableFederatedIdentityRepresentation) Get() *FederatedIdentityRepresentation { + return v.value +} + +func (v *NullableFederatedIdentityRepresentation) Set(val *FederatedIdentityRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableFederatedIdentityRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableFederatedIdentityRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederatedIdentityRepresentation(val *FederatedIdentityRepresentation) *NullableFederatedIdentityRepresentation { + return &NullableFederatedIdentityRepresentation{value: val, isSet: true} +} + +func (v NullableFederatedIdentityRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederatedIdentityRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_global_request_result.go b/model_global_request_result.go new file mode 100644 index 0000000..ef82e27 --- /dev/null +++ b/model_global_request_result.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the GlobalRequestResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GlobalRequestResult{} + +// GlobalRequestResult struct for GlobalRequestResult +type GlobalRequestResult struct { + SuccessRequests []string `json:"successRequests,omitempty"` + FailedRequests []string `json:"failedRequests,omitempty"` +} + +// NewGlobalRequestResult instantiates a new GlobalRequestResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGlobalRequestResult() *GlobalRequestResult { + this := GlobalRequestResult{} + return &this +} + +// NewGlobalRequestResultWithDefaults instantiates a new GlobalRequestResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGlobalRequestResultWithDefaults() *GlobalRequestResult { + this := GlobalRequestResult{} + return &this +} + +// GetSuccessRequests returns the SuccessRequests field value if set, zero value otherwise. +func (o *GlobalRequestResult) GetSuccessRequests() []string { + if o == nil || IsNil(o.SuccessRequests) { + var ret []string + return ret + } + return o.SuccessRequests +} + +// GetSuccessRequestsOk returns a tuple with the SuccessRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GlobalRequestResult) GetSuccessRequestsOk() ([]string, bool) { + if o == nil || IsNil(o.SuccessRequests) { + return nil, false + } + return o.SuccessRequests, true +} + +// HasSuccessRequests returns a boolean if a field has been set. +func (o *GlobalRequestResult) HasSuccessRequests() bool { + if o != nil && !IsNil(o.SuccessRequests) { + return true + } + + return false +} + +// SetSuccessRequests gets a reference to the given []string and assigns it to the SuccessRequests field. +func (o *GlobalRequestResult) SetSuccessRequests(v []string) { + o.SuccessRequests = v +} + +// GetFailedRequests returns the FailedRequests field value if set, zero value otherwise. +func (o *GlobalRequestResult) GetFailedRequests() []string { + if o == nil || IsNil(o.FailedRequests) { + var ret []string + return ret + } + return o.FailedRequests +} + +// GetFailedRequestsOk returns a tuple with the FailedRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GlobalRequestResult) GetFailedRequestsOk() ([]string, bool) { + if o == nil || IsNil(o.FailedRequests) { + return nil, false + } + return o.FailedRequests, true +} + +// HasFailedRequests returns a boolean if a field has been set. +func (o *GlobalRequestResult) HasFailedRequests() bool { + if o != nil && !IsNil(o.FailedRequests) { + return true + } + + return false +} + +// SetFailedRequests gets a reference to the given []string and assigns it to the FailedRequests field. +func (o *GlobalRequestResult) SetFailedRequests(v []string) { + o.FailedRequests = v +} + +func (o GlobalRequestResult) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GlobalRequestResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SuccessRequests) { + toSerialize["successRequests"] = o.SuccessRequests + } + if !IsNil(o.FailedRequests) { + toSerialize["failedRequests"] = o.FailedRequests + } + return toSerialize, nil +} + +type NullableGlobalRequestResult struct { + value *GlobalRequestResult + isSet bool +} + +func (v NullableGlobalRequestResult) Get() *GlobalRequestResult { + return v.value +} + +func (v *NullableGlobalRequestResult) Set(val *GlobalRequestResult) { + v.value = val + v.isSet = true +} + +func (v NullableGlobalRequestResult) IsSet() bool { + return v.isSet +} + +func (v *NullableGlobalRequestResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGlobalRequestResult(val *GlobalRequestResult) *NullableGlobalRequestResult { + return &NullableGlobalRequestResult{value: val, isSet: true} +} + +func (v NullableGlobalRequestResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGlobalRequestResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_group_representation.go b/model_group_representation.go new file mode 100644 index 0000000..1ccabaa --- /dev/null +++ b/model_group_representation.go @@ -0,0 +1,448 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the GroupRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRepresentation{} + +// GroupRepresentation struct for GroupRepresentation +type GroupRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Path *string `json:"path,omitempty"` + ParentId *string `json:"parentId,omitempty"` + SubGroupCount *int64 `json:"subGroupCount,omitempty"` + SubGroups []GroupRepresentation `json:"subGroups,omitempty"` + Attributes *map[string][]string `json:"attributes,omitempty"` + RealmRoles []string `json:"realmRoles,omitempty"` + ClientRoles *map[string][]string `json:"clientRoles,omitempty"` + Access *map[string]bool `json:"access,omitempty"` +} + +// NewGroupRepresentation instantiates a new GroupRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGroupRepresentation() *GroupRepresentation { + this := GroupRepresentation{} + return &this +} + +// NewGroupRepresentationWithDefaults instantiates a new GroupRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGroupRepresentationWithDefaults() *GroupRepresentation { + this := GroupRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *GroupRepresentation) 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 *GroupRepresentation) 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 *GroupRepresentation) 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 *GroupRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GroupRepresentation) 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 *GroupRepresentation) 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 *GroupRepresentation) 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 *GroupRepresentation) SetName(v string) { + o.Name = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *GroupRepresentation) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRepresentation) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *GroupRepresentation) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *GroupRepresentation) SetPath(v string) { + o.Path = &v +} + +// GetParentId returns the ParentId field value if set, zero value otherwise. +func (o *GroupRepresentation) GetParentId() string { + if o == nil || IsNil(o.ParentId) { + var ret string + return ret + } + return *o.ParentId +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRepresentation) GetParentIdOk() (*string, bool) { + if o == nil || IsNil(o.ParentId) { + return nil, false + } + return o.ParentId, true +} + +// HasParentId returns a boolean if a field has been set. +func (o *GroupRepresentation) HasParentId() bool { + if o != nil && !IsNil(o.ParentId) { + return true + } + + return false +} + +// SetParentId gets a reference to the given string and assigns it to the ParentId field. +func (o *GroupRepresentation) SetParentId(v string) { + o.ParentId = &v +} + +// GetSubGroupCount returns the SubGroupCount field value if set, zero value otherwise. +func (o *GroupRepresentation) GetSubGroupCount() int64 { + if o == nil || IsNil(o.SubGroupCount) { + var ret int64 + return ret + } + return *o.SubGroupCount +} + +// GetSubGroupCountOk returns a tuple with the SubGroupCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRepresentation) GetSubGroupCountOk() (*int64, bool) { + if o == nil || IsNil(o.SubGroupCount) { + return nil, false + } + return o.SubGroupCount, true +} + +// HasSubGroupCount returns a boolean if a field has been set. +func (o *GroupRepresentation) HasSubGroupCount() bool { + if o != nil && !IsNil(o.SubGroupCount) { + return true + } + + return false +} + +// SetSubGroupCount gets a reference to the given int64 and assigns it to the SubGroupCount field. +func (o *GroupRepresentation) SetSubGroupCount(v int64) { + o.SubGroupCount = &v +} + +// GetSubGroups returns the SubGroups field value if set, zero value otherwise. +func (o *GroupRepresentation) GetSubGroups() []GroupRepresentation { + if o == nil || IsNil(o.SubGroups) { + var ret []GroupRepresentation + return ret + } + return o.SubGroups +} + +// GetSubGroupsOk returns a tuple with the SubGroups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRepresentation) GetSubGroupsOk() ([]GroupRepresentation, bool) { + if o == nil || IsNil(o.SubGroups) { + return nil, false + } + return o.SubGroups, true +} + +// HasSubGroups returns a boolean if a field has been set. +func (o *GroupRepresentation) HasSubGroups() bool { + if o != nil && !IsNil(o.SubGroups) { + return true + } + + return false +} + +// SetSubGroups gets a reference to the given []GroupRepresentation and assigns it to the SubGroups field. +func (o *GroupRepresentation) SetSubGroups(v []GroupRepresentation) { + o.SubGroups = v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GroupRepresentation) GetAttributes() map[string][]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string][]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRepresentation) GetAttributesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GroupRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string][]string and assigns it to the Attributes field. +func (o *GroupRepresentation) SetAttributes(v map[string][]string) { + o.Attributes = &v +} + +// GetRealmRoles returns the RealmRoles field value if set, zero value otherwise. +func (o *GroupRepresentation) GetRealmRoles() []string { + if o == nil || IsNil(o.RealmRoles) { + var ret []string + return ret + } + return o.RealmRoles +} + +// GetRealmRolesOk returns a tuple with the RealmRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRepresentation) GetRealmRolesOk() ([]string, bool) { + if o == nil || IsNil(o.RealmRoles) { + return nil, false + } + return o.RealmRoles, true +} + +// HasRealmRoles returns a boolean if a field has been set. +func (o *GroupRepresentation) HasRealmRoles() bool { + if o != nil && !IsNil(o.RealmRoles) { + return true + } + + return false +} + +// SetRealmRoles gets a reference to the given []string and assigns it to the RealmRoles field. +func (o *GroupRepresentation) SetRealmRoles(v []string) { + o.RealmRoles = v +} + +// GetClientRoles returns the ClientRoles field value if set, zero value otherwise. +func (o *GroupRepresentation) GetClientRoles() map[string][]string { + if o == nil || IsNil(o.ClientRoles) { + var ret map[string][]string + return ret + } + return *o.ClientRoles +} + +// GetClientRolesOk returns a tuple with the ClientRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRepresentation) GetClientRolesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.ClientRoles) { + return nil, false + } + return o.ClientRoles, true +} + +// HasClientRoles returns a boolean if a field has been set. +func (o *GroupRepresentation) HasClientRoles() bool { + if o != nil && !IsNil(o.ClientRoles) { + return true + } + + return false +} + +// SetClientRoles gets a reference to the given map[string][]string and assigns it to the ClientRoles field. +func (o *GroupRepresentation) SetClientRoles(v map[string][]string) { + o.ClientRoles = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *GroupRepresentation) GetAccess() map[string]bool { + if o == nil || IsNil(o.Access) { + var ret map[string]bool + 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 *GroupRepresentation) GetAccessOk() (*map[string]bool, 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 *GroupRepresentation) HasAccess() bool { + if o != nil && !IsNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given map[string]bool and assigns it to the Access field. +func (o *GroupRepresentation) SetAccess(v map[string]bool) { + o.Access = &v +} + +func (o GroupRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRepresentation) 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.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.ParentId) { + toSerialize["parentId"] = o.ParentId + } + if !IsNil(o.SubGroupCount) { + toSerialize["subGroupCount"] = o.SubGroupCount + } + if !IsNil(o.SubGroups) { + toSerialize["subGroups"] = o.SubGroups + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.RealmRoles) { + toSerialize["realmRoles"] = o.RealmRoles + } + if !IsNil(o.ClientRoles) { + toSerialize["clientRoles"] = o.ClientRoles + } + if !IsNil(o.Access) { + toSerialize["access"] = o.Access + } + return toSerialize, nil +} + +type NullableGroupRepresentation struct { + value *GroupRepresentation + isSet bool +} + +func (v NullableGroupRepresentation) Get() *GroupRepresentation { + return v.value +} + +func (v *NullableGroupRepresentation) Set(val *GroupRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRepresentation(val *GroupRepresentation) *NullableGroupRepresentation { + return &NullableGroupRepresentation{value: val, isSet: true} +} + +func (v NullableGroupRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_id_token.go b/model_id_token.go new file mode 100644 index 0000000..79b713c --- /dev/null +++ b/model_id_token.go @@ -0,0 +1,1384 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the IDToken type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IDToken{} + +// IDToken struct for IDToken +type IDToken struct { + Jti *string `json:"jti,omitempty"` + Exp *int64 `json:"exp,omitempty"` + Nbf *int64 `json:"nbf,omitempty"` + Iat *int64 `json:"iat,omitempty"` + Iss *string `json:"iss,omitempty"` + Sub *string `json:"sub,omitempty"` + Typ *string `json:"typ,omitempty"` + Azp *string `json:"azp,omitempty"` + OtherClaims map[string]interface{} `json:"otherClaims,omitempty"` + Nonce *string `json:"nonce,omitempty"` + AuthTime *int64 `json:"auth_time,omitempty"` + Sid *string `json:"sid,omitempty"` + AtHash *string `json:"at_hash,omitempty"` + CHash *string `json:"c_hash,omitempty"` + Name *string `json:"name,omitempty"` + GivenName *string `json:"given_name,omitempty"` + FamilyName *string `json:"family_name,omitempty"` + MiddleName *string `json:"middle_name,omitempty"` + Nickname *string `json:"nickname,omitempty"` + PreferredUsername *string `json:"preferred_username,omitempty"` + Profile *string `json:"profile,omitempty"` + Picture *string `json:"picture,omitempty"` + Website *string `json:"website,omitempty"` + Email *string `json:"email,omitempty"` + EmailVerified *bool `json:"email_verified,omitempty"` + Gender *string `json:"gender,omitempty"` + Birthdate *string `json:"birthdate,omitempty"` + Zoneinfo *string `json:"zoneinfo,omitempty"` + Locale *string `json:"locale,omitempty"` + PhoneNumber *string `json:"phone_number,omitempty"` + PhoneNumberVerified *bool `json:"phone_number_verified,omitempty"` + Address *AddressClaimSet `json:"address,omitempty"` + UpdatedAt *int64 `json:"updated_at,omitempty"` + ClaimsLocales *string `json:"claims_locales,omitempty"` + Acr *string `json:"acr,omitempty"` + SHash *string `json:"s_hash,omitempty"` +} + +// NewIDToken instantiates a new IDToken object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIDToken() *IDToken { + this := IDToken{} + return &this +} + +// NewIDTokenWithDefaults instantiates a new IDToken object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIDTokenWithDefaults() *IDToken { + this := IDToken{} + return &this +} + +// GetJti returns the Jti field value if set, zero value otherwise. +func (o *IDToken) GetJti() string { + if o == nil || IsNil(o.Jti) { + var ret string + return ret + } + return *o.Jti +} + +// GetJtiOk returns a tuple with the Jti field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetJtiOk() (*string, bool) { + if o == nil || IsNil(o.Jti) { + return nil, false + } + return o.Jti, true +} + +// HasJti returns a boolean if a field has been set. +func (o *IDToken) HasJti() bool { + if o != nil && !IsNil(o.Jti) { + return true + } + + return false +} + +// SetJti gets a reference to the given string and assigns it to the Jti field. +func (o *IDToken) SetJti(v string) { + o.Jti = &v +} + +// GetExp returns the Exp field value if set, zero value otherwise. +func (o *IDToken) GetExp() int64 { + if o == nil || IsNil(o.Exp) { + var ret int64 + return ret + } + return *o.Exp +} + +// GetExpOk returns a tuple with the Exp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetExpOk() (*int64, bool) { + if o == nil || IsNil(o.Exp) { + return nil, false + } + return o.Exp, true +} + +// HasExp returns a boolean if a field has been set. +func (o *IDToken) HasExp() bool { + if o != nil && !IsNil(o.Exp) { + return true + } + + return false +} + +// SetExp gets a reference to the given int64 and assigns it to the Exp field. +func (o *IDToken) SetExp(v int64) { + o.Exp = &v +} + +// GetNbf returns the Nbf field value if set, zero value otherwise. +func (o *IDToken) GetNbf() int64 { + if o == nil || IsNil(o.Nbf) { + var ret int64 + return ret + } + return *o.Nbf +} + +// GetNbfOk returns a tuple with the Nbf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetNbfOk() (*int64, bool) { + if o == nil || IsNil(o.Nbf) { + return nil, false + } + return o.Nbf, true +} + +// HasNbf returns a boolean if a field has been set. +func (o *IDToken) HasNbf() bool { + if o != nil && !IsNil(o.Nbf) { + return true + } + + return false +} + +// SetNbf gets a reference to the given int64 and assigns it to the Nbf field. +func (o *IDToken) SetNbf(v int64) { + o.Nbf = &v +} + +// GetIat returns the Iat field value if set, zero value otherwise. +func (o *IDToken) GetIat() int64 { + if o == nil || IsNil(o.Iat) { + var ret int64 + return ret + } + return *o.Iat +} + +// GetIatOk returns a tuple with the Iat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetIatOk() (*int64, bool) { + if o == nil || IsNil(o.Iat) { + return nil, false + } + return o.Iat, true +} + +// HasIat returns a boolean if a field has been set. +func (o *IDToken) HasIat() bool { + if o != nil && !IsNil(o.Iat) { + return true + } + + return false +} + +// SetIat gets a reference to the given int64 and assigns it to the Iat field. +func (o *IDToken) SetIat(v int64) { + o.Iat = &v +} + +// GetIss returns the Iss field value if set, zero value otherwise. +func (o *IDToken) GetIss() string { + if o == nil || IsNil(o.Iss) { + var ret string + return ret + } + return *o.Iss +} + +// GetIssOk returns a tuple with the Iss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetIssOk() (*string, bool) { + if o == nil || IsNil(o.Iss) { + return nil, false + } + return o.Iss, true +} + +// HasIss returns a boolean if a field has been set. +func (o *IDToken) HasIss() bool { + if o != nil && !IsNil(o.Iss) { + return true + } + + return false +} + +// SetIss gets a reference to the given string and assigns it to the Iss field. +func (o *IDToken) SetIss(v string) { + o.Iss = &v +} + +// GetSub returns the Sub field value if set, zero value otherwise. +func (o *IDToken) GetSub() string { + if o == nil || IsNil(o.Sub) { + var ret string + return ret + } + return *o.Sub +} + +// GetSubOk returns a tuple with the Sub field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetSubOk() (*string, bool) { + if o == nil || IsNil(o.Sub) { + return nil, false + } + return o.Sub, true +} + +// HasSub returns a boolean if a field has been set. +func (o *IDToken) HasSub() bool { + if o != nil && !IsNil(o.Sub) { + return true + } + + return false +} + +// SetSub gets a reference to the given string and assigns it to the Sub field. +func (o *IDToken) SetSub(v string) { + o.Sub = &v +} + +// GetTyp returns the Typ field value if set, zero value otherwise. +func (o *IDToken) GetTyp() string { + if o == nil || IsNil(o.Typ) { + var ret string + return ret + } + return *o.Typ +} + +// GetTypOk returns a tuple with the Typ field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetTypOk() (*string, bool) { + if o == nil || IsNil(o.Typ) { + return nil, false + } + return o.Typ, true +} + +// HasTyp returns a boolean if a field has been set. +func (o *IDToken) HasTyp() bool { + if o != nil && !IsNil(o.Typ) { + return true + } + + return false +} + +// SetTyp gets a reference to the given string and assigns it to the Typ field. +func (o *IDToken) SetTyp(v string) { + o.Typ = &v +} + +// GetAzp returns the Azp field value if set, zero value otherwise. +func (o *IDToken) GetAzp() string { + if o == nil || IsNil(o.Azp) { + var ret string + return ret + } + return *o.Azp +} + +// GetAzpOk returns a tuple with the Azp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetAzpOk() (*string, bool) { + if o == nil || IsNil(o.Azp) { + return nil, false + } + return o.Azp, true +} + +// HasAzp returns a boolean if a field has been set. +func (o *IDToken) HasAzp() bool { + if o != nil && !IsNil(o.Azp) { + return true + } + + return false +} + +// SetAzp gets a reference to the given string and assigns it to the Azp field. +func (o *IDToken) SetAzp(v string) { + o.Azp = &v +} + +// GetOtherClaims returns the OtherClaims field value if set, zero value otherwise. +func (o *IDToken) GetOtherClaims() map[string]interface{} { + if o == nil || IsNil(o.OtherClaims) { + var ret map[string]interface{} + return ret + } + return o.OtherClaims +} + +// GetOtherClaimsOk returns a tuple with the OtherClaims field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetOtherClaimsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.OtherClaims) { + return map[string]interface{}{}, false + } + return o.OtherClaims, true +} + +// HasOtherClaims returns a boolean if a field has been set. +func (o *IDToken) HasOtherClaims() bool { + if o != nil && !IsNil(o.OtherClaims) { + return true + } + + return false +} + +// SetOtherClaims gets a reference to the given map[string]interface{} and assigns it to the OtherClaims field. +func (o *IDToken) SetOtherClaims(v map[string]interface{}) { + o.OtherClaims = v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *IDToken) GetNonce() string { + if o == nil || IsNil(o.Nonce) { + var ret string + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetNonceOk() (*string, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *IDToken) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given string and assigns it to the Nonce field. +func (o *IDToken) SetNonce(v string) { + o.Nonce = &v +} + +// GetAuthTime returns the AuthTime field value if set, zero value otherwise. +func (o *IDToken) GetAuthTime() int64 { + if o == nil || IsNil(o.AuthTime) { + var ret int64 + return ret + } + return *o.AuthTime +} + +// GetAuthTimeOk returns a tuple with the AuthTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetAuthTimeOk() (*int64, bool) { + if o == nil || IsNil(o.AuthTime) { + return nil, false + } + return o.AuthTime, true +} + +// HasAuthTime returns a boolean if a field has been set. +func (o *IDToken) HasAuthTime() bool { + if o != nil && !IsNil(o.AuthTime) { + return true + } + + return false +} + +// SetAuthTime gets a reference to the given int64 and assigns it to the AuthTime field. +func (o *IDToken) SetAuthTime(v int64) { + o.AuthTime = &v +} + +// GetSid returns the Sid field value if set, zero value otherwise. +func (o *IDToken) 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 *IDToken) 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 *IDToken) 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 *IDToken) SetSid(v string) { + o.Sid = &v +} + +// GetAtHash returns the AtHash field value if set, zero value otherwise. +func (o *IDToken) GetAtHash() string { + if o == nil || IsNil(o.AtHash) { + var ret string + return ret + } + return *o.AtHash +} + +// GetAtHashOk returns a tuple with the AtHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetAtHashOk() (*string, bool) { + if o == nil || IsNil(o.AtHash) { + return nil, false + } + return o.AtHash, true +} + +// HasAtHash returns a boolean if a field has been set. +func (o *IDToken) HasAtHash() bool { + if o != nil && !IsNil(o.AtHash) { + return true + } + + return false +} + +// SetAtHash gets a reference to the given string and assigns it to the AtHash field. +func (o *IDToken) SetAtHash(v string) { + o.AtHash = &v +} + +// GetCHash returns the CHash field value if set, zero value otherwise. +func (o *IDToken) GetCHash() string { + if o == nil || IsNil(o.CHash) { + var ret string + return ret + } + return *o.CHash +} + +// GetCHashOk returns a tuple with the CHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetCHashOk() (*string, bool) { + if o == nil || IsNil(o.CHash) { + return nil, false + } + return o.CHash, true +} + +// HasCHash returns a boolean if a field has been set. +func (o *IDToken) HasCHash() bool { + if o != nil && !IsNil(o.CHash) { + return true + } + + return false +} + +// SetCHash gets a reference to the given string and assigns it to the CHash field. +func (o *IDToken) SetCHash(v string) { + o.CHash = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *IDToken) 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 *IDToken) 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 *IDToken) 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 *IDToken) SetName(v string) { + o.Name = &v +} + +// GetGivenName returns the GivenName field value if set, zero value otherwise. +func (o *IDToken) GetGivenName() string { + if o == nil || IsNil(o.GivenName) { + var ret string + return ret + } + return *o.GivenName +} + +// GetGivenNameOk returns a tuple with the GivenName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetGivenNameOk() (*string, bool) { + if o == nil || IsNil(o.GivenName) { + return nil, false + } + return o.GivenName, true +} + +// HasGivenName returns a boolean if a field has been set. +func (o *IDToken) HasGivenName() bool { + if o != nil && !IsNil(o.GivenName) { + return true + } + + return false +} + +// SetGivenName gets a reference to the given string and assigns it to the GivenName field. +func (o *IDToken) SetGivenName(v string) { + o.GivenName = &v +} + +// GetFamilyName returns the FamilyName field value if set, zero value otherwise. +func (o *IDToken) GetFamilyName() string { + if o == nil || IsNil(o.FamilyName) { + var ret string + return ret + } + return *o.FamilyName +} + +// GetFamilyNameOk returns a tuple with the FamilyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetFamilyNameOk() (*string, bool) { + if o == nil || IsNil(o.FamilyName) { + return nil, false + } + return o.FamilyName, true +} + +// HasFamilyName returns a boolean if a field has been set. +func (o *IDToken) HasFamilyName() bool { + if o != nil && !IsNil(o.FamilyName) { + return true + } + + return false +} + +// SetFamilyName gets a reference to the given string and assigns it to the FamilyName field. +func (o *IDToken) SetFamilyName(v string) { + o.FamilyName = &v +} + +// GetMiddleName returns the MiddleName field value if set, zero value otherwise. +func (o *IDToken) GetMiddleName() string { + if o == nil || IsNil(o.MiddleName) { + var ret string + return ret + } + return *o.MiddleName +} + +// GetMiddleNameOk returns a tuple with the MiddleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetMiddleNameOk() (*string, bool) { + if o == nil || IsNil(o.MiddleName) { + return nil, false + } + return o.MiddleName, true +} + +// HasMiddleName returns a boolean if a field has been set. +func (o *IDToken) HasMiddleName() bool { + if o != nil && !IsNil(o.MiddleName) { + return true + } + + return false +} + +// SetMiddleName gets a reference to the given string and assigns it to the MiddleName field. +func (o *IDToken) SetMiddleName(v string) { + o.MiddleName = &v +} + +// GetNickname returns the Nickname field value if set, zero value otherwise. +func (o *IDToken) GetNickname() string { + if o == nil || IsNil(o.Nickname) { + var ret string + return ret + } + return *o.Nickname +} + +// GetNicknameOk returns a tuple with the Nickname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetNicknameOk() (*string, bool) { + if o == nil || IsNil(o.Nickname) { + return nil, false + } + return o.Nickname, true +} + +// HasNickname returns a boolean if a field has been set. +func (o *IDToken) HasNickname() bool { + if o != nil && !IsNil(o.Nickname) { + return true + } + + return false +} + +// SetNickname gets a reference to the given string and assigns it to the Nickname field. +func (o *IDToken) SetNickname(v string) { + o.Nickname = &v +} + +// GetPreferredUsername returns the PreferredUsername field value if set, zero value otherwise. +func (o *IDToken) GetPreferredUsername() string { + if o == nil || IsNil(o.PreferredUsername) { + var ret string + return ret + } + return *o.PreferredUsername +} + +// GetPreferredUsernameOk returns a tuple with the PreferredUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetPreferredUsernameOk() (*string, bool) { + if o == nil || IsNil(o.PreferredUsername) { + return nil, false + } + return o.PreferredUsername, true +} + +// HasPreferredUsername returns a boolean if a field has been set. +func (o *IDToken) HasPreferredUsername() bool { + if o != nil && !IsNil(o.PreferredUsername) { + return true + } + + return false +} + +// SetPreferredUsername gets a reference to the given string and assigns it to the PreferredUsername field. +func (o *IDToken) SetPreferredUsername(v string) { + o.PreferredUsername = &v +} + +// GetProfile returns the Profile field value if set, zero value otherwise. +func (o *IDToken) GetProfile() string { + if o == nil || IsNil(o.Profile) { + var ret string + return ret + } + return *o.Profile +} + +// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetProfileOk() (*string, bool) { + if o == nil || IsNil(o.Profile) { + return nil, false + } + return o.Profile, true +} + +// HasProfile returns a boolean if a field has been set. +func (o *IDToken) HasProfile() bool { + if o != nil && !IsNil(o.Profile) { + return true + } + + return false +} + +// SetProfile gets a reference to the given string and assigns it to the Profile field. +func (o *IDToken) SetProfile(v string) { + o.Profile = &v +} + +// GetPicture returns the Picture field value if set, zero value otherwise. +func (o *IDToken) GetPicture() string { + if o == nil || IsNil(o.Picture) { + var ret string + return ret + } + return *o.Picture +} + +// GetPictureOk returns a tuple with the Picture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetPictureOk() (*string, bool) { + if o == nil || IsNil(o.Picture) { + return nil, false + } + return o.Picture, true +} + +// HasPicture returns a boolean if a field has been set. +func (o *IDToken) HasPicture() bool { + if o != nil && !IsNil(o.Picture) { + return true + } + + return false +} + +// SetPicture gets a reference to the given string and assigns it to the Picture field. +func (o *IDToken) SetPicture(v string) { + o.Picture = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *IDToken) GetWebsite() string { + if o == nil || IsNil(o.Website) { + var ret string + return ret + } + return *o.Website +} + +// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetWebsiteOk() (*string, bool) { + if o == nil || IsNil(o.Website) { + return nil, false + } + return o.Website, true +} + +// HasWebsite returns a boolean if a field has been set. +func (o *IDToken) HasWebsite() bool { + if o != nil && !IsNil(o.Website) { + return true + } + + return false +} + +// SetWebsite gets a reference to the given string and assigns it to the Website field. +func (o *IDToken) SetWebsite(v string) { + o.Website = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *IDToken) 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 *IDToken) 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 *IDToken) 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 *IDToken) SetEmail(v string) { + o.Email = &v +} + +// GetEmailVerified returns the EmailVerified field value if set, zero value otherwise. +func (o *IDToken) GetEmailVerified() bool { + if o == nil || IsNil(o.EmailVerified) { + var ret bool + return ret + } + return *o.EmailVerified +} + +// GetEmailVerifiedOk returns a tuple with the EmailVerified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetEmailVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.EmailVerified) { + return nil, false + } + return o.EmailVerified, true +} + +// HasEmailVerified returns a boolean if a field has been set. +func (o *IDToken) HasEmailVerified() bool { + if o != nil && !IsNil(o.EmailVerified) { + return true + } + + return false +} + +// SetEmailVerified gets a reference to the given bool and assigns it to the EmailVerified field. +func (o *IDToken) SetEmailVerified(v bool) { + o.EmailVerified = &v +} + +// GetGender returns the Gender field value if set, zero value otherwise. +func (o *IDToken) GetGender() string { + if o == nil || IsNil(o.Gender) { + var ret string + return ret + } + return *o.Gender +} + +// GetGenderOk returns a tuple with the Gender field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetGenderOk() (*string, bool) { + if o == nil || IsNil(o.Gender) { + return nil, false + } + return o.Gender, true +} + +// HasGender returns a boolean if a field has been set. +func (o *IDToken) HasGender() bool { + if o != nil && !IsNil(o.Gender) { + return true + } + + return false +} + +// SetGender gets a reference to the given string and assigns it to the Gender field. +func (o *IDToken) SetGender(v string) { + o.Gender = &v +} + +// GetBirthdate returns the Birthdate field value if set, zero value otherwise. +func (o *IDToken) GetBirthdate() string { + if o == nil || IsNil(o.Birthdate) { + var ret string + return ret + } + return *o.Birthdate +} + +// GetBirthdateOk returns a tuple with the Birthdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetBirthdateOk() (*string, bool) { + if o == nil || IsNil(o.Birthdate) { + return nil, false + } + return o.Birthdate, true +} + +// HasBirthdate returns a boolean if a field has been set. +func (o *IDToken) HasBirthdate() bool { + if o != nil && !IsNil(o.Birthdate) { + return true + } + + return false +} + +// SetBirthdate gets a reference to the given string and assigns it to the Birthdate field. +func (o *IDToken) SetBirthdate(v string) { + o.Birthdate = &v +} + +// GetZoneinfo returns the Zoneinfo field value if set, zero value otherwise. +func (o *IDToken) GetZoneinfo() string { + if o == nil || IsNil(o.Zoneinfo) { + var ret string + return ret + } + return *o.Zoneinfo +} + +// GetZoneinfoOk returns a tuple with the Zoneinfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetZoneinfoOk() (*string, bool) { + if o == nil || IsNil(o.Zoneinfo) { + return nil, false + } + return o.Zoneinfo, true +} + +// HasZoneinfo returns a boolean if a field has been set. +func (o *IDToken) HasZoneinfo() bool { + if o != nil && !IsNil(o.Zoneinfo) { + return true + } + + return false +} + +// SetZoneinfo gets a reference to the given string and assigns it to the Zoneinfo field. +func (o *IDToken) SetZoneinfo(v string) { + o.Zoneinfo = &v +} + +// GetLocale returns the Locale field value if set, zero value otherwise. +func (o *IDToken) GetLocale() string { + if o == nil || IsNil(o.Locale) { + var ret string + return ret + } + return *o.Locale +} + +// GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetLocaleOk() (*string, bool) { + if o == nil || IsNil(o.Locale) { + return nil, false + } + return o.Locale, true +} + +// HasLocale returns a boolean if a field has been set. +func (o *IDToken) HasLocale() bool { + if o != nil && !IsNil(o.Locale) { + return true + } + + return false +} + +// SetLocale gets a reference to the given string and assigns it to the Locale field. +func (o *IDToken) SetLocale(v string) { + o.Locale = &v +} + +// GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise. +func (o *IDToken) GetPhoneNumber() string { + if o == nil || IsNil(o.PhoneNumber) { + var ret string + return ret + } + return *o.PhoneNumber +} + +// GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetPhoneNumberOk() (*string, bool) { + if o == nil || IsNil(o.PhoneNumber) { + return nil, false + } + return o.PhoneNumber, true +} + +// HasPhoneNumber returns a boolean if a field has been set. +func (o *IDToken) HasPhoneNumber() bool { + if o != nil && !IsNil(o.PhoneNumber) { + return true + } + + return false +} + +// SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field. +func (o *IDToken) SetPhoneNumber(v string) { + o.PhoneNumber = &v +} + +// GetPhoneNumberVerified returns the PhoneNumberVerified field value if set, zero value otherwise. +func (o *IDToken) GetPhoneNumberVerified() bool { + if o == nil || IsNil(o.PhoneNumberVerified) { + var ret bool + return ret + } + return *o.PhoneNumberVerified +} + +// GetPhoneNumberVerifiedOk returns a tuple with the PhoneNumberVerified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetPhoneNumberVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.PhoneNumberVerified) { + return nil, false + } + return o.PhoneNumberVerified, true +} + +// HasPhoneNumberVerified returns a boolean if a field has been set. +func (o *IDToken) HasPhoneNumberVerified() bool { + if o != nil && !IsNil(o.PhoneNumberVerified) { + return true + } + + return false +} + +// SetPhoneNumberVerified gets a reference to the given bool and assigns it to the PhoneNumberVerified field. +func (o *IDToken) SetPhoneNumberVerified(v bool) { + o.PhoneNumberVerified = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *IDToken) GetAddress() AddressClaimSet { + if o == nil || IsNil(o.Address) { + var ret AddressClaimSet + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetAddressOk() (*AddressClaimSet, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *IDToken) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given AddressClaimSet and assigns it to the Address field. +func (o *IDToken) SetAddress(v AddressClaimSet) { + o.Address = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *IDToken) GetUpdatedAt() int64 { + if o == nil || IsNil(o.UpdatedAt) { + var ret int64 + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetUpdatedAtOk() (*int64, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *IDToken) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field. +func (o *IDToken) SetUpdatedAt(v int64) { + o.UpdatedAt = &v +} + +// GetClaimsLocales returns the ClaimsLocales field value if set, zero value otherwise. +func (o *IDToken) GetClaimsLocales() string { + if o == nil || IsNil(o.ClaimsLocales) { + var ret string + return ret + } + return *o.ClaimsLocales +} + +// GetClaimsLocalesOk returns a tuple with the ClaimsLocales field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetClaimsLocalesOk() (*string, bool) { + if o == nil || IsNil(o.ClaimsLocales) { + return nil, false + } + return o.ClaimsLocales, true +} + +// HasClaimsLocales returns a boolean if a field has been set. +func (o *IDToken) HasClaimsLocales() bool { + if o != nil && !IsNil(o.ClaimsLocales) { + return true + } + + return false +} + +// SetClaimsLocales gets a reference to the given string and assigns it to the ClaimsLocales field. +func (o *IDToken) SetClaimsLocales(v string) { + o.ClaimsLocales = &v +} + +// GetAcr returns the Acr field value if set, zero value otherwise. +func (o *IDToken) GetAcr() string { + if o == nil || IsNil(o.Acr) { + var ret string + return ret + } + return *o.Acr +} + +// GetAcrOk returns a tuple with the Acr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetAcrOk() (*string, bool) { + if o == nil || IsNil(o.Acr) { + return nil, false + } + return o.Acr, true +} + +// HasAcr returns a boolean if a field has been set. +func (o *IDToken) HasAcr() bool { + if o != nil && !IsNil(o.Acr) { + return true + } + + return false +} + +// SetAcr gets a reference to the given string and assigns it to the Acr field. +func (o *IDToken) SetAcr(v string) { + o.Acr = &v +} + +// GetSHash returns the SHash field value if set, zero value otherwise. +func (o *IDToken) GetSHash() string { + if o == nil || IsNil(o.SHash) { + var ret string + return ret + } + return *o.SHash +} + +// GetSHashOk returns a tuple with the SHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IDToken) GetSHashOk() (*string, bool) { + if o == nil || IsNil(o.SHash) { + return nil, false + } + return o.SHash, true +} + +// HasSHash returns a boolean if a field has been set. +func (o *IDToken) HasSHash() bool { + if o != nil && !IsNil(o.SHash) { + return true + } + + return false +} + +// SetSHash gets a reference to the given string and assigns it to the SHash field. +func (o *IDToken) SetSHash(v string) { + o.SHash = &v +} + +func (o IDToken) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IDToken) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Jti) { + toSerialize["jti"] = o.Jti + } + if !IsNil(o.Exp) { + toSerialize["exp"] = o.Exp + } + if !IsNil(o.Nbf) { + toSerialize["nbf"] = o.Nbf + } + if !IsNil(o.Iat) { + toSerialize["iat"] = o.Iat + } + if !IsNil(o.Iss) { + toSerialize["iss"] = o.Iss + } + if !IsNil(o.Sub) { + toSerialize["sub"] = o.Sub + } + if !IsNil(o.Typ) { + toSerialize["typ"] = o.Typ + } + if !IsNil(o.Azp) { + toSerialize["azp"] = o.Azp + } + if !IsNil(o.OtherClaims) { + toSerialize["otherClaims"] = o.OtherClaims + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.AuthTime) { + toSerialize["auth_time"] = o.AuthTime + } + if !IsNil(o.Sid) { + toSerialize["sid"] = o.Sid + } + if !IsNil(o.AtHash) { + toSerialize["at_hash"] = o.AtHash + } + if !IsNil(o.CHash) { + toSerialize["c_hash"] = o.CHash + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.GivenName) { + toSerialize["given_name"] = o.GivenName + } + if !IsNil(o.FamilyName) { + toSerialize["family_name"] = o.FamilyName + } + if !IsNil(o.MiddleName) { + toSerialize["middle_name"] = o.MiddleName + } + if !IsNil(o.Nickname) { + toSerialize["nickname"] = o.Nickname + } + if !IsNil(o.PreferredUsername) { + toSerialize["preferred_username"] = o.PreferredUsername + } + if !IsNil(o.Profile) { + toSerialize["profile"] = o.Profile + } + if !IsNil(o.Picture) { + toSerialize["picture"] = o.Picture + } + if !IsNil(o.Website) { + toSerialize["website"] = o.Website + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.EmailVerified) { + toSerialize["email_verified"] = o.EmailVerified + } + if !IsNil(o.Gender) { + toSerialize["gender"] = o.Gender + } + if !IsNil(o.Birthdate) { + toSerialize["birthdate"] = o.Birthdate + } + if !IsNil(o.Zoneinfo) { + toSerialize["zoneinfo"] = o.Zoneinfo + } + if !IsNil(o.Locale) { + toSerialize["locale"] = o.Locale + } + if !IsNil(o.PhoneNumber) { + toSerialize["phone_number"] = o.PhoneNumber + } + if !IsNil(o.PhoneNumberVerified) { + toSerialize["phone_number_verified"] = o.PhoneNumberVerified + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.ClaimsLocales) { + toSerialize["claims_locales"] = o.ClaimsLocales + } + if !IsNil(o.Acr) { + toSerialize["acr"] = o.Acr + } + if !IsNil(o.SHash) { + toSerialize["s_hash"] = o.SHash + } + return toSerialize, nil +} + +type NullableIDToken struct { + value *IDToken + isSet bool +} + +func (v NullableIDToken) Get() *IDToken { + return v.value +} + +func (v *NullableIDToken) Set(val *IDToken) { + v.value = val + v.isSet = true +} + +func (v NullableIDToken) IsSet() bool { + return v.isSet +} + +func (v *NullableIDToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIDToken(val *IDToken) *NullableIDToken { + return &NullableIDToken{value: val, isSet: true} +} + +func (v NullableIDToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIDToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_identity_provider_mapper_representation.go b/model_identity_provider_mapper_representation.go new file mode 100644 index 0000000..97d140d --- /dev/null +++ b/model_identity_provider_mapper_representation.go @@ -0,0 +1,268 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the IdentityProviderMapperRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderMapperRepresentation{} + +// IdentityProviderMapperRepresentation struct for IdentityProviderMapperRepresentation +type IdentityProviderMapperRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + IdentityProviderAlias *string `json:"identityProviderAlias,omitempty"` + IdentityProviderMapper *string `json:"identityProviderMapper,omitempty"` + Config *map[string]string `json:"config,omitempty"` +} + +// NewIdentityProviderMapperRepresentation instantiates a new IdentityProviderMapperRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderMapperRepresentation() *IdentityProviderMapperRepresentation { + this := IdentityProviderMapperRepresentation{} + return &this +} + +// NewIdentityProviderMapperRepresentationWithDefaults instantiates a new IdentityProviderMapperRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderMapperRepresentationWithDefaults() *IdentityProviderMapperRepresentation { + this := IdentityProviderMapperRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) 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 *IdentityProviderMapperRepresentation) SetName(v string) { + o.Name = &v +} + +// GetIdentityProviderAlias returns the IdentityProviderAlias field value if set, zero value otherwise. +func (o *IdentityProviderMapperRepresentation) GetIdentityProviderAlias() string { + if o == nil || IsNil(o.IdentityProviderAlias) { + var ret string + return ret + } + return *o.IdentityProviderAlias +} + +// GetIdentityProviderAliasOk returns a tuple with the IdentityProviderAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderMapperRepresentation) GetIdentityProviderAliasOk() (*string, bool) { + if o == nil || IsNil(o.IdentityProviderAlias) { + return nil, false + } + return o.IdentityProviderAlias, true +} + +// HasIdentityProviderAlias returns a boolean if a field has been set. +func (o *IdentityProviderMapperRepresentation) HasIdentityProviderAlias() bool { + if o != nil && !IsNil(o.IdentityProviderAlias) { + return true + } + + return false +} + +// SetIdentityProviderAlias gets a reference to the given string and assigns it to the IdentityProviderAlias field. +func (o *IdentityProviderMapperRepresentation) SetIdentityProviderAlias(v string) { + o.IdentityProviderAlias = &v +} + +// GetIdentityProviderMapper returns the IdentityProviderMapper field value if set, zero value otherwise. +func (o *IdentityProviderMapperRepresentation) GetIdentityProviderMapper() string { + if o == nil || IsNil(o.IdentityProviderMapper) { + var ret string + return ret + } + return *o.IdentityProviderMapper +} + +// GetIdentityProviderMapperOk returns a tuple with the IdentityProviderMapper field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderMapperRepresentation) GetIdentityProviderMapperOk() (*string, bool) { + if o == nil || IsNil(o.IdentityProviderMapper) { + return nil, false + } + return o.IdentityProviderMapper, true +} + +// HasIdentityProviderMapper returns a boolean if a field has been set. +func (o *IdentityProviderMapperRepresentation) HasIdentityProviderMapper() bool { + if o != nil && !IsNil(o.IdentityProviderMapper) { + return true + } + + return false +} + +// SetIdentityProviderMapper gets a reference to the given string and assigns it to the IdentityProviderMapper field. +func (o *IdentityProviderMapperRepresentation) SetIdentityProviderMapper(v string) { + o.IdentityProviderMapper = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *IdentityProviderMapperRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderMapperRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *IdentityProviderMapperRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *IdentityProviderMapperRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +func (o IdentityProviderMapperRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderMapperRepresentation) 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.IdentityProviderAlias) { + toSerialize["identityProviderAlias"] = o.IdentityProviderAlias + } + if !IsNil(o.IdentityProviderMapper) { + toSerialize["identityProviderMapper"] = o.IdentityProviderMapper + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableIdentityProviderMapperRepresentation struct { + value *IdentityProviderMapperRepresentation + isSet bool +} + +func (v NullableIdentityProviderMapperRepresentation) Get() *IdentityProviderMapperRepresentation { + return v.value +} + +func (v *NullableIdentityProviderMapperRepresentation) Set(val *IdentityProviderMapperRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderMapperRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderMapperRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderMapperRepresentation(val *IdentityProviderMapperRepresentation) *NullableIdentityProviderMapperRepresentation { + return &NullableIdentityProviderMapperRepresentation{value: val, isSet: true} +} + +func (v NullableIdentityProviderMapperRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderMapperRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_identity_provider_mapper_type_representation.go b/model_identity_provider_mapper_type_representation.go new file mode 100644 index 0000000..3054a08 --- /dev/null +++ b/model_identity_provider_mapper_type_representation.go @@ -0,0 +1,268 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the IdentityProviderMapperTypeRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderMapperTypeRepresentation{} + +// IdentityProviderMapperTypeRepresentation struct for IdentityProviderMapperTypeRepresentation +type IdentityProviderMapperTypeRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Category *string `json:"category,omitempty"` + HelpText *string `json:"helpText,omitempty"` + Properties []ConfigPropertyRepresentation `json:"properties,omitempty"` +} + +// NewIdentityProviderMapperTypeRepresentation instantiates a new IdentityProviderMapperTypeRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderMapperTypeRepresentation() *IdentityProviderMapperTypeRepresentation { + this := IdentityProviderMapperTypeRepresentation{} + return &this +} + +// NewIdentityProviderMapperTypeRepresentationWithDefaults instantiates a new IdentityProviderMapperTypeRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderMapperTypeRepresentationWithDefaults() *IdentityProviderMapperTypeRepresentation { + this := IdentityProviderMapperTypeRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) 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 *IdentityProviderMapperTypeRepresentation) SetName(v string) { + o.Name = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *IdentityProviderMapperTypeRepresentation) GetCategory() string { + if o == nil || IsNil(o.Category) { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderMapperTypeRepresentation) GetCategoryOk() (*string, bool) { + if o == nil || IsNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *IdentityProviderMapperTypeRepresentation) HasCategory() bool { + if o != nil && !IsNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *IdentityProviderMapperTypeRepresentation) SetCategory(v string) { + o.Category = &v +} + +// GetHelpText returns the HelpText field value if set, zero value otherwise. +func (o *IdentityProviderMapperTypeRepresentation) GetHelpText() string { + if o == nil || IsNil(o.HelpText) { + var ret string + return ret + } + return *o.HelpText +} + +// GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderMapperTypeRepresentation) GetHelpTextOk() (*string, bool) { + if o == nil || IsNil(o.HelpText) { + return nil, false + } + return o.HelpText, true +} + +// HasHelpText returns a boolean if a field has been set. +func (o *IdentityProviderMapperTypeRepresentation) HasHelpText() bool { + if o != nil && !IsNil(o.HelpText) { + return true + } + + return false +} + +// SetHelpText gets a reference to the given string and assigns it to the HelpText field. +func (o *IdentityProviderMapperTypeRepresentation) SetHelpText(v string) { + o.HelpText = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *IdentityProviderMapperTypeRepresentation) GetProperties() []ConfigPropertyRepresentation { + if o == nil || IsNil(o.Properties) { + var ret []ConfigPropertyRepresentation + 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 *IdentityProviderMapperTypeRepresentation) GetPropertiesOk() ([]ConfigPropertyRepresentation, 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 *IdentityProviderMapperTypeRepresentation) HasProperties() bool { + if o != nil && !IsNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []ConfigPropertyRepresentation and assigns it to the Properties field. +func (o *IdentityProviderMapperTypeRepresentation) SetProperties(v []ConfigPropertyRepresentation) { + o.Properties = v +} + +func (o IdentityProviderMapperTypeRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderMapperTypeRepresentation) 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.Category) { + toSerialize["category"] = o.Category + } + if !IsNil(o.HelpText) { + toSerialize["helpText"] = o.HelpText + } + if !IsNil(o.Properties) { + toSerialize["properties"] = o.Properties + } + return toSerialize, nil +} + +type NullableIdentityProviderMapperTypeRepresentation struct { + value *IdentityProviderMapperTypeRepresentation + isSet bool +} + +func (v NullableIdentityProviderMapperTypeRepresentation) Get() *IdentityProviderMapperTypeRepresentation { + return v.value +} + +func (v *NullableIdentityProviderMapperTypeRepresentation) Set(val *IdentityProviderMapperTypeRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderMapperTypeRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderMapperTypeRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderMapperTypeRepresentation(val *IdentityProviderMapperTypeRepresentation) *NullableIdentityProviderMapperTypeRepresentation { + return &NullableIdentityProviderMapperTypeRepresentation{value: val, isSet: true} +} + +func (v NullableIdentityProviderMapperTypeRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderMapperTypeRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_identity_provider_representation.go b/model_identity_provider_representation.go new file mode 100644 index 0000000..353fef9 --- /dev/null +++ b/model_identity_provider_representation.go @@ -0,0 +1,708 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the IdentityProviderRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderRepresentation{} + +// IdentityProviderRepresentation struct for IdentityProviderRepresentation +type IdentityProviderRepresentation struct { + Alias *string `json:"alias,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + InternalId *string `json:"internalId,omitempty"` + ProviderId *string `json:"providerId,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // Deprecated + UpdateProfileFirstLoginMode *string `json:"updateProfileFirstLoginMode,omitempty"` + TrustEmail *bool `json:"trustEmail,omitempty"` + StoreToken *bool `json:"storeToken,omitempty"` + AddReadTokenRoleOnCreate *bool `json:"addReadTokenRoleOnCreate,omitempty"` + AuthenticateByDefault *bool `json:"authenticateByDefault,omitempty"` + LinkOnly *bool `json:"linkOnly,omitempty"` + HideOnLogin *bool `json:"hideOnLogin,omitempty"` + FirstBrokerLoginFlowAlias *string `json:"firstBrokerLoginFlowAlias,omitempty"` + PostBrokerLoginFlowAlias *string `json:"postBrokerLoginFlowAlias,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + Config *map[string]string `json:"config,omitempty"` + // Deprecated + UpdateProfileFirstLogin *bool `json:"updateProfileFirstLogin,omitempty"` +} + +// NewIdentityProviderRepresentation instantiates a new IdentityProviderRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderRepresentation() *IdentityProviderRepresentation { + this := IdentityProviderRepresentation{} + return &this +} + +// NewIdentityProviderRepresentationWithDefaults instantiates a new IdentityProviderRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderRepresentationWithDefaults() *IdentityProviderRepresentation { + this := IdentityProviderRepresentation{} + return &this +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) SetAlias(v string) { + o.Alias = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetInternalId returns the InternalId field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetInternalId() string { + if o == nil || IsNil(o.InternalId) { + var ret string + return ret + } + return *o.InternalId +} + +// GetInternalIdOk returns a tuple with the InternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetInternalIdOk() (*string, bool) { + if o == nil || IsNil(o.InternalId) { + return nil, false + } + return o.InternalId, true +} + +// HasInternalId returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasInternalId() bool { + if o != nil && !IsNil(o.InternalId) { + return true + } + + return false +} + +// SetInternalId gets a reference to the given string and assigns it to the InternalId field. +func (o *IdentityProviderRepresentation) SetInternalId(v string) { + o.InternalId = &v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *IdentityProviderRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) 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 *IdentityProviderRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetUpdateProfileFirstLoginMode returns the UpdateProfileFirstLoginMode field value if set, zero value otherwise. +// Deprecated +func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLoginMode() string { + if o == nil || IsNil(o.UpdateProfileFirstLoginMode) { + var ret string + return ret + } + return *o.UpdateProfileFirstLoginMode +} + +// GetUpdateProfileFirstLoginModeOk returns a tuple with the UpdateProfileFirstLoginMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLoginModeOk() (*string, bool) { + if o == nil || IsNil(o.UpdateProfileFirstLoginMode) { + return nil, false + } + return o.UpdateProfileFirstLoginMode, true +} + +// HasUpdateProfileFirstLoginMode returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasUpdateProfileFirstLoginMode() bool { + if o != nil && !IsNil(o.UpdateProfileFirstLoginMode) { + return true + } + + return false +} + +// SetUpdateProfileFirstLoginMode gets a reference to the given string and assigns it to the UpdateProfileFirstLoginMode field. +// Deprecated +func (o *IdentityProviderRepresentation) SetUpdateProfileFirstLoginMode(v string) { + o.UpdateProfileFirstLoginMode = &v +} + +// GetTrustEmail returns the TrustEmail field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetTrustEmail() bool { + if o == nil || IsNil(o.TrustEmail) { + var ret bool + return ret + } + return *o.TrustEmail +} + +// GetTrustEmailOk returns a tuple with the TrustEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetTrustEmailOk() (*bool, bool) { + if o == nil || IsNil(o.TrustEmail) { + return nil, false + } + return o.TrustEmail, true +} + +// HasTrustEmail returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasTrustEmail() bool { + if o != nil && !IsNil(o.TrustEmail) { + return true + } + + return false +} + +// SetTrustEmail gets a reference to the given bool and assigns it to the TrustEmail field. +func (o *IdentityProviderRepresentation) SetTrustEmail(v bool) { + o.TrustEmail = &v +} + +// GetStoreToken returns the StoreToken field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetStoreToken() bool { + if o == nil || IsNil(o.StoreToken) { + var ret bool + return ret + } + return *o.StoreToken +} + +// GetStoreTokenOk returns a tuple with the StoreToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetStoreTokenOk() (*bool, bool) { + if o == nil || IsNil(o.StoreToken) { + return nil, false + } + return o.StoreToken, true +} + +// HasStoreToken returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasStoreToken() bool { + if o != nil && !IsNil(o.StoreToken) { + return true + } + + return false +} + +// SetStoreToken gets a reference to the given bool and assigns it to the StoreToken field. +func (o *IdentityProviderRepresentation) SetStoreToken(v bool) { + o.StoreToken = &v +} + +// GetAddReadTokenRoleOnCreate returns the AddReadTokenRoleOnCreate field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetAddReadTokenRoleOnCreate() bool { + if o == nil || IsNil(o.AddReadTokenRoleOnCreate) { + var ret bool + return ret + } + return *o.AddReadTokenRoleOnCreate +} + +// GetAddReadTokenRoleOnCreateOk returns a tuple with the AddReadTokenRoleOnCreate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetAddReadTokenRoleOnCreateOk() (*bool, bool) { + if o == nil || IsNil(o.AddReadTokenRoleOnCreate) { + return nil, false + } + return o.AddReadTokenRoleOnCreate, true +} + +// HasAddReadTokenRoleOnCreate returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasAddReadTokenRoleOnCreate() bool { + if o != nil && !IsNil(o.AddReadTokenRoleOnCreate) { + return true + } + + return false +} + +// SetAddReadTokenRoleOnCreate gets a reference to the given bool and assigns it to the AddReadTokenRoleOnCreate field. +func (o *IdentityProviderRepresentation) SetAddReadTokenRoleOnCreate(v bool) { + o.AddReadTokenRoleOnCreate = &v +} + +// GetAuthenticateByDefault returns the AuthenticateByDefault field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetAuthenticateByDefault() bool { + if o == nil || IsNil(o.AuthenticateByDefault) { + var ret bool + return ret + } + return *o.AuthenticateByDefault +} + +// GetAuthenticateByDefaultOk returns a tuple with the AuthenticateByDefault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetAuthenticateByDefaultOk() (*bool, bool) { + if o == nil || IsNil(o.AuthenticateByDefault) { + return nil, false + } + return o.AuthenticateByDefault, true +} + +// HasAuthenticateByDefault returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasAuthenticateByDefault() bool { + if o != nil && !IsNil(o.AuthenticateByDefault) { + return true + } + + return false +} + +// SetAuthenticateByDefault gets a reference to the given bool and assigns it to the AuthenticateByDefault field. +func (o *IdentityProviderRepresentation) SetAuthenticateByDefault(v bool) { + o.AuthenticateByDefault = &v +} + +// GetLinkOnly returns the LinkOnly field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetLinkOnly() bool { + if o == nil || IsNil(o.LinkOnly) { + var ret bool + return ret + } + return *o.LinkOnly +} + +// GetLinkOnlyOk returns a tuple with the LinkOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetLinkOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.LinkOnly) { + return nil, false + } + return o.LinkOnly, true +} + +// HasLinkOnly returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasLinkOnly() bool { + if o != nil && !IsNil(o.LinkOnly) { + return true + } + + return false +} + +// SetLinkOnly gets a reference to the given bool and assigns it to the LinkOnly field. +func (o *IdentityProviderRepresentation) SetLinkOnly(v bool) { + o.LinkOnly = &v +} + +// GetHideOnLogin returns the HideOnLogin field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetHideOnLogin() bool { + if o == nil || IsNil(o.HideOnLogin) { + var ret bool + return ret + } + return *o.HideOnLogin +} + +// GetHideOnLoginOk returns a tuple with the HideOnLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetHideOnLoginOk() (*bool, bool) { + if o == nil || IsNil(o.HideOnLogin) { + return nil, false + } + return o.HideOnLogin, true +} + +// HasHideOnLogin returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasHideOnLogin() bool { + if o != nil && !IsNil(o.HideOnLogin) { + return true + } + + return false +} + +// SetHideOnLogin gets a reference to the given bool and assigns it to the HideOnLogin field. +func (o *IdentityProviderRepresentation) SetHideOnLogin(v bool) { + o.HideOnLogin = &v +} + +// GetFirstBrokerLoginFlowAlias returns the FirstBrokerLoginFlowAlias field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetFirstBrokerLoginFlowAlias() string { + if o == nil || IsNil(o.FirstBrokerLoginFlowAlias) { + var ret string + return ret + } + return *o.FirstBrokerLoginFlowAlias +} + +// GetFirstBrokerLoginFlowAliasOk returns a tuple with the FirstBrokerLoginFlowAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetFirstBrokerLoginFlowAliasOk() (*string, bool) { + if o == nil || IsNil(o.FirstBrokerLoginFlowAlias) { + return nil, false + } + return o.FirstBrokerLoginFlowAlias, true +} + +// HasFirstBrokerLoginFlowAlias returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasFirstBrokerLoginFlowAlias() bool { + if o != nil && !IsNil(o.FirstBrokerLoginFlowAlias) { + return true + } + + return false +} + +// SetFirstBrokerLoginFlowAlias gets a reference to the given string and assigns it to the FirstBrokerLoginFlowAlias field. +func (o *IdentityProviderRepresentation) SetFirstBrokerLoginFlowAlias(v string) { + o.FirstBrokerLoginFlowAlias = &v +} + +// GetPostBrokerLoginFlowAlias returns the PostBrokerLoginFlowAlias field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetPostBrokerLoginFlowAlias() string { + if o == nil || IsNil(o.PostBrokerLoginFlowAlias) { + var ret string + return ret + } + return *o.PostBrokerLoginFlowAlias +} + +// GetPostBrokerLoginFlowAliasOk returns a tuple with the PostBrokerLoginFlowAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetPostBrokerLoginFlowAliasOk() (*string, bool) { + if o == nil || IsNil(o.PostBrokerLoginFlowAlias) { + return nil, false + } + return o.PostBrokerLoginFlowAlias, true +} + +// HasPostBrokerLoginFlowAlias returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasPostBrokerLoginFlowAlias() bool { + if o != nil && !IsNil(o.PostBrokerLoginFlowAlias) { + return true + } + + return false +} + +// SetPostBrokerLoginFlowAlias gets a reference to the given string and assigns it to the PostBrokerLoginFlowAlias field. +func (o *IdentityProviderRepresentation) SetPostBrokerLoginFlowAlias(v string) { + o.PostBrokerLoginFlowAlias = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetOrganizationId() string { + if o == nil || IsNil(o.OrganizationId) { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetOrganizationIdOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationId) { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasOrganizationId() bool { + if o != nil && !IsNil(o.OrganizationId) { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *IdentityProviderRepresentation) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *IdentityProviderRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *IdentityProviderRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +// GetUpdateProfileFirstLogin returns the UpdateProfileFirstLogin field value if set, zero value otherwise. +// Deprecated +func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLogin() bool { + if o == nil || IsNil(o.UpdateProfileFirstLogin) { + var ret bool + return ret + } + return *o.UpdateProfileFirstLogin +} + +// GetUpdateProfileFirstLoginOk returns a tuple with the UpdateProfileFirstLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *IdentityProviderRepresentation) GetUpdateProfileFirstLoginOk() (*bool, bool) { + if o == nil || IsNil(o.UpdateProfileFirstLogin) { + return nil, false + } + return o.UpdateProfileFirstLogin, true +} + +// HasUpdateProfileFirstLogin returns a boolean if a field has been set. +func (o *IdentityProviderRepresentation) HasUpdateProfileFirstLogin() bool { + if o != nil && !IsNil(o.UpdateProfileFirstLogin) { + return true + } + + return false +} + +// SetUpdateProfileFirstLogin gets a reference to the given bool and assigns it to the UpdateProfileFirstLogin field. +// Deprecated +func (o *IdentityProviderRepresentation) SetUpdateProfileFirstLogin(v bool) { + o.UpdateProfileFirstLogin = &v +} + +func (o IdentityProviderRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.InternalId) { + toSerialize["internalId"] = o.InternalId + } + if !IsNil(o.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.UpdateProfileFirstLoginMode) { + toSerialize["updateProfileFirstLoginMode"] = o.UpdateProfileFirstLoginMode + } + if !IsNil(o.TrustEmail) { + toSerialize["trustEmail"] = o.TrustEmail + } + if !IsNil(o.StoreToken) { + toSerialize["storeToken"] = o.StoreToken + } + if !IsNil(o.AddReadTokenRoleOnCreate) { + toSerialize["addReadTokenRoleOnCreate"] = o.AddReadTokenRoleOnCreate + } + if !IsNil(o.AuthenticateByDefault) { + toSerialize["authenticateByDefault"] = o.AuthenticateByDefault + } + if !IsNil(o.LinkOnly) { + toSerialize["linkOnly"] = o.LinkOnly + } + if !IsNil(o.HideOnLogin) { + toSerialize["hideOnLogin"] = o.HideOnLogin + } + if !IsNil(o.FirstBrokerLoginFlowAlias) { + toSerialize["firstBrokerLoginFlowAlias"] = o.FirstBrokerLoginFlowAlias + } + if !IsNil(o.PostBrokerLoginFlowAlias) { + toSerialize["postBrokerLoginFlowAlias"] = o.PostBrokerLoginFlowAlias + } + if !IsNil(o.OrganizationId) { + toSerialize["organizationId"] = o.OrganizationId + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.UpdateProfileFirstLogin) { + toSerialize["updateProfileFirstLogin"] = o.UpdateProfileFirstLogin + } + return toSerialize, nil +} + +type NullableIdentityProviderRepresentation struct { + value *IdentityProviderRepresentation + isSet bool +} + +func (v NullableIdentityProviderRepresentation) Get() *IdentityProviderRepresentation { + return v.value +} + +func (v *NullableIdentityProviderRepresentation) Set(val *IdentityProviderRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderRepresentation(val *IdentityProviderRepresentation) *NullableIdentityProviderRepresentation { + return &NullableIdentityProviderRepresentation{value: val, isSet: true} +} + +func (v NullableIdentityProviderRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_installation_adapter_config.go b/model_installation_adapter_config.go new file mode 100644 index 0000000..28aeaba --- /dev/null +++ b/model_installation_adapter_config.go @@ -0,0 +1,520 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the InstallationAdapterConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstallationAdapterConfig{} + +// InstallationAdapterConfig struct for InstallationAdapterConfig +type InstallationAdapterConfig struct { + Realm *string `json:"realm,omitempty"` + RealmPublicKey *string `json:"realm-public-key,omitempty"` + AuthServerUrl *string `json:"auth-server-url,omitempty"` + SslRequired *string `json:"ssl-required,omitempty"` + BearerOnly *bool `json:"bearer-only,omitempty"` + Resource *string `json:"resource,omitempty"` + PublicClient *bool `json:"public-client,omitempty"` + VerifyTokenAudience *bool `json:"verify-token-audience,omitempty"` + Credentials map[string]interface{} `json:"credentials,omitempty"` + UseResourceRoleMappings *bool `json:"use-resource-role-mappings,omitempty"` + ConfidentialPort *int32 `json:"confidential-port,omitempty"` + PolicyEnforcer *PolicyEnforcerConfig `json:"policy-enforcer,omitempty"` +} + +// NewInstallationAdapterConfig instantiates a new InstallationAdapterConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInstallationAdapterConfig() *InstallationAdapterConfig { + this := InstallationAdapterConfig{} + return &this +} + +// NewInstallationAdapterConfigWithDefaults instantiates a new InstallationAdapterConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInstallationAdapterConfigWithDefaults() *InstallationAdapterConfig { + this := InstallationAdapterConfig{} + return &this +} + +// GetRealm returns the Realm field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetRealm() string { + if o == nil || IsNil(o.Realm) { + var ret string + return ret + } + return *o.Realm +} + +// GetRealmOk returns a tuple with the Realm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetRealmOk() (*string, bool) { + if o == nil || IsNil(o.Realm) { + return nil, false + } + return o.Realm, true +} + +// HasRealm returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasRealm() bool { + if o != nil && !IsNil(o.Realm) { + return true + } + + return false +} + +// SetRealm gets a reference to the given string and assigns it to the Realm field. +func (o *InstallationAdapterConfig) SetRealm(v string) { + o.Realm = &v +} + +// GetRealmPublicKey returns the RealmPublicKey field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetRealmPublicKey() string { + if o == nil || IsNil(o.RealmPublicKey) { + var ret string + return ret + } + return *o.RealmPublicKey +} + +// GetRealmPublicKeyOk returns a tuple with the RealmPublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetRealmPublicKeyOk() (*string, bool) { + if o == nil || IsNil(o.RealmPublicKey) { + return nil, false + } + return o.RealmPublicKey, true +} + +// HasRealmPublicKey returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasRealmPublicKey() bool { + if o != nil && !IsNil(o.RealmPublicKey) { + return true + } + + return false +} + +// SetRealmPublicKey gets a reference to the given string and assigns it to the RealmPublicKey field. +func (o *InstallationAdapterConfig) SetRealmPublicKey(v string) { + o.RealmPublicKey = &v +} + +// GetAuthServerUrl returns the AuthServerUrl field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetAuthServerUrl() string { + if o == nil || IsNil(o.AuthServerUrl) { + var ret string + return ret + } + return *o.AuthServerUrl +} + +// GetAuthServerUrlOk returns a tuple with the AuthServerUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetAuthServerUrlOk() (*string, bool) { + if o == nil || IsNil(o.AuthServerUrl) { + return nil, false + } + return o.AuthServerUrl, true +} + +// HasAuthServerUrl returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasAuthServerUrl() bool { + if o != nil && !IsNil(o.AuthServerUrl) { + return true + } + + return false +} + +// SetAuthServerUrl gets a reference to the given string and assigns it to the AuthServerUrl field. +func (o *InstallationAdapterConfig) SetAuthServerUrl(v string) { + o.AuthServerUrl = &v +} + +// GetSslRequired returns the SslRequired field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetSslRequired() string { + if o == nil || IsNil(o.SslRequired) { + var ret string + return ret + } + return *o.SslRequired +} + +// GetSslRequiredOk returns a tuple with the SslRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetSslRequiredOk() (*string, bool) { + if o == nil || IsNil(o.SslRequired) { + return nil, false + } + return o.SslRequired, true +} + +// HasSslRequired returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasSslRequired() bool { + if o != nil && !IsNil(o.SslRequired) { + return true + } + + return false +} + +// SetSslRequired gets a reference to the given string and assigns it to the SslRequired field. +func (o *InstallationAdapterConfig) SetSslRequired(v string) { + o.SslRequired = &v +} + +// GetBearerOnly returns the BearerOnly field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetBearerOnly() bool { + if o == nil || IsNil(o.BearerOnly) { + var ret bool + return ret + } + return *o.BearerOnly +} + +// GetBearerOnlyOk returns a tuple with the BearerOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetBearerOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.BearerOnly) { + return nil, false + } + return o.BearerOnly, true +} + +// HasBearerOnly returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasBearerOnly() bool { + if o != nil && !IsNil(o.BearerOnly) { + return true + } + + return false +} + +// SetBearerOnly gets a reference to the given bool and assigns it to the BearerOnly field. +func (o *InstallationAdapterConfig) SetBearerOnly(v bool) { + o.BearerOnly = &v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetResource() string { + if o == nil || IsNil(o.Resource) { + var ret string + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetResourceOk() (*string, bool) { + if o == nil || IsNil(o.Resource) { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given string and assigns it to the Resource field. +func (o *InstallationAdapterConfig) SetResource(v string) { + o.Resource = &v +} + +// GetPublicClient returns the PublicClient field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetPublicClient() bool { + if o == nil || IsNil(o.PublicClient) { + var ret bool + return ret + } + return *o.PublicClient +} + +// GetPublicClientOk returns a tuple with the PublicClient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetPublicClientOk() (*bool, bool) { + if o == nil || IsNil(o.PublicClient) { + return nil, false + } + return o.PublicClient, true +} + +// HasPublicClient returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasPublicClient() bool { + if o != nil && !IsNil(o.PublicClient) { + return true + } + + return false +} + +// SetPublicClient gets a reference to the given bool and assigns it to the PublicClient field. +func (o *InstallationAdapterConfig) SetPublicClient(v bool) { + o.PublicClient = &v +} + +// GetVerifyTokenAudience returns the VerifyTokenAudience field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetVerifyTokenAudience() bool { + if o == nil || IsNil(o.VerifyTokenAudience) { + var ret bool + return ret + } + return *o.VerifyTokenAudience +} + +// GetVerifyTokenAudienceOk returns a tuple with the VerifyTokenAudience field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetVerifyTokenAudienceOk() (*bool, bool) { + if o == nil || IsNil(o.VerifyTokenAudience) { + return nil, false + } + return o.VerifyTokenAudience, true +} + +// HasVerifyTokenAudience returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasVerifyTokenAudience() bool { + if o != nil && !IsNil(o.VerifyTokenAudience) { + return true + } + + return false +} + +// SetVerifyTokenAudience gets a reference to the given bool and assigns it to the VerifyTokenAudience field. +func (o *InstallationAdapterConfig) SetVerifyTokenAudience(v bool) { + o.VerifyTokenAudience = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetCredentials() map[string]interface{} { + if o == nil || IsNil(o.Credentials) { + var ret map[string]interface{} + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetCredentialsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Credentials) { + return map[string]interface{}{}, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given map[string]interface{} and assigns it to the Credentials field. +func (o *InstallationAdapterConfig) SetCredentials(v map[string]interface{}) { + o.Credentials = v +} + +// GetUseResourceRoleMappings returns the UseResourceRoleMappings field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetUseResourceRoleMappings() bool { + if o == nil || IsNil(o.UseResourceRoleMappings) { + var ret bool + return ret + } + return *o.UseResourceRoleMappings +} + +// GetUseResourceRoleMappingsOk returns a tuple with the UseResourceRoleMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetUseResourceRoleMappingsOk() (*bool, bool) { + if o == nil || IsNil(o.UseResourceRoleMappings) { + return nil, false + } + return o.UseResourceRoleMappings, true +} + +// HasUseResourceRoleMappings returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasUseResourceRoleMappings() bool { + if o != nil && !IsNil(o.UseResourceRoleMappings) { + return true + } + + return false +} + +// SetUseResourceRoleMappings gets a reference to the given bool and assigns it to the UseResourceRoleMappings field. +func (o *InstallationAdapterConfig) SetUseResourceRoleMappings(v bool) { + o.UseResourceRoleMappings = &v +} + +// GetConfidentialPort returns the ConfidentialPort field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetConfidentialPort() int32 { + if o == nil || IsNil(o.ConfidentialPort) { + var ret int32 + return ret + } + return *o.ConfidentialPort +} + +// GetConfidentialPortOk returns a tuple with the ConfidentialPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetConfidentialPortOk() (*int32, bool) { + if o == nil || IsNil(o.ConfidentialPort) { + return nil, false + } + return o.ConfidentialPort, true +} + +// HasConfidentialPort returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasConfidentialPort() bool { + if o != nil && !IsNil(o.ConfidentialPort) { + return true + } + + return false +} + +// SetConfidentialPort gets a reference to the given int32 and assigns it to the ConfidentialPort field. +func (o *InstallationAdapterConfig) SetConfidentialPort(v int32) { + o.ConfidentialPort = &v +} + +// GetPolicyEnforcer returns the PolicyEnforcer field value if set, zero value otherwise. +func (o *InstallationAdapterConfig) GetPolicyEnforcer() PolicyEnforcerConfig { + if o == nil || IsNil(o.PolicyEnforcer) { + var ret PolicyEnforcerConfig + return ret + } + return *o.PolicyEnforcer +} + +// GetPolicyEnforcerOk returns a tuple with the PolicyEnforcer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationAdapterConfig) GetPolicyEnforcerOk() (*PolicyEnforcerConfig, bool) { + if o == nil || IsNil(o.PolicyEnforcer) { + return nil, false + } + return o.PolicyEnforcer, true +} + +// HasPolicyEnforcer returns a boolean if a field has been set. +func (o *InstallationAdapterConfig) HasPolicyEnforcer() bool { + if o != nil && !IsNil(o.PolicyEnforcer) { + return true + } + + return false +} + +// SetPolicyEnforcer gets a reference to the given PolicyEnforcerConfig and assigns it to the PolicyEnforcer field. +func (o *InstallationAdapterConfig) SetPolicyEnforcer(v PolicyEnforcerConfig) { + o.PolicyEnforcer = &v +} + +func (o InstallationAdapterConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstallationAdapterConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Realm) { + toSerialize["realm"] = o.Realm + } + if !IsNil(o.RealmPublicKey) { + toSerialize["realm-public-key"] = o.RealmPublicKey + } + if !IsNil(o.AuthServerUrl) { + toSerialize["auth-server-url"] = o.AuthServerUrl + } + if !IsNil(o.SslRequired) { + toSerialize["ssl-required"] = o.SslRequired + } + if !IsNil(o.BearerOnly) { + toSerialize["bearer-only"] = o.BearerOnly + } + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + if !IsNil(o.PublicClient) { + toSerialize["public-client"] = o.PublicClient + } + if !IsNil(o.VerifyTokenAudience) { + toSerialize["verify-token-audience"] = o.VerifyTokenAudience + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.UseResourceRoleMappings) { + toSerialize["use-resource-role-mappings"] = o.UseResourceRoleMappings + } + if !IsNil(o.ConfidentialPort) { + toSerialize["confidential-port"] = o.ConfidentialPort + } + if !IsNil(o.PolicyEnforcer) { + toSerialize["policy-enforcer"] = o.PolicyEnforcer + } + return toSerialize, nil +} + +type NullableInstallationAdapterConfig struct { + value *InstallationAdapterConfig + isSet bool +} + +func (v NullableInstallationAdapterConfig) Get() *InstallationAdapterConfig { + return v.value +} + +func (v *NullableInstallationAdapterConfig) Set(val *InstallationAdapterConfig) { + v.value = val + v.isSet = true +} + +func (v NullableInstallationAdapterConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableInstallationAdapterConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstallationAdapterConfig(val *InstallationAdapterConfig) *NullableInstallationAdapterConfig { + return &NullableInstallationAdapterConfig{value: val, isSet: true} +} + +func (v NullableInstallationAdapterConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstallationAdapterConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_key_metadata_representation.go b/model_key_metadata_representation.go new file mode 100644 index 0000000..5414f24 --- /dev/null +++ b/model_key_metadata_representation.go @@ -0,0 +1,448 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the KeyMetadataRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyMetadataRepresentation{} + +// KeyMetadataRepresentation struct for KeyMetadataRepresentation +type KeyMetadataRepresentation struct { + ProviderId *string `json:"providerId,omitempty"` + ProviderPriority *int64 `json:"providerPriority,omitempty"` + Kid *string `json:"kid,omitempty"` + Status *string `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + Algorithm *string `json:"algorithm,omitempty"` + PublicKey *string `json:"publicKey,omitempty"` + Certificate *string `json:"certificate,omitempty"` + Use *KeyUse `json:"use,omitempty"` + ValidTo *int64 `json:"validTo,omitempty"` +} + +// NewKeyMetadataRepresentation instantiates a new KeyMetadataRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyMetadataRepresentation() *KeyMetadataRepresentation { + this := KeyMetadataRepresentation{} + return &this +} + +// NewKeyMetadataRepresentationWithDefaults instantiates a new KeyMetadataRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyMetadataRepresentationWithDefaults() *KeyMetadataRepresentation { + this := KeyMetadataRepresentation{} + return &this +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyMetadataRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *KeyMetadataRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *KeyMetadataRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetProviderPriority returns the ProviderPriority field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) GetProviderPriority() int64 { + if o == nil || IsNil(o.ProviderPriority) { + var ret int64 + return ret + } + return *o.ProviderPriority +} + +// GetProviderPriorityOk returns a tuple with the ProviderPriority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyMetadataRepresentation) GetProviderPriorityOk() (*int64, bool) { + if o == nil || IsNil(o.ProviderPriority) { + return nil, false + } + return o.ProviderPriority, true +} + +// HasProviderPriority returns a boolean if a field has been set. +func (o *KeyMetadataRepresentation) HasProviderPriority() bool { + if o != nil && !IsNil(o.ProviderPriority) { + return true + } + + return false +} + +// SetProviderPriority gets a reference to the given int64 and assigns it to the ProviderPriority field. +func (o *KeyMetadataRepresentation) SetProviderPriority(v int64) { + o.ProviderPriority = &v +} + +// GetKid returns the Kid field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) GetKid() string { + if o == nil || IsNil(o.Kid) { + var ret string + return ret + } + return *o.Kid +} + +// GetKidOk returns a tuple with the Kid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyMetadataRepresentation) GetKidOk() (*string, bool) { + if o == nil || IsNil(o.Kid) { + return nil, false + } + return o.Kid, true +} + +// HasKid returns a boolean if a field has been set. +func (o *KeyMetadataRepresentation) HasKid() bool { + if o != nil && !IsNil(o.Kid) { + return true + } + + return false +} + +// SetKid gets a reference to the given string and assigns it to the Kid field. +func (o *KeyMetadataRepresentation) SetKid(v string) { + o.Kid = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyMetadataRepresentation) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KeyMetadataRepresentation) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *KeyMetadataRepresentation) SetStatus(v string) { + o.Status = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) SetType(v string) { + o.Type = &v +} + +// GetAlgorithm returns the Algorithm field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) GetAlgorithm() string { + if o == nil || IsNil(o.Algorithm) { + var ret string + return ret + } + return *o.Algorithm +} + +// GetAlgorithmOk returns a tuple with the Algorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyMetadataRepresentation) GetAlgorithmOk() (*string, bool) { + if o == nil || IsNil(o.Algorithm) { + return nil, false + } + return o.Algorithm, true +} + +// HasAlgorithm returns a boolean if a field has been set. +func (o *KeyMetadataRepresentation) HasAlgorithm() bool { + if o != nil && !IsNil(o.Algorithm) { + return true + } + + return false +} + +// SetAlgorithm gets a reference to the given string and assigns it to the Algorithm field. +func (o *KeyMetadataRepresentation) SetAlgorithm(v string) { + o.Algorithm = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) SetPublicKey(v string) { + o.PublicKey = &v +} + +// GetCertificate returns the Certificate field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) 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 *KeyMetadataRepresentation) SetCertificate(v string) { + o.Certificate = &v +} + +// GetUse returns the Use field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) GetUse() KeyUse { + if o == nil || IsNil(o.Use) { + var ret KeyUse + return ret + } + return *o.Use +} + +// GetUseOk returns a tuple with the Use field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyMetadataRepresentation) GetUseOk() (*KeyUse, bool) { + if o == nil || IsNil(o.Use) { + return nil, false + } + return o.Use, true +} + +// HasUse returns a boolean if a field has been set. +func (o *KeyMetadataRepresentation) HasUse() bool { + if o != nil && !IsNil(o.Use) { + return true + } + + return false +} + +// SetUse gets a reference to the given KeyUse and assigns it to the Use field. +func (o *KeyMetadataRepresentation) SetUse(v KeyUse) { + o.Use = &v +} + +// GetValidTo returns the ValidTo field value if set, zero value otherwise. +func (o *KeyMetadataRepresentation) GetValidTo() int64 { + if o == nil || IsNil(o.ValidTo) { + var ret int64 + return ret + } + return *o.ValidTo +} + +// GetValidToOk returns a tuple with the ValidTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyMetadataRepresentation) GetValidToOk() (*int64, bool) { + if o == nil || IsNil(o.ValidTo) { + return nil, false + } + return o.ValidTo, true +} + +// HasValidTo returns a boolean if a field has been set. +func (o *KeyMetadataRepresentation) HasValidTo() bool { + if o != nil && !IsNil(o.ValidTo) { + return true + } + + return false +} + +// SetValidTo gets a reference to the given int64 and assigns it to the ValidTo field. +func (o *KeyMetadataRepresentation) SetValidTo(v int64) { + o.ValidTo = &v +} + +func (o KeyMetadataRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyMetadataRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.ProviderPriority) { + toSerialize["providerPriority"] = o.ProviderPriority + } + if !IsNil(o.Kid) { + toSerialize["kid"] = o.Kid + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Algorithm) { + toSerialize["algorithm"] = o.Algorithm + } + if !IsNil(o.PublicKey) { + toSerialize["publicKey"] = o.PublicKey + } + if !IsNil(o.Certificate) { + toSerialize["certificate"] = o.Certificate + } + if !IsNil(o.Use) { + toSerialize["use"] = o.Use + } + if !IsNil(o.ValidTo) { + toSerialize["validTo"] = o.ValidTo + } + return toSerialize, nil +} + +type NullableKeyMetadataRepresentation struct { + value *KeyMetadataRepresentation + isSet bool +} + +func (v NullableKeyMetadataRepresentation) Get() *KeyMetadataRepresentation { + return v.value +} + +func (v *NullableKeyMetadataRepresentation) Set(val *KeyMetadataRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableKeyMetadataRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyMetadataRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyMetadataRepresentation(val *KeyMetadataRepresentation) *NullableKeyMetadataRepresentation { + return &NullableKeyMetadataRepresentation{value: val, isSet: true} +} + +func (v NullableKeyMetadataRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyMetadataRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_key_store_config.go b/model_key_store_config.go new file mode 100644 index 0000000..56a3c54 --- /dev/null +++ b/model_key_store_config.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the KeyStoreConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyStoreConfig{} + +// KeyStoreConfig struct for KeyStoreConfig +type KeyStoreConfig struct { + RealmCertificate *bool `json:"realmCertificate,omitempty"` + StorePassword *string `json:"storePassword,omitempty"` + KeyPassword *string `json:"keyPassword,omitempty"` + KeyAlias *string `json:"keyAlias,omitempty"` + RealmAlias *string `json:"realmAlias,omitempty"` + Format *string `json:"format,omitempty"` +} + +// NewKeyStoreConfig instantiates a new KeyStoreConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyStoreConfig() *KeyStoreConfig { + this := KeyStoreConfig{} + return &this +} + +// NewKeyStoreConfigWithDefaults instantiates a new KeyStoreConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyStoreConfigWithDefaults() *KeyStoreConfig { + this := KeyStoreConfig{} + return &this +} + +// GetRealmCertificate returns the RealmCertificate field value if set, zero value otherwise. +func (o *KeyStoreConfig) GetRealmCertificate() bool { + if o == nil || IsNil(o.RealmCertificate) { + var ret bool + return ret + } + return *o.RealmCertificate +} + +// GetRealmCertificateOk returns a tuple with the RealmCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyStoreConfig) GetRealmCertificateOk() (*bool, bool) { + if o == nil || IsNil(o.RealmCertificate) { + return nil, false + } + return o.RealmCertificate, true +} + +// HasRealmCertificate returns a boolean if a field has been set. +func (o *KeyStoreConfig) HasRealmCertificate() bool { + if o != nil && !IsNil(o.RealmCertificate) { + return true + } + + return false +} + +// SetRealmCertificate gets a reference to the given bool and assigns it to the RealmCertificate field. +func (o *KeyStoreConfig) SetRealmCertificate(v bool) { + o.RealmCertificate = &v +} + +// GetStorePassword returns the StorePassword field value if set, zero value otherwise. +func (o *KeyStoreConfig) GetStorePassword() string { + if o == nil || IsNil(o.StorePassword) { + var ret string + return ret + } + return *o.StorePassword +} + +// GetStorePasswordOk returns a tuple with the StorePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyStoreConfig) GetStorePasswordOk() (*string, bool) { + if o == nil || IsNil(o.StorePassword) { + return nil, false + } + return o.StorePassword, true +} + +// HasStorePassword returns a boolean if a field has been set. +func (o *KeyStoreConfig) HasStorePassword() bool { + if o != nil && !IsNil(o.StorePassword) { + return true + } + + return false +} + +// SetStorePassword gets a reference to the given string and assigns it to the StorePassword field. +func (o *KeyStoreConfig) SetStorePassword(v string) { + o.StorePassword = &v +} + +// GetKeyPassword returns the KeyPassword field value if set, zero value otherwise. +func (o *KeyStoreConfig) GetKeyPassword() string { + if o == nil || IsNil(o.KeyPassword) { + var ret string + return ret + } + return *o.KeyPassword +} + +// GetKeyPasswordOk returns a tuple with the KeyPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyStoreConfig) GetKeyPasswordOk() (*string, bool) { + if o == nil || IsNil(o.KeyPassword) { + return nil, false + } + return o.KeyPassword, true +} + +// HasKeyPassword returns a boolean if a field has been set. +func (o *KeyStoreConfig) HasKeyPassword() bool { + if o != nil && !IsNil(o.KeyPassword) { + return true + } + + return false +} + +// SetKeyPassword gets a reference to the given string and assigns it to the KeyPassword field. +func (o *KeyStoreConfig) SetKeyPassword(v string) { + o.KeyPassword = &v +} + +// GetKeyAlias returns the KeyAlias field value if set, zero value otherwise. +func (o *KeyStoreConfig) GetKeyAlias() string { + if o == nil || IsNil(o.KeyAlias) { + var ret string + return ret + } + return *o.KeyAlias +} + +// GetKeyAliasOk returns a tuple with the KeyAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyStoreConfig) GetKeyAliasOk() (*string, bool) { + if o == nil || IsNil(o.KeyAlias) { + return nil, false + } + return o.KeyAlias, true +} + +// HasKeyAlias returns a boolean if a field has been set. +func (o *KeyStoreConfig) HasKeyAlias() bool { + if o != nil && !IsNil(o.KeyAlias) { + return true + } + + return false +} + +// SetKeyAlias gets a reference to the given string and assigns it to the KeyAlias field. +func (o *KeyStoreConfig) SetKeyAlias(v string) { + o.KeyAlias = &v +} + +// GetRealmAlias returns the RealmAlias field value if set, zero value otherwise. +func (o *KeyStoreConfig) GetRealmAlias() string { + if o == nil || IsNil(o.RealmAlias) { + var ret string + return ret + } + return *o.RealmAlias +} + +// GetRealmAliasOk returns a tuple with the RealmAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyStoreConfig) GetRealmAliasOk() (*string, bool) { + if o == nil || IsNil(o.RealmAlias) { + return nil, false + } + return o.RealmAlias, true +} + +// HasRealmAlias returns a boolean if a field has been set. +func (o *KeyStoreConfig) HasRealmAlias() bool { + if o != nil && !IsNil(o.RealmAlias) { + return true + } + + return false +} + +// SetRealmAlias gets a reference to the given string and assigns it to the RealmAlias field. +func (o *KeyStoreConfig) SetRealmAlias(v string) { + o.RealmAlias = &v +} + +// GetFormat returns the Format field value if set, zero value otherwise. +func (o *KeyStoreConfig) GetFormat() string { + if o == nil || IsNil(o.Format) { + var ret string + return ret + } + return *o.Format +} + +// GetFormatOk returns a tuple with the Format field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyStoreConfig) GetFormatOk() (*string, bool) { + if o == nil || IsNil(o.Format) { + return nil, false + } + return o.Format, true +} + +// HasFormat returns a boolean if a field has been set. +func (o *KeyStoreConfig) HasFormat() bool { + if o != nil && !IsNil(o.Format) { + return true + } + + return false +} + +// SetFormat gets a reference to the given string and assigns it to the Format field. +func (o *KeyStoreConfig) SetFormat(v string) { + o.Format = &v +} + +func (o KeyStoreConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyStoreConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RealmCertificate) { + toSerialize["realmCertificate"] = o.RealmCertificate + } + if !IsNil(o.StorePassword) { + toSerialize["storePassword"] = o.StorePassword + } + if !IsNil(o.KeyPassword) { + toSerialize["keyPassword"] = o.KeyPassword + } + if !IsNil(o.KeyAlias) { + toSerialize["keyAlias"] = o.KeyAlias + } + if !IsNil(o.RealmAlias) { + toSerialize["realmAlias"] = o.RealmAlias + } + if !IsNil(o.Format) { + toSerialize["format"] = o.Format + } + return toSerialize, nil +} + +type NullableKeyStoreConfig struct { + value *KeyStoreConfig + isSet bool +} + +func (v NullableKeyStoreConfig) Get() *KeyStoreConfig { + return v.value +} + +func (v *NullableKeyStoreConfig) Set(val *KeyStoreConfig) { + v.value = val + v.isSet = true +} + +func (v NullableKeyStoreConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyStoreConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyStoreConfig(val *KeyStoreConfig) *NullableKeyStoreConfig { + return &NullableKeyStoreConfig{value: val, isSet: true} +} + +func (v NullableKeyStoreConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyStoreConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_key_use.go b/model_key_use.go new file mode 100644 index 0000000..9eb2f5d --- /dev/null +++ b/model_key_use.go @@ -0,0 +1,110 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// KeyUse the model 'KeyUse' +type KeyUse string + +// List of KeyUse +const ( + SIG KeyUse = "SIG" + ENC KeyUse = "ENC" +) + +// All allowed values of KeyUse enum +var AllowedKeyUseEnumValues = []KeyUse{ + "SIG", + "ENC", +} + +func (v *KeyUse) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyUse(value) + for _, existing := range AllowedKeyUseEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyUse", value) +} + +// NewKeyUseFromValue returns a pointer to a valid KeyUse +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyUseFromValue(v string) (*KeyUse, error) { + ev := KeyUse(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyUse: valid values are %v", v, AllowedKeyUseEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyUse) IsValid() bool { + for _, existing := range AllowedKeyUseEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to KeyUse value +func (v KeyUse) Ptr() *KeyUse { + return &v +} + +type NullableKeyUse struct { + value *KeyUse + isSet bool +} + +func (v NullableKeyUse) Get() *KeyUse { + return v.value +} + +func (v *NullableKeyUse) Set(val *KeyUse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyUse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyUse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyUse(val *KeyUse) *NullableKeyUse { + return &NullableKeyUse{value: val, isSet: true} +} + +func (v NullableKeyUse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyUse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_keys_metadata_representation.go b/model_keys_metadata_representation.go new file mode 100644 index 0000000..c86c801 --- /dev/null +++ b/model_keys_metadata_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the KeysMetadataRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeysMetadataRepresentation{} + +// KeysMetadataRepresentation struct for KeysMetadataRepresentation +type KeysMetadataRepresentation struct { + Active *map[string]string `json:"active,omitempty"` + Keys []KeyMetadataRepresentation `json:"keys,omitempty"` +} + +// NewKeysMetadataRepresentation instantiates a new KeysMetadataRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeysMetadataRepresentation() *KeysMetadataRepresentation { + this := KeysMetadataRepresentation{} + return &this +} + +// NewKeysMetadataRepresentationWithDefaults instantiates a new KeysMetadataRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeysMetadataRepresentationWithDefaults() *KeysMetadataRepresentation { + this := KeysMetadataRepresentation{} + return &this +} + +// GetActive returns the Active field value if set, zero value otherwise. +func (o *KeysMetadataRepresentation) GetActive() map[string]string { + if o == nil || IsNil(o.Active) { + var ret map[string]string + return ret + } + return *o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeysMetadataRepresentation) GetActiveOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Active) { + return nil, false + } + return o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *KeysMetadataRepresentation) HasActive() bool { + if o != nil && !IsNil(o.Active) { + return true + } + + return false +} + +// SetActive gets a reference to the given map[string]string and assigns it to the Active field. +func (o *KeysMetadataRepresentation) SetActive(v map[string]string) { + o.Active = &v +} + +// GetKeys returns the Keys field value if set, zero value otherwise. +func (o *KeysMetadataRepresentation) GetKeys() []KeyMetadataRepresentation { + if o == nil || IsNil(o.Keys) { + var ret []KeyMetadataRepresentation + return ret + } + return o.Keys +} + +// GetKeysOk returns a tuple with the Keys field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeysMetadataRepresentation) GetKeysOk() ([]KeyMetadataRepresentation, bool) { + if o == nil || IsNil(o.Keys) { + return nil, false + } + return o.Keys, true +} + +// HasKeys returns a boolean if a field has been set. +func (o *KeysMetadataRepresentation) HasKeys() bool { + if o != nil && !IsNil(o.Keys) { + return true + } + + return false +} + +// SetKeys gets a reference to the given []KeyMetadataRepresentation and assigns it to the Keys field. +func (o *KeysMetadataRepresentation) SetKeys(v []KeyMetadataRepresentation) { + o.Keys = v +} + +func (o KeysMetadataRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeysMetadataRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Active) { + toSerialize["active"] = o.Active + } + if !IsNil(o.Keys) { + toSerialize["keys"] = o.Keys + } + return toSerialize, nil +} + +type NullableKeysMetadataRepresentation struct { + value *KeysMetadataRepresentation + isSet bool +} + +func (v NullableKeysMetadataRepresentation) Get() *KeysMetadataRepresentation { + return v.value +} + +func (v *NullableKeysMetadataRepresentation) Set(val *KeysMetadataRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableKeysMetadataRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableKeysMetadataRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeysMetadataRepresentation(val *KeysMetadataRepresentation) *NullableKeysMetadataRepresentation { + return &NullableKeysMetadataRepresentation{value: val, isSet: true} +} + +func (v NullableKeysMetadataRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeysMetadataRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_logic.go b/model_logic.go new file mode 100644 index 0000000..1e40e0d --- /dev/null +++ b/model_logic.go @@ -0,0 +1,110 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// Logic the model 'Logic' +type Logic string + +// List of Logic +const ( + POSITIVE Logic = "POSITIVE" + NEGATIVE Logic = "NEGATIVE" +) + +// All allowed values of Logic enum +var AllowedLogicEnumValues = []Logic{ + "POSITIVE", + "NEGATIVE", +} + +func (v *Logic) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Logic(value) + for _, existing := range AllowedLogicEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Logic", value) +} + +// NewLogicFromValue returns a pointer to a valid Logic +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLogicFromValue(v string) (*Logic, error) { + ev := Logic(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Logic: valid values are %v", v, AllowedLogicEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Logic) IsValid() bool { + for _, existing := range AllowedLogicEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Logic value +func (v Logic) Ptr() *Logic { + return &v +} + +type NullableLogic struct { + value *Logic + isSet bool +} + +func (v NullableLogic) Get() *Logic { + return v.value +} + +func (v *NullableLogic) Set(val *Logic) { + v.value = val + v.isSet = true +} + +func (v NullableLogic) IsSet() bool { + return v.isSet +} + +func (v *NullableLogic) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLogic(val *Logic) *NullableLogic { + return &NullableLogic{value: val, isSet: true} +} + +func (v NullableLogic) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLogic) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_management_permission_reference.go b/model_management_permission_reference.go new file mode 100644 index 0000000..f1dd036 --- /dev/null +++ b/model_management_permission_reference.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ManagementPermissionReference type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ManagementPermissionReference{} + +// ManagementPermissionReference struct for ManagementPermissionReference +type ManagementPermissionReference struct { + Enabled *bool `json:"enabled,omitempty"` + Resource *string `json:"resource,omitempty"` + ScopePermissions *map[string]string `json:"scopePermissions,omitempty"` +} + +// NewManagementPermissionReference instantiates a new ManagementPermissionReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewManagementPermissionReference() *ManagementPermissionReference { + this := ManagementPermissionReference{} + return &this +} + +// NewManagementPermissionReferenceWithDefaults instantiates a new ManagementPermissionReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewManagementPermissionReferenceWithDefaults() *ManagementPermissionReference { + this := ManagementPermissionReference{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *ManagementPermissionReference) 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 *ManagementPermissionReference) 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 *ManagementPermissionReference) 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 *ManagementPermissionReference) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *ManagementPermissionReference) GetResource() string { + if o == nil || IsNil(o.Resource) { + var ret string + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagementPermissionReference) GetResourceOk() (*string, bool) { + if o == nil || IsNil(o.Resource) { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *ManagementPermissionReference) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given string and assigns it to the Resource field. +func (o *ManagementPermissionReference) SetResource(v string) { + o.Resource = &v +} + +// GetScopePermissions returns the ScopePermissions field value if set, zero value otherwise. +func (o *ManagementPermissionReference) GetScopePermissions() map[string]string { + if o == nil || IsNil(o.ScopePermissions) { + var ret map[string]string + return ret + } + return *o.ScopePermissions +} + +// GetScopePermissionsOk returns a tuple with the ScopePermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagementPermissionReference) GetScopePermissionsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.ScopePermissions) { + return nil, false + } + return o.ScopePermissions, true +} + +// HasScopePermissions returns a boolean if a field has been set. +func (o *ManagementPermissionReference) HasScopePermissions() bool { + if o != nil && !IsNil(o.ScopePermissions) { + return true + } + + return false +} + +// SetScopePermissions gets a reference to the given map[string]string and assigns it to the ScopePermissions field. +func (o *ManagementPermissionReference) SetScopePermissions(v map[string]string) { + o.ScopePermissions = &v +} + +func (o ManagementPermissionReference) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ManagementPermissionReference) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + if !IsNil(o.ScopePermissions) { + toSerialize["scopePermissions"] = o.ScopePermissions + } + return toSerialize, nil +} + +type NullableManagementPermissionReference struct { + value *ManagementPermissionReference + isSet bool +} + +func (v NullableManagementPermissionReference) Get() *ManagementPermissionReference { + return v.value +} + +func (v *NullableManagementPermissionReference) Set(val *ManagementPermissionReference) { + v.value = val + v.isSet = true +} + +func (v NullableManagementPermissionReference) IsSet() bool { + return v.isSet +} + +func (v *NullableManagementPermissionReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableManagementPermissionReference(val *ManagementPermissionReference) *NullableManagementPermissionReference { + return &NullableManagementPermissionReference{value: val, isSet: true} +} + +func (v NullableManagementPermissionReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableManagementPermissionReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_mappings_representation.go b/model_mappings_representation.go new file mode 100644 index 0000000..4eee7fc --- /dev/null +++ b/model_mappings_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the MappingsRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MappingsRepresentation{} + +// MappingsRepresentation struct for MappingsRepresentation +type MappingsRepresentation struct { + RealmMappings []RoleRepresentation `json:"realmMappings,omitempty"` + ClientMappings *map[string]ClientMappingsRepresentation `json:"clientMappings,omitempty"` +} + +// NewMappingsRepresentation instantiates a new MappingsRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMappingsRepresentation() *MappingsRepresentation { + this := MappingsRepresentation{} + return &this +} + +// NewMappingsRepresentationWithDefaults instantiates a new MappingsRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMappingsRepresentationWithDefaults() *MappingsRepresentation { + this := MappingsRepresentation{} + return &this +} + +// GetRealmMappings returns the RealmMappings field value if set, zero value otherwise. +func (o *MappingsRepresentation) GetRealmMappings() []RoleRepresentation { + if o == nil || IsNil(o.RealmMappings) { + var ret []RoleRepresentation + return ret + } + return o.RealmMappings +} + +// GetRealmMappingsOk returns a tuple with the RealmMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MappingsRepresentation) GetRealmMappingsOk() ([]RoleRepresentation, bool) { + if o == nil || IsNil(o.RealmMappings) { + return nil, false + } + return o.RealmMappings, true +} + +// HasRealmMappings returns a boolean if a field has been set. +func (o *MappingsRepresentation) HasRealmMappings() bool { + if o != nil && !IsNil(o.RealmMappings) { + return true + } + + return false +} + +// SetRealmMappings gets a reference to the given []RoleRepresentation and assigns it to the RealmMappings field. +func (o *MappingsRepresentation) SetRealmMappings(v []RoleRepresentation) { + o.RealmMappings = v +} + +// GetClientMappings returns the ClientMappings field value if set, zero value otherwise. +func (o *MappingsRepresentation) GetClientMappings() map[string]ClientMappingsRepresentation { + if o == nil || IsNil(o.ClientMappings) { + var ret map[string]ClientMappingsRepresentation + return ret + } + return *o.ClientMappings +} + +// GetClientMappingsOk returns a tuple with the ClientMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MappingsRepresentation) GetClientMappingsOk() (*map[string]ClientMappingsRepresentation, bool) { + if o == nil || IsNil(o.ClientMappings) { + return nil, false + } + return o.ClientMappings, true +} + +// HasClientMappings returns a boolean if a field has been set. +func (o *MappingsRepresentation) HasClientMappings() bool { + if o != nil && !IsNil(o.ClientMappings) { + return true + } + + return false +} + +// SetClientMappings gets a reference to the given map[string]ClientMappingsRepresentation and assigns it to the ClientMappings field. +func (o *MappingsRepresentation) SetClientMappings(v map[string]ClientMappingsRepresentation) { + o.ClientMappings = &v +} + +func (o MappingsRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MappingsRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RealmMappings) { + toSerialize["realmMappings"] = o.RealmMappings + } + if !IsNil(o.ClientMappings) { + toSerialize["clientMappings"] = o.ClientMappings + } + return toSerialize, nil +} + +type NullableMappingsRepresentation struct { + value *MappingsRepresentation + isSet bool +} + +func (v NullableMappingsRepresentation) Get() *MappingsRepresentation { + return v.value +} + +func (v *NullableMappingsRepresentation) Set(val *MappingsRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableMappingsRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableMappingsRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMappingsRepresentation(val *MappingsRepresentation) *NullableMappingsRepresentation { + return &NullableMappingsRepresentation{value: val, isSet: true} +} + +func (v NullableMappingsRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMappingsRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_member_representation.go b/model_member_representation.go new file mode 100644 index 0000000..6083ada --- /dev/null +++ b/model_member_representation.go @@ -0,0 +1,1104 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the MemberRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MemberRepresentation{} + +// MemberRepresentation struct for MemberRepresentation +type MemberRepresentation struct { + Id *string `json:"id,omitempty"` + Username *string `json:"username,omitempty"` + FirstName *string `json:"firstName,omitempty"` + LastName *string `json:"lastName,omitempty"` + Email *string `json:"email,omitempty"` + EmailVerified *bool `json:"emailVerified,omitempty"` + Attributes *map[string][]string `json:"attributes,omitempty"` + UserProfileMetadata *UserProfileMetadata `json:"userProfileMetadata,omitempty"` + Self *string `json:"self,omitempty"` + Origin *string `json:"origin,omitempty"` + CreatedTimestamp *int64 `json:"createdTimestamp,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Totp *bool `json:"totp,omitempty"` + FederationLink *string `json:"federationLink,omitempty"` + ServiceAccountClientId *string `json:"serviceAccountClientId,omitempty"` + Credentials []CredentialRepresentation `json:"credentials,omitempty"` + DisableableCredentialTypes []string `json:"disableableCredentialTypes,omitempty"` + RequiredActions []string `json:"requiredActions,omitempty"` + FederatedIdentities []FederatedIdentityRepresentation `json:"federatedIdentities,omitempty"` + RealmRoles []string `json:"realmRoles,omitempty"` + ClientRoles *map[string][]string `json:"clientRoles,omitempty"` + ClientConsents []UserConsentRepresentation `json:"clientConsents,omitempty"` + NotBefore *int32 `json:"notBefore,omitempty"` + // Deprecated + ApplicationRoles *map[string][]string `json:"applicationRoles,omitempty"` + // Deprecated + SocialLinks []SocialLinkRepresentation `json:"socialLinks,omitempty"` + Groups []string `json:"groups,omitempty"` + Access *map[string]bool `json:"access,omitempty"` + MembershipType *MembershipType `json:"membershipType,omitempty"` +} + +// NewMemberRepresentation instantiates a new MemberRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMemberRepresentation() *MemberRepresentation { + this := MemberRepresentation{} + return &this +} + +// NewMemberRepresentationWithDefaults instantiates a new MemberRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMemberRepresentationWithDefaults() *MemberRepresentation { + this := MemberRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) SetId(v string) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) SetUsername(v string) { + o.Username = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *MemberRepresentation) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *MemberRepresentation) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *MemberRepresentation) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *MemberRepresentation) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *MemberRepresentation) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *MemberRepresentation) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) SetEmail(v string) { + o.Email = &v +} + +// GetEmailVerified returns the EmailVerified field value if set, zero value otherwise. +func (o *MemberRepresentation) GetEmailVerified() bool { + if o == nil || IsNil(o.EmailVerified) { + var ret bool + return ret + } + return *o.EmailVerified +} + +// GetEmailVerifiedOk returns a tuple with the EmailVerified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetEmailVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.EmailVerified) { + return nil, false + } + return o.EmailVerified, true +} + +// HasEmailVerified returns a boolean if a field has been set. +func (o *MemberRepresentation) HasEmailVerified() bool { + if o != nil && !IsNil(o.EmailVerified) { + return true + } + + return false +} + +// SetEmailVerified gets a reference to the given bool and assigns it to the EmailVerified field. +func (o *MemberRepresentation) SetEmailVerified(v bool) { + o.EmailVerified = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *MemberRepresentation) GetAttributes() map[string][]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string][]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetAttributesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *MemberRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string][]string and assigns it to the Attributes field. +func (o *MemberRepresentation) SetAttributes(v map[string][]string) { + o.Attributes = &v +} + +// GetUserProfileMetadata returns the UserProfileMetadata field value if set, zero value otherwise. +func (o *MemberRepresentation) GetUserProfileMetadata() UserProfileMetadata { + if o == nil || IsNil(o.UserProfileMetadata) { + var ret UserProfileMetadata + return ret + } + return *o.UserProfileMetadata +} + +// GetUserProfileMetadataOk returns a tuple with the UserProfileMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetUserProfileMetadataOk() (*UserProfileMetadata, bool) { + if o == nil || IsNil(o.UserProfileMetadata) { + return nil, false + } + return o.UserProfileMetadata, true +} + +// HasUserProfileMetadata returns a boolean if a field has been set. +func (o *MemberRepresentation) HasUserProfileMetadata() bool { + if o != nil && !IsNil(o.UserProfileMetadata) { + return true + } + + return false +} + +// SetUserProfileMetadata gets a reference to the given UserProfileMetadata and assigns it to the UserProfileMetadata field. +func (o *MemberRepresentation) SetUserProfileMetadata(v UserProfileMetadata) { + o.UserProfileMetadata = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *MemberRepresentation) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *MemberRepresentation) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *MemberRepresentation) SetSelf(v string) { + o.Self = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *MemberRepresentation) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *MemberRepresentation) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *MemberRepresentation) SetOrigin(v string) { + o.Origin = &v +} + +// GetCreatedTimestamp returns the CreatedTimestamp field value if set, zero value otherwise. +func (o *MemberRepresentation) GetCreatedTimestamp() int64 { + if o == nil || IsNil(o.CreatedTimestamp) { + var ret int64 + return ret + } + return *o.CreatedTimestamp +} + +// GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetCreatedTimestampOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedTimestamp) { + return nil, false + } + return o.CreatedTimestamp, true +} + +// HasCreatedTimestamp returns a boolean if a field has been set. +func (o *MemberRepresentation) HasCreatedTimestamp() bool { + if o != nil && !IsNil(o.CreatedTimestamp) { + return true + } + + return false +} + +// SetCreatedTimestamp gets a reference to the given int64 and assigns it to the CreatedTimestamp field. +func (o *MemberRepresentation) SetCreatedTimestamp(v int64) { + o.CreatedTimestamp = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) 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 *MemberRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetTotp returns the Totp field value if set, zero value otherwise. +func (o *MemberRepresentation) GetTotp() bool { + if o == nil || IsNil(o.Totp) { + var ret bool + return ret + } + return *o.Totp +} + +// GetTotpOk returns a tuple with the Totp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetTotpOk() (*bool, bool) { + if o == nil || IsNil(o.Totp) { + return nil, false + } + return o.Totp, true +} + +// HasTotp returns a boolean if a field has been set. +func (o *MemberRepresentation) HasTotp() bool { + if o != nil && !IsNil(o.Totp) { + return true + } + + return false +} + +// SetTotp gets a reference to the given bool and assigns it to the Totp field. +func (o *MemberRepresentation) SetTotp(v bool) { + o.Totp = &v +} + +// GetFederationLink returns the FederationLink field value if set, zero value otherwise. +func (o *MemberRepresentation) GetFederationLink() string { + if o == nil || IsNil(o.FederationLink) { + var ret string + return ret + } + return *o.FederationLink +} + +// GetFederationLinkOk returns a tuple with the FederationLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetFederationLinkOk() (*string, bool) { + if o == nil || IsNil(o.FederationLink) { + return nil, false + } + return o.FederationLink, true +} + +// HasFederationLink returns a boolean if a field has been set. +func (o *MemberRepresentation) HasFederationLink() bool { + if o != nil && !IsNil(o.FederationLink) { + return true + } + + return false +} + +// SetFederationLink gets a reference to the given string and assigns it to the FederationLink field. +func (o *MemberRepresentation) SetFederationLink(v string) { + o.FederationLink = &v +} + +// GetServiceAccountClientId returns the ServiceAccountClientId field value if set, zero value otherwise. +func (o *MemberRepresentation) GetServiceAccountClientId() string { + if o == nil || IsNil(o.ServiceAccountClientId) { + var ret string + return ret + } + return *o.ServiceAccountClientId +} + +// GetServiceAccountClientIdOk returns a tuple with the ServiceAccountClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetServiceAccountClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceAccountClientId) { + return nil, false + } + return o.ServiceAccountClientId, true +} + +// HasServiceAccountClientId returns a boolean if a field has been set. +func (o *MemberRepresentation) HasServiceAccountClientId() bool { + if o != nil && !IsNil(o.ServiceAccountClientId) { + return true + } + + return false +} + +// SetServiceAccountClientId gets a reference to the given string and assigns it to the ServiceAccountClientId field. +func (o *MemberRepresentation) SetServiceAccountClientId(v string) { + o.ServiceAccountClientId = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *MemberRepresentation) GetCredentials() []CredentialRepresentation { + if o == nil || IsNil(o.Credentials) { + var ret []CredentialRepresentation + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetCredentialsOk() ([]CredentialRepresentation, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *MemberRepresentation) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given []CredentialRepresentation and assigns it to the Credentials field. +func (o *MemberRepresentation) SetCredentials(v []CredentialRepresentation) { + o.Credentials = v +} + +// GetDisableableCredentialTypes returns the DisableableCredentialTypes field value if set, zero value otherwise. +func (o *MemberRepresentation) GetDisableableCredentialTypes() []string { + if o == nil || IsNil(o.DisableableCredentialTypes) { + var ret []string + return ret + } + return o.DisableableCredentialTypes +} + +// GetDisableableCredentialTypesOk returns a tuple with the DisableableCredentialTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetDisableableCredentialTypesOk() ([]string, bool) { + if o == nil || IsNil(o.DisableableCredentialTypes) { + return nil, false + } + return o.DisableableCredentialTypes, true +} + +// HasDisableableCredentialTypes returns a boolean if a field has been set. +func (o *MemberRepresentation) HasDisableableCredentialTypes() bool { + if o != nil && !IsNil(o.DisableableCredentialTypes) { + return true + } + + return false +} + +// SetDisableableCredentialTypes gets a reference to the given []string and assigns it to the DisableableCredentialTypes field. +func (o *MemberRepresentation) SetDisableableCredentialTypes(v []string) { + o.DisableableCredentialTypes = v +} + +// GetRequiredActions returns the RequiredActions field value if set, zero value otherwise. +func (o *MemberRepresentation) GetRequiredActions() []string { + if o == nil || IsNil(o.RequiredActions) { + var ret []string + return ret + } + return o.RequiredActions +} + +// GetRequiredActionsOk returns a tuple with the RequiredActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetRequiredActionsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredActions) { + return nil, false + } + return o.RequiredActions, true +} + +// HasRequiredActions returns a boolean if a field has been set. +func (o *MemberRepresentation) HasRequiredActions() bool { + if o != nil && !IsNil(o.RequiredActions) { + return true + } + + return false +} + +// SetRequiredActions gets a reference to the given []string and assigns it to the RequiredActions field. +func (o *MemberRepresentation) SetRequiredActions(v []string) { + o.RequiredActions = v +} + +// GetFederatedIdentities returns the FederatedIdentities field value if set, zero value otherwise. +func (o *MemberRepresentation) GetFederatedIdentities() []FederatedIdentityRepresentation { + if o == nil || IsNil(o.FederatedIdentities) { + var ret []FederatedIdentityRepresentation + return ret + } + return o.FederatedIdentities +} + +// GetFederatedIdentitiesOk returns a tuple with the FederatedIdentities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetFederatedIdentitiesOk() ([]FederatedIdentityRepresentation, bool) { + if o == nil || IsNil(o.FederatedIdentities) { + return nil, false + } + return o.FederatedIdentities, true +} + +// HasFederatedIdentities returns a boolean if a field has been set. +func (o *MemberRepresentation) HasFederatedIdentities() bool { + if o != nil && !IsNil(o.FederatedIdentities) { + return true + } + + return false +} + +// SetFederatedIdentities gets a reference to the given []FederatedIdentityRepresentation and assigns it to the FederatedIdentities field. +func (o *MemberRepresentation) SetFederatedIdentities(v []FederatedIdentityRepresentation) { + o.FederatedIdentities = v +} + +// GetRealmRoles returns the RealmRoles field value if set, zero value otherwise. +func (o *MemberRepresentation) GetRealmRoles() []string { + if o == nil || IsNil(o.RealmRoles) { + var ret []string + return ret + } + return o.RealmRoles +} + +// GetRealmRolesOk returns a tuple with the RealmRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetRealmRolesOk() ([]string, bool) { + if o == nil || IsNil(o.RealmRoles) { + return nil, false + } + return o.RealmRoles, true +} + +// HasRealmRoles returns a boolean if a field has been set. +func (o *MemberRepresentation) HasRealmRoles() bool { + if o != nil && !IsNil(o.RealmRoles) { + return true + } + + return false +} + +// SetRealmRoles gets a reference to the given []string and assigns it to the RealmRoles field. +func (o *MemberRepresentation) SetRealmRoles(v []string) { + o.RealmRoles = v +} + +// GetClientRoles returns the ClientRoles field value if set, zero value otherwise. +func (o *MemberRepresentation) GetClientRoles() map[string][]string { + if o == nil || IsNil(o.ClientRoles) { + var ret map[string][]string + return ret + } + return *o.ClientRoles +} + +// GetClientRolesOk returns a tuple with the ClientRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetClientRolesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.ClientRoles) { + return nil, false + } + return o.ClientRoles, true +} + +// HasClientRoles returns a boolean if a field has been set. +func (o *MemberRepresentation) HasClientRoles() bool { + if o != nil && !IsNil(o.ClientRoles) { + return true + } + + return false +} + +// SetClientRoles gets a reference to the given map[string][]string and assigns it to the ClientRoles field. +func (o *MemberRepresentation) SetClientRoles(v map[string][]string) { + o.ClientRoles = &v +} + +// GetClientConsents returns the ClientConsents field value if set, zero value otherwise. +func (o *MemberRepresentation) GetClientConsents() []UserConsentRepresentation { + if o == nil || IsNil(o.ClientConsents) { + var ret []UserConsentRepresentation + return ret + } + return o.ClientConsents +} + +// GetClientConsentsOk returns a tuple with the ClientConsents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetClientConsentsOk() ([]UserConsentRepresentation, bool) { + if o == nil || IsNil(o.ClientConsents) { + return nil, false + } + return o.ClientConsents, true +} + +// HasClientConsents returns a boolean if a field has been set. +func (o *MemberRepresentation) HasClientConsents() bool { + if o != nil && !IsNil(o.ClientConsents) { + return true + } + + return false +} + +// SetClientConsents gets a reference to the given []UserConsentRepresentation and assigns it to the ClientConsents field. +func (o *MemberRepresentation) SetClientConsents(v []UserConsentRepresentation) { + o.ClientConsents = v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *MemberRepresentation) GetNotBefore() int32 { + if o == nil || IsNil(o.NotBefore) { + var ret int32 + 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 *MemberRepresentation) GetNotBeforeOk() (*int32, 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 *MemberRepresentation) HasNotBefore() bool { + if o != nil && !IsNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given int32 and assigns it to the NotBefore field. +func (o *MemberRepresentation) SetNotBefore(v int32) { + o.NotBefore = &v +} + +// GetApplicationRoles returns the ApplicationRoles field value if set, zero value otherwise. +// Deprecated +func (o *MemberRepresentation) GetApplicationRoles() map[string][]string { + if o == nil || IsNil(o.ApplicationRoles) { + var ret map[string][]string + return ret + } + return *o.ApplicationRoles +} + +// GetApplicationRolesOk returns a tuple with the ApplicationRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MemberRepresentation) GetApplicationRolesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.ApplicationRoles) { + return nil, false + } + return o.ApplicationRoles, true +} + +// HasApplicationRoles returns a boolean if a field has been set. +func (o *MemberRepresentation) HasApplicationRoles() bool { + if o != nil && !IsNil(o.ApplicationRoles) { + return true + } + + return false +} + +// SetApplicationRoles gets a reference to the given map[string][]string and assigns it to the ApplicationRoles field. +// Deprecated +func (o *MemberRepresentation) SetApplicationRoles(v map[string][]string) { + o.ApplicationRoles = &v +} + +// GetSocialLinks returns the SocialLinks field value if set, zero value otherwise. +// Deprecated +func (o *MemberRepresentation) GetSocialLinks() []SocialLinkRepresentation { + if o == nil || IsNil(o.SocialLinks) { + var ret []SocialLinkRepresentation + return ret + } + return o.SocialLinks +} + +// GetSocialLinksOk returns a tuple with the SocialLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MemberRepresentation) GetSocialLinksOk() ([]SocialLinkRepresentation, bool) { + if o == nil || IsNil(o.SocialLinks) { + return nil, false + } + return o.SocialLinks, true +} + +// HasSocialLinks returns a boolean if a field has been set. +func (o *MemberRepresentation) HasSocialLinks() bool { + if o != nil && !IsNil(o.SocialLinks) { + return true + } + + return false +} + +// SetSocialLinks gets a reference to the given []SocialLinkRepresentation and assigns it to the SocialLinks field. +// Deprecated +func (o *MemberRepresentation) SetSocialLinks(v []SocialLinkRepresentation) { + o.SocialLinks = v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *MemberRepresentation) GetGroups() []string { + if o == nil || IsNil(o.Groups) { + var ret []string + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetGroupsOk() ([]string, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *MemberRepresentation) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []string and assigns it to the Groups field. +func (o *MemberRepresentation) SetGroups(v []string) { + o.Groups = v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *MemberRepresentation) GetAccess() map[string]bool { + if o == nil || IsNil(o.Access) { + var ret map[string]bool + 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 *MemberRepresentation) GetAccessOk() (*map[string]bool, 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 *MemberRepresentation) HasAccess() bool { + if o != nil && !IsNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given map[string]bool and assigns it to the Access field. +func (o *MemberRepresentation) SetAccess(v map[string]bool) { + o.Access = &v +} + +// GetMembershipType returns the MembershipType field value if set, zero value otherwise. +func (o *MemberRepresentation) GetMembershipType() MembershipType { + if o == nil || IsNil(o.MembershipType) { + var ret MembershipType + return ret + } + return *o.MembershipType +} + +// GetMembershipTypeOk returns a tuple with the MembershipType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberRepresentation) GetMembershipTypeOk() (*MembershipType, bool) { + if o == nil || IsNil(o.MembershipType) { + return nil, false + } + return o.MembershipType, true +} + +// HasMembershipType returns a boolean if a field has been set. +func (o *MemberRepresentation) HasMembershipType() bool { + if o != nil && !IsNil(o.MembershipType) { + return true + } + + return false +} + +// SetMembershipType gets a reference to the given MembershipType and assigns it to the MembershipType field. +func (o *MemberRepresentation) SetMembershipType(v MembershipType) { + o.MembershipType = &v +} + +func (o MemberRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MemberRepresentation) 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.FirstName) { + toSerialize["firstName"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["lastName"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.EmailVerified) { + toSerialize["emailVerified"] = o.EmailVerified + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.UserProfileMetadata) { + toSerialize["userProfileMetadata"] = o.UserProfileMetadata + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + if !IsNil(o.CreatedTimestamp) { + toSerialize["createdTimestamp"] = o.CreatedTimestamp + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Totp) { + toSerialize["totp"] = o.Totp + } + if !IsNil(o.FederationLink) { + toSerialize["federationLink"] = o.FederationLink + } + if !IsNil(o.ServiceAccountClientId) { + toSerialize["serviceAccountClientId"] = o.ServiceAccountClientId + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.DisableableCredentialTypes) { + toSerialize["disableableCredentialTypes"] = o.DisableableCredentialTypes + } + if !IsNil(o.RequiredActions) { + toSerialize["requiredActions"] = o.RequiredActions + } + if !IsNil(o.FederatedIdentities) { + toSerialize["federatedIdentities"] = o.FederatedIdentities + } + if !IsNil(o.RealmRoles) { + toSerialize["realmRoles"] = o.RealmRoles + } + if !IsNil(o.ClientRoles) { + toSerialize["clientRoles"] = o.ClientRoles + } + if !IsNil(o.ClientConsents) { + toSerialize["clientConsents"] = o.ClientConsents + } + if !IsNil(o.NotBefore) { + toSerialize["notBefore"] = o.NotBefore + } + if !IsNil(o.ApplicationRoles) { + toSerialize["applicationRoles"] = o.ApplicationRoles + } + if !IsNil(o.SocialLinks) { + toSerialize["socialLinks"] = o.SocialLinks + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Access) { + toSerialize["access"] = o.Access + } + if !IsNil(o.MembershipType) { + toSerialize["membershipType"] = o.MembershipType + } + return toSerialize, nil +} + +type NullableMemberRepresentation struct { + value *MemberRepresentation + isSet bool +} + +func (v NullableMemberRepresentation) Get() *MemberRepresentation { + return v.value +} + +func (v *NullableMemberRepresentation) Set(val *MemberRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableMemberRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableMemberRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMemberRepresentation(val *MemberRepresentation) *NullableMemberRepresentation { + return &NullableMemberRepresentation{value: val, isSet: true} +} + +func (v NullableMemberRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMemberRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_membership_type.go b/model_membership_type.go new file mode 100644 index 0000000..4f3259b --- /dev/null +++ b/model_membership_type.go @@ -0,0 +1,110 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// MembershipType the model 'MembershipType' +type MembershipType string + +// List of MembershipType +const ( + UNMANAGED MembershipType = "UNMANAGED" + MANAGED MembershipType = "MANAGED" +) + +// All allowed values of MembershipType enum +var AllowedMembershipTypeEnumValues = []MembershipType{ + "UNMANAGED", + "MANAGED", +} + +func (v *MembershipType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := MembershipType(value) + for _, existing := range AllowedMembershipTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid MembershipType", value) +} + +// NewMembershipTypeFromValue returns a pointer to a valid MembershipType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMembershipTypeFromValue(v string) (*MembershipType, error) { + ev := MembershipType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for MembershipType: valid values are %v", v, AllowedMembershipTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v MembershipType) IsValid() bool { + for _, existing := range AllowedMembershipTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to MembershipType value +func (v MembershipType) Ptr() *MembershipType { + return &v +} + +type NullableMembershipType struct { + value *MembershipType + isSet bool +} + +func (v NullableMembershipType) Get() *MembershipType { + return v.value +} + +func (v *NullableMembershipType) Set(val *MembershipType) { + v.value = val + v.isSet = true +} + +func (v NullableMembershipType) IsSet() bool { + return v.isSet +} + +func (v *NullableMembershipType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMembershipType(val *MembershipType) *NullableMembershipType { + return &NullableMembershipType{value: val, isSet: true} +} + +func (v NullableMembershipType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMembershipType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_method_config.go b/model_method_config.go new file mode 100644 index 0000000..8ad05bb --- /dev/null +++ b/model_method_config.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the MethodConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MethodConfig{} + +// MethodConfig struct for MethodConfig +type MethodConfig struct { + Method *string `json:"method,omitempty"` + Scopes []string `json:"scopes,omitempty"` + ScopesEnforcementMode *ScopeEnforcementMode `json:"scopes-enforcement-mode,omitempty"` +} + +// NewMethodConfig instantiates a new MethodConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMethodConfig() *MethodConfig { + this := MethodConfig{} + return &this +} + +// NewMethodConfigWithDefaults instantiates a new MethodConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMethodConfigWithDefaults() *MethodConfig { + this := MethodConfig{} + return &this +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *MethodConfig) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MethodConfig) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *MethodConfig) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *MethodConfig) SetMethod(v string) { + o.Method = &v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *MethodConfig) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MethodConfig) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *MethodConfig) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *MethodConfig) SetScopes(v []string) { + o.Scopes = v +} + +// GetScopesEnforcementMode returns the ScopesEnforcementMode field value if set, zero value otherwise. +func (o *MethodConfig) GetScopesEnforcementMode() ScopeEnforcementMode { + if o == nil || IsNil(o.ScopesEnforcementMode) { + var ret ScopeEnforcementMode + return ret + } + return *o.ScopesEnforcementMode +} + +// GetScopesEnforcementModeOk returns a tuple with the ScopesEnforcementMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MethodConfig) GetScopesEnforcementModeOk() (*ScopeEnforcementMode, bool) { + if o == nil || IsNil(o.ScopesEnforcementMode) { + return nil, false + } + return o.ScopesEnforcementMode, true +} + +// HasScopesEnforcementMode returns a boolean if a field has been set. +func (o *MethodConfig) HasScopesEnforcementMode() bool { + if o != nil && !IsNil(o.ScopesEnforcementMode) { + return true + } + + return false +} + +// SetScopesEnforcementMode gets a reference to the given ScopeEnforcementMode and assigns it to the ScopesEnforcementMode field. +func (o *MethodConfig) SetScopesEnforcementMode(v ScopeEnforcementMode) { + o.ScopesEnforcementMode = &v +} + +func (o MethodConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MethodConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.ScopesEnforcementMode) { + toSerialize["scopes-enforcement-mode"] = o.ScopesEnforcementMode + } + return toSerialize, nil +} + +type NullableMethodConfig struct { + value *MethodConfig + isSet bool +} + +func (v NullableMethodConfig) Get() *MethodConfig { + return v.value +} + +func (v *NullableMethodConfig) Set(val *MethodConfig) { + v.value = val + v.isSet = true +} + +func (v NullableMethodConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableMethodConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMethodConfig(val *MethodConfig) *NullableMethodConfig { + return &NullableMethodConfig{value: val, isSet: true} +} + +func (v NullableMethodConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMethodConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_o_auth_client_representation.go b/model_o_auth_client_representation.go new file mode 100644 index 0000000..7217636 --- /dev/null +++ b/model_o_auth_client_representation.go @@ -0,0 +1,1736 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the OAuthClientRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuthClientRepresentation{} + +// OAuthClientRepresentation struct for OAuthClientRepresentation +type OAuthClientRepresentation struct { + Id *string `json:"id,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + RootUrl *string `json:"rootUrl,omitempty"` + AdminUrl *string `json:"adminUrl,omitempty"` + BaseUrl *string `json:"baseUrl,omitempty"` + SurrogateAuthRequired *bool `json:"surrogateAuthRequired,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + AlwaysDisplayInConsole *bool `json:"alwaysDisplayInConsole,omitempty"` + ClientAuthenticatorType *string `json:"clientAuthenticatorType,omitempty"` + Secret *string `json:"secret,omitempty"` + RegistrationAccessToken *string `json:"registrationAccessToken,omitempty"` + // Deprecated + DefaultRoles []string `json:"defaultRoles,omitempty"` + RedirectUris []string `json:"redirectUris,omitempty"` + WebOrigins []string `json:"webOrigins,omitempty"` + NotBefore *int32 `json:"notBefore,omitempty"` + BearerOnly *bool `json:"bearerOnly,omitempty"` + ConsentRequired *bool `json:"consentRequired,omitempty"` + StandardFlowEnabled *bool `json:"standardFlowEnabled,omitempty"` + ImplicitFlowEnabled *bool `json:"implicitFlowEnabled,omitempty"` + DirectAccessGrantsEnabled *bool `json:"directAccessGrantsEnabled,omitempty"` + ServiceAccountsEnabled *bool `json:"serviceAccountsEnabled,omitempty"` + AuthorizationServicesEnabled *bool `json:"authorizationServicesEnabled,omitempty"` + // Deprecated + DirectGrantsOnly *bool `json:"directGrantsOnly,omitempty"` + PublicClient *bool `json:"publicClient,omitempty"` + FrontchannelLogout *bool `json:"frontchannelLogout,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Attributes *map[string]string `json:"attributes,omitempty"` + AuthenticationFlowBindingOverrides *map[string]string `json:"authenticationFlowBindingOverrides,omitempty"` + FullScopeAllowed *bool `json:"fullScopeAllowed,omitempty"` + NodeReRegistrationTimeout *int32 `json:"nodeReRegistrationTimeout,omitempty"` + RegisteredNodes *map[string]int32 `json:"registeredNodes,omitempty"` + ProtocolMappers []ProtocolMapperRepresentation `json:"protocolMappers,omitempty"` + // Deprecated + ClientTemplate *string `json:"clientTemplate,omitempty"` + // Deprecated + UseTemplateConfig *bool `json:"useTemplateConfig,omitempty"` + // Deprecated + UseTemplateScope *bool `json:"useTemplateScope,omitempty"` + // Deprecated + UseTemplateMappers *bool `json:"useTemplateMappers,omitempty"` + DefaultClientScopes []string `json:"defaultClientScopes,omitempty"` + OptionalClientScopes []string `json:"optionalClientScopes,omitempty"` + AuthorizationSettings *ResourceServerRepresentation `json:"authorizationSettings,omitempty"` + Access *map[string]bool `json:"access,omitempty"` + Origin *string `json:"origin,omitempty"` + Name *string `json:"name,omitempty"` + // Deprecated + Claims *ClaimRepresentation `json:"claims,omitempty"` +} + +// NewOAuthClientRepresentation instantiates a new OAuthClientRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOAuthClientRepresentation() *OAuthClientRepresentation { + this := OAuthClientRepresentation{} + return &this +} + +// NewOAuthClientRepresentationWithDefaults instantiates a new OAuthClientRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOAuthClientRepresentationWithDefaults() *OAuthClientRepresentation { + this := OAuthClientRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetId(v string) { + o.Id = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *OAuthClientRepresentation) SetClientId(v string) { + o.ClientId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetType(v string) { + o.Type = &v +} + +// GetRootUrl returns the RootUrl field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetRootUrl() string { + if o == nil || IsNil(o.RootUrl) { + var ret string + return ret + } + return *o.RootUrl +} + +// GetRootUrlOk returns a tuple with the RootUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetRootUrlOk() (*string, bool) { + if o == nil || IsNil(o.RootUrl) { + return nil, false + } + return o.RootUrl, true +} + +// HasRootUrl returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasRootUrl() bool { + if o != nil && !IsNil(o.RootUrl) { + return true + } + + return false +} + +// SetRootUrl gets a reference to the given string and assigns it to the RootUrl field. +func (o *OAuthClientRepresentation) SetRootUrl(v string) { + o.RootUrl = &v +} + +// GetAdminUrl returns the AdminUrl field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetAdminUrl() string { + if o == nil || IsNil(o.AdminUrl) { + var ret string + return ret + } + return *o.AdminUrl +} + +// GetAdminUrlOk returns a tuple with the AdminUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetAdminUrlOk() (*string, bool) { + if o == nil || IsNil(o.AdminUrl) { + return nil, false + } + return o.AdminUrl, true +} + +// HasAdminUrl returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasAdminUrl() bool { + if o != nil && !IsNil(o.AdminUrl) { + return true + } + + return false +} + +// SetAdminUrl gets a reference to the given string and assigns it to the AdminUrl field. +func (o *OAuthClientRepresentation) SetAdminUrl(v string) { + o.AdminUrl = &v +} + +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetBaseUrl() string { + if o == nil || IsNil(o.BaseUrl) { + var ret string + return ret + } + return *o.BaseUrl +} + +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { + return nil, false + } + return o.BaseUrl, true +} + +// HasBaseUrl returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasBaseUrl() bool { + if o != nil && !IsNil(o.BaseUrl) { + return true + } + + return false +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *OAuthClientRepresentation) SetBaseUrl(v string) { + o.BaseUrl = &v +} + +// GetSurrogateAuthRequired returns the SurrogateAuthRequired field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetSurrogateAuthRequired() bool { + if o == nil || IsNil(o.SurrogateAuthRequired) { + var ret bool + return ret + } + return *o.SurrogateAuthRequired +} + +// GetSurrogateAuthRequiredOk returns a tuple with the SurrogateAuthRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetSurrogateAuthRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.SurrogateAuthRequired) { + return nil, false + } + return o.SurrogateAuthRequired, true +} + +// HasSurrogateAuthRequired returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasSurrogateAuthRequired() bool { + if o != nil && !IsNil(o.SurrogateAuthRequired) { + return true + } + + return false +} + +// SetSurrogateAuthRequired gets a reference to the given bool and assigns it to the SurrogateAuthRequired field. +func (o *OAuthClientRepresentation) SetSurrogateAuthRequired(v bool) { + o.SurrogateAuthRequired = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetAlwaysDisplayInConsole returns the AlwaysDisplayInConsole field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetAlwaysDisplayInConsole() bool { + if o == nil || IsNil(o.AlwaysDisplayInConsole) { + var ret bool + return ret + } + return *o.AlwaysDisplayInConsole +} + +// GetAlwaysDisplayInConsoleOk returns a tuple with the AlwaysDisplayInConsole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetAlwaysDisplayInConsoleOk() (*bool, bool) { + if o == nil || IsNil(o.AlwaysDisplayInConsole) { + return nil, false + } + return o.AlwaysDisplayInConsole, true +} + +// HasAlwaysDisplayInConsole returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasAlwaysDisplayInConsole() bool { + if o != nil && !IsNil(o.AlwaysDisplayInConsole) { + return true + } + + return false +} + +// SetAlwaysDisplayInConsole gets a reference to the given bool and assigns it to the AlwaysDisplayInConsole field. +func (o *OAuthClientRepresentation) SetAlwaysDisplayInConsole(v bool) { + o.AlwaysDisplayInConsole = &v +} + +// GetClientAuthenticatorType returns the ClientAuthenticatorType field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetClientAuthenticatorType() string { + if o == nil || IsNil(o.ClientAuthenticatorType) { + var ret string + return ret + } + return *o.ClientAuthenticatorType +} + +// GetClientAuthenticatorTypeOk returns a tuple with the ClientAuthenticatorType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetClientAuthenticatorTypeOk() (*string, bool) { + if o == nil || IsNil(o.ClientAuthenticatorType) { + return nil, false + } + return o.ClientAuthenticatorType, true +} + +// HasClientAuthenticatorType returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasClientAuthenticatorType() bool { + if o != nil && !IsNil(o.ClientAuthenticatorType) { + return true + } + + return false +} + +// SetClientAuthenticatorType gets a reference to the given string and assigns it to the ClientAuthenticatorType field. +func (o *OAuthClientRepresentation) SetClientAuthenticatorType(v string) { + o.ClientAuthenticatorType = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetSecret() string { + if o == nil || IsNil(o.Secret) { + var ret string + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetSecretOk() (*string, bool) { + if o == nil || IsNil(o.Secret) { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasSecret() bool { + if o != nil && !IsNil(o.Secret) { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *OAuthClientRepresentation) SetSecret(v string) { + o.Secret = &v +} + +// GetRegistrationAccessToken returns the RegistrationAccessToken field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetRegistrationAccessToken() string { + if o == nil || IsNil(o.RegistrationAccessToken) { + var ret string + return ret + } + return *o.RegistrationAccessToken +} + +// GetRegistrationAccessTokenOk returns a tuple with the RegistrationAccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetRegistrationAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.RegistrationAccessToken) { + return nil, false + } + return o.RegistrationAccessToken, true +} + +// HasRegistrationAccessToken returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasRegistrationAccessToken() bool { + if o != nil && !IsNil(o.RegistrationAccessToken) { + return true + } + + return false +} + +// SetRegistrationAccessToken gets a reference to the given string and assigns it to the RegistrationAccessToken field. +func (o *OAuthClientRepresentation) SetRegistrationAccessToken(v string) { + o.RegistrationAccessToken = &v +} + +// GetDefaultRoles returns the DefaultRoles field value if set, zero value otherwise. +// Deprecated +func (o *OAuthClientRepresentation) GetDefaultRoles() []string { + if o == nil || IsNil(o.DefaultRoles) { + var ret []string + return ret + } + return o.DefaultRoles +} + +// GetDefaultRolesOk returns a tuple with the DefaultRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *OAuthClientRepresentation) GetDefaultRolesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultRoles) { + return nil, false + } + return o.DefaultRoles, true +} + +// HasDefaultRoles returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasDefaultRoles() bool { + if o != nil && !IsNil(o.DefaultRoles) { + return true + } + + return false +} + +// SetDefaultRoles gets a reference to the given []string and assigns it to the DefaultRoles field. +// Deprecated +func (o *OAuthClientRepresentation) SetDefaultRoles(v []string) { + o.DefaultRoles = v +} + +// GetRedirectUris returns the RedirectUris field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetRedirectUris() []string { + if o == nil || IsNil(o.RedirectUris) { + var ret []string + return ret + } + return o.RedirectUris +} + +// GetRedirectUrisOk returns a tuple with the RedirectUris field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetRedirectUrisOk() ([]string, bool) { + if o == nil || IsNil(o.RedirectUris) { + return nil, false + } + return o.RedirectUris, true +} + +// HasRedirectUris returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasRedirectUris() bool { + if o != nil && !IsNil(o.RedirectUris) { + return true + } + + return false +} + +// SetRedirectUris gets a reference to the given []string and assigns it to the RedirectUris field. +func (o *OAuthClientRepresentation) SetRedirectUris(v []string) { + o.RedirectUris = v +} + +// GetWebOrigins returns the WebOrigins field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetWebOrigins() []string { + if o == nil || IsNil(o.WebOrigins) { + var ret []string + return ret + } + return o.WebOrigins +} + +// GetWebOriginsOk returns a tuple with the WebOrigins field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetWebOriginsOk() ([]string, bool) { + if o == nil || IsNil(o.WebOrigins) { + return nil, false + } + return o.WebOrigins, true +} + +// HasWebOrigins returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasWebOrigins() bool { + if o != nil && !IsNil(o.WebOrigins) { + return true + } + + return false +} + +// SetWebOrigins gets a reference to the given []string and assigns it to the WebOrigins field. +func (o *OAuthClientRepresentation) SetWebOrigins(v []string) { + o.WebOrigins = v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetNotBefore() int32 { + if o == nil || IsNil(o.NotBefore) { + var ret int32 + 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 *OAuthClientRepresentation) GetNotBeforeOk() (*int32, 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 *OAuthClientRepresentation) HasNotBefore() bool { + if o != nil && !IsNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given int32 and assigns it to the NotBefore field. +func (o *OAuthClientRepresentation) SetNotBefore(v int32) { + o.NotBefore = &v +} + +// GetBearerOnly returns the BearerOnly field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetBearerOnly() bool { + if o == nil || IsNil(o.BearerOnly) { + var ret bool + return ret + } + return *o.BearerOnly +} + +// GetBearerOnlyOk returns a tuple with the BearerOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetBearerOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.BearerOnly) { + return nil, false + } + return o.BearerOnly, true +} + +// HasBearerOnly returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasBearerOnly() bool { + if o != nil && !IsNil(o.BearerOnly) { + return true + } + + return false +} + +// SetBearerOnly gets a reference to the given bool and assigns it to the BearerOnly field. +func (o *OAuthClientRepresentation) SetBearerOnly(v bool) { + o.BearerOnly = &v +} + +// GetConsentRequired returns the ConsentRequired field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetConsentRequired() bool { + if o == nil || IsNil(o.ConsentRequired) { + var ret bool + return ret + } + return *o.ConsentRequired +} + +// GetConsentRequiredOk returns a tuple with the ConsentRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetConsentRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.ConsentRequired) { + return nil, false + } + return o.ConsentRequired, true +} + +// HasConsentRequired returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasConsentRequired() bool { + if o != nil && !IsNil(o.ConsentRequired) { + return true + } + + return false +} + +// SetConsentRequired gets a reference to the given bool and assigns it to the ConsentRequired field. +func (o *OAuthClientRepresentation) SetConsentRequired(v bool) { + o.ConsentRequired = &v +} + +// GetStandardFlowEnabled returns the StandardFlowEnabled field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetStandardFlowEnabled() bool { + if o == nil || IsNil(o.StandardFlowEnabled) { + var ret bool + return ret + } + return *o.StandardFlowEnabled +} + +// GetStandardFlowEnabledOk returns a tuple with the StandardFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetStandardFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.StandardFlowEnabled) { + return nil, false + } + return o.StandardFlowEnabled, true +} + +// HasStandardFlowEnabled returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasStandardFlowEnabled() bool { + if o != nil && !IsNil(o.StandardFlowEnabled) { + return true + } + + return false +} + +// SetStandardFlowEnabled gets a reference to the given bool and assigns it to the StandardFlowEnabled field. +func (o *OAuthClientRepresentation) SetStandardFlowEnabled(v bool) { + o.StandardFlowEnabled = &v +} + +// GetImplicitFlowEnabled returns the ImplicitFlowEnabled field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetImplicitFlowEnabled() bool { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + var ret bool + return ret + } + return *o.ImplicitFlowEnabled +} + +// GetImplicitFlowEnabledOk returns a tuple with the ImplicitFlowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetImplicitFlowEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ImplicitFlowEnabled) { + return nil, false + } + return o.ImplicitFlowEnabled, true +} + +// HasImplicitFlowEnabled returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasImplicitFlowEnabled() bool { + if o != nil && !IsNil(o.ImplicitFlowEnabled) { + return true + } + + return false +} + +// SetImplicitFlowEnabled gets a reference to the given bool and assigns it to the ImplicitFlowEnabled field. +func (o *OAuthClientRepresentation) SetImplicitFlowEnabled(v bool) { + o.ImplicitFlowEnabled = &v +} + +// GetDirectAccessGrantsEnabled returns the DirectAccessGrantsEnabled field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetDirectAccessGrantsEnabled() bool { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + var ret bool + return ret + } + return *o.DirectAccessGrantsEnabled +} + +// GetDirectAccessGrantsEnabledOk returns a tuple with the DirectAccessGrantsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetDirectAccessGrantsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.DirectAccessGrantsEnabled) { + return nil, false + } + return o.DirectAccessGrantsEnabled, true +} + +// HasDirectAccessGrantsEnabled returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasDirectAccessGrantsEnabled() bool { + if o != nil && !IsNil(o.DirectAccessGrantsEnabled) { + return true + } + + return false +} + +// SetDirectAccessGrantsEnabled gets a reference to the given bool and assigns it to the DirectAccessGrantsEnabled field. +func (o *OAuthClientRepresentation) SetDirectAccessGrantsEnabled(v bool) { + o.DirectAccessGrantsEnabled = &v +} + +// GetServiceAccountsEnabled returns the ServiceAccountsEnabled field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetServiceAccountsEnabled() bool { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + var ret bool + return ret + } + return *o.ServiceAccountsEnabled +} + +// GetServiceAccountsEnabledOk returns a tuple with the ServiceAccountsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetServiceAccountsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ServiceAccountsEnabled) { + return nil, false + } + return o.ServiceAccountsEnabled, true +} + +// HasServiceAccountsEnabled returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasServiceAccountsEnabled() bool { + if o != nil && !IsNil(o.ServiceAccountsEnabled) { + return true + } + + return false +} + +// SetServiceAccountsEnabled gets a reference to the given bool and assigns it to the ServiceAccountsEnabled field. +func (o *OAuthClientRepresentation) SetServiceAccountsEnabled(v bool) { + o.ServiceAccountsEnabled = &v +} + +// GetAuthorizationServicesEnabled returns the AuthorizationServicesEnabled field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetAuthorizationServicesEnabled() bool { + if o == nil || IsNil(o.AuthorizationServicesEnabled) { + var ret bool + return ret + } + return *o.AuthorizationServicesEnabled +} + +// GetAuthorizationServicesEnabledOk returns a tuple with the AuthorizationServicesEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetAuthorizationServicesEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AuthorizationServicesEnabled) { + return nil, false + } + return o.AuthorizationServicesEnabled, true +} + +// HasAuthorizationServicesEnabled returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasAuthorizationServicesEnabled() bool { + if o != nil && !IsNil(o.AuthorizationServicesEnabled) { + return true + } + + return false +} + +// SetAuthorizationServicesEnabled gets a reference to the given bool and assigns it to the AuthorizationServicesEnabled field. +func (o *OAuthClientRepresentation) SetAuthorizationServicesEnabled(v bool) { + o.AuthorizationServicesEnabled = &v +} + +// GetDirectGrantsOnly returns the DirectGrantsOnly field value if set, zero value otherwise. +// Deprecated +func (o *OAuthClientRepresentation) GetDirectGrantsOnly() bool { + if o == nil || IsNil(o.DirectGrantsOnly) { + var ret bool + return ret + } + return *o.DirectGrantsOnly +} + +// GetDirectGrantsOnlyOk returns a tuple with the DirectGrantsOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *OAuthClientRepresentation) GetDirectGrantsOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.DirectGrantsOnly) { + return nil, false + } + return o.DirectGrantsOnly, true +} + +// HasDirectGrantsOnly returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasDirectGrantsOnly() bool { + if o != nil && !IsNil(o.DirectGrantsOnly) { + return true + } + + return false +} + +// SetDirectGrantsOnly gets a reference to the given bool and assigns it to the DirectGrantsOnly field. +// Deprecated +func (o *OAuthClientRepresentation) SetDirectGrantsOnly(v bool) { + o.DirectGrantsOnly = &v +} + +// GetPublicClient returns the PublicClient field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetPublicClient() bool { + if o == nil || IsNil(o.PublicClient) { + var ret bool + return ret + } + return *o.PublicClient +} + +// GetPublicClientOk returns a tuple with the PublicClient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetPublicClientOk() (*bool, bool) { + if o == nil || IsNil(o.PublicClient) { + return nil, false + } + return o.PublicClient, true +} + +// HasPublicClient returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasPublicClient() bool { + if o != nil && !IsNil(o.PublicClient) { + return true + } + + return false +} + +// SetPublicClient gets a reference to the given bool and assigns it to the PublicClient field. +func (o *OAuthClientRepresentation) SetPublicClient(v bool) { + o.PublicClient = &v +} + +// GetFrontchannelLogout returns the FrontchannelLogout field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetFrontchannelLogout() bool { + if o == nil || IsNil(o.FrontchannelLogout) { + var ret bool + return ret + } + return *o.FrontchannelLogout +} + +// GetFrontchannelLogoutOk returns a tuple with the FrontchannelLogout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetFrontchannelLogoutOk() (*bool, bool) { + if o == nil || IsNil(o.FrontchannelLogout) { + return nil, false + } + return o.FrontchannelLogout, true +} + +// HasFrontchannelLogout returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasFrontchannelLogout() bool { + if o != nil && !IsNil(o.FrontchannelLogout) { + return true + } + + return false +} + +// SetFrontchannelLogout gets a reference to the given bool and assigns it to the FrontchannelLogout field. +func (o *OAuthClientRepresentation) SetFrontchannelLogout(v bool) { + o.FrontchannelLogout = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *OAuthClientRepresentation) SetProtocol(v string) { + o.Protocol = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetAttributes() map[string]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetAttributesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. +func (o *OAuthClientRepresentation) SetAttributes(v map[string]string) { + o.Attributes = &v +} + +// GetAuthenticationFlowBindingOverrides returns the AuthenticationFlowBindingOverrides field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetAuthenticationFlowBindingOverrides() map[string]string { + if o == nil || IsNil(o.AuthenticationFlowBindingOverrides) { + var ret map[string]string + return ret + } + return *o.AuthenticationFlowBindingOverrides +} + +// GetAuthenticationFlowBindingOverridesOk returns a tuple with the AuthenticationFlowBindingOverrides field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetAuthenticationFlowBindingOverridesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.AuthenticationFlowBindingOverrides) { + return nil, false + } + return o.AuthenticationFlowBindingOverrides, true +} + +// HasAuthenticationFlowBindingOverrides returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasAuthenticationFlowBindingOverrides() bool { + if o != nil && !IsNil(o.AuthenticationFlowBindingOverrides) { + return true + } + + return false +} + +// SetAuthenticationFlowBindingOverrides gets a reference to the given map[string]string and assigns it to the AuthenticationFlowBindingOverrides field. +func (o *OAuthClientRepresentation) SetAuthenticationFlowBindingOverrides(v map[string]string) { + o.AuthenticationFlowBindingOverrides = &v +} + +// GetFullScopeAllowed returns the FullScopeAllowed field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetFullScopeAllowed() bool { + if o == nil || IsNil(o.FullScopeAllowed) { + var ret bool + return ret + } + return *o.FullScopeAllowed +} + +// GetFullScopeAllowedOk returns a tuple with the FullScopeAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetFullScopeAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.FullScopeAllowed) { + return nil, false + } + return o.FullScopeAllowed, true +} + +// HasFullScopeAllowed returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasFullScopeAllowed() bool { + if o != nil && !IsNil(o.FullScopeAllowed) { + return true + } + + return false +} + +// SetFullScopeAllowed gets a reference to the given bool and assigns it to the FullScopeAllowed field. +func (o *OAuthClientRepresentation) SetFullScopeAllowed(v bool) { + o.FullScopeAllowed = &v +} + +// GetNodeReRegistrationTimeout returns the NodeReRegistrationTimeout field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetNodeReRegistrationTimeout() int32 { + if o == nil || IsNil(o.NodeReRegistrationTimeout) { + var ret int32 + return ret + } + return *o.NodeReRegistrationTimeout +} + +// GetNodeReRegistrationTimeoutOk returns a tuple with the NodeReRegistrationTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetNodeReRegistrationTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.NodeReRegistrationTimeout) { + return nil, false + } + return o.NodeReRegistrationTimeout, true +} + +// HasNodeReRegistrationTimeout returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasNodeReRegistrationTimeout() bool { + if o != nil && !IsNil(o.NodeReRegistrationTimeout) { + return true + } + + return false +} + +// SetNodeReRegistrationTimeout gets a reference to the given int32 and assigns it to the NodeReRegistrationTimeout field. +func (o *OAuthClientRepresentation) SetNodeReRegistrationTimeout(v int32) { + o.NodeReRegistrationTimeout = &v +} + +// GetRegisteredNodes returns the RegisteredNodes field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetRegisteredNodes() map[string]int32 { + if o == nil || IsNil(o.RegisteredNodes) { + var ret map[string]int32 + return ret + } + return *o.RegisteredNodes +} + +// GetRegisteredNodesOk returns a tuple with the RegisteredNodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetRegisteredNodesOk() (*map[string]int32, bool) { + if o == nil || IsNil(o.RegisteredNodes) { + return nil, false + } + return o.RegisteredNodes, true +} + +// HasRegisteredNodes returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasRegisteredNodes() bool { + if o != nil && !IsNil(o.RegisteredNodes) { + return true + } + + return false +} + +// SetRegisteredNodes gets a reference to the given map[string]int32 and assigns it to the RegisteredNodes field. +func (o *OAuthClientRepresentation) SetRegisteredNodes(v map[string]int32) { + o.RegisteredNodes = &v +} + +// GetProtocolMappers returns the ProtocolMappers field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation { + if o == nil || IsNil(o.ProtocolMappers) { + var ret []ProtocolMapperRepresentation + return ret + } + return o.ProtocolMappers +} + +// GetProtocolMappersOk returns a tuple with the ProtocolMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetProtocolMappersOk() ([]ProtocolMapperRepresentation, bool) { + if o == nil || IsNil(o.ProtocolMappers) { + return nil, false + } + return o.ProtocolMappers, true +} + +// HasProtocolMappers returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasProtocolMappers() bool { + if o != nil && !IsNil(o.ProtocolMappers) { + return true + } + + return false +} + +// SetProtocolMappers gets a reference to the given []ProtocolMapperRepresentation and assigns it to the ProtocolMappers field. +func (o *OAuthClientRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation) { + o.ProtocolMappers = v +} + +// GetClientTemplate returns the ClientTemplate field value if set, zero value otherwise. +// Deprecated +func (o *OAuthClientRepresentation) GetClientTemplate() string { + if o == nil || IsNil(o.ClientTemplate) { + var ret string + return ret + } + return *o.ClientTemplate +} + +// GetClientTemplateOk returns a tuple with the ClientTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *OAuthClientRepresentation) GetClientTemplateOk() (*string, bool) { + if o == nil || IsNil(o.ClientTemplate) { + return nil, false + } + return o.ClientTemplate, true +} + +// HasClientTemplate returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasClientTemplate() bool { + if o != nil && !IsNil(o.ClientTemplate) { + return true + } + + return false +} + +// SetClientTemplate gets a reference to the given string and assigns it to the ClientTemplate field. +// Deprecated +func (o *OAuthClientRepresentation) SetClientTemplate(v string) { + o.ClientTemplate = &v +} + +// GetUseTemplateConfig returns the UseTemplateConfig field value if set, zero value otherwise. +// Deprecated +func (o *OAuthClientRepresentation) GetUseTemplateConfig() bool { + if o == nil || IsNil(o.UseTemplateConfig) { + var ret bool + return ret + } + return *o.UseTemplateConfig +} + +// GetUseTemplateConfigOk returns a tuple with the UseTemplateConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *OAuthClientRepresentation) GetUseTemplateConfigOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateConfig) { + return nil, false + } + return o.UseTemplateConfig, true +} + +// HasUseTemplateConfig returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasUseTemplateConfig() bool { + if o != nil && !IsNil(o.UseTemplateConfig) { + return true + } + + return false +} + +// SetUseTemplateConfig gets a reference to the given bool and assigns it to the UseTemplateConfig field. +// Deprecated +func (o *OAuthClientRepresentation) SetUseTemplateConfig(v bool) { + o.UseTemplateConfig = &v +} + +// GetUseTemplateScope returns the UseTemplateScope field value if set, zero value otherwise. +// Deprecated +func (o *OAuthClientRepresentation) GetUseTemplateScope() bool { + if o == nil || IsNil(o.UseTemplateScope) { + var ret bool + return ret + } + return *o.UseTemplateScope +} + +// GetUseTemplateScopeOk returns a tuple with the UseTemplateScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *OAuthClientRepresentation) GetUseTemplateScopeOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateScope) { + return nil, false + } + return o.UseTemplateScope, true +} + +// HasUseTemplateScope returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasUseTemplateScope() bool { + if o != nil && !IsNil(o.UseTemplateScope) { + return true + } + + return false +} + +// SetUseTemplateScope gets a reference to the given bool and assigns it to the UseTemplateScope field. +// Deprecated +func (o *OAuthClientRepresentation) SetUseTemplateScope(v bool) { + o.UseTemplateScope = &v +} + +// GetUseTemplateMappers returns the UseTemplateMappers field value if set, zero value otherwise. +// Deprecated +func (o *OAuthClientRepresentation) GetUseTemplateMappers() bool { + if o == nil || IsNil(o.UseTemplateMappers) { + var ret bool + return ret + } + return *o.UseTemplateMappers +} + +// GetUseTemplateMappersOk returns a tuple with the UseTemplateMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *OAuthClientRepresentation) GetUseTemplateMappersOk() (*bool, bool) { + if o == nil || IsNil(o.UseTemplateMappers) { + return nil, false + } + return o.UseTemplateMappers, true +} + +// HasUseTemplateMappers returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasUseTemplateMappers() bool { + if o != nil && !IsNil(o.UseTemplateMappers) { + return true + } + + return false +} + +// SetUseTemplateMappers gets a reference to the given bool and assigns it to the UseTemplateMappers field. +// Deprecated +func (o *OAuthClientRepresentation) SetUseTemplateMappers(v bool) { + o.UseTemplateMappers = &v +} + +// GetDefaultClientScopes returns the DefaultClientScopes field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetDefaultClientScopes() []string { + if o == nil || IsNil(o.DefaultClientScopes) { + var ret []string + return ret + } + return o.DefaultClientScopes +} + +// GetDefaultClientScopesOk returns a tuple with the DefaultClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetDefaultClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultClientScopes) { + return nil, false + } + return o.DefaultClientScopes, true +} + +// HasDefaultClientScopes returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasDefaultClientScopes() bool { + if o != nil && !IsNil(o.DefaultClientScopes) { + return true + } + + return false +} + +// SetDefaultClientScopes gets a reference to the given []string and assigns it to the DefaultClientScopes field. +func (o *OAuthClientRepresentation) SetDefaultClientScopes(v []string) { + o.DefaultClientScopes = v +} + +// GetOptionalClientScopes returns the OptionalClientScopes field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetOptionalClientScopes() []string { + if o == nil || IsNil(o.OptionalClientScopes) { + var ret []string + return ret + } + return o.OptionalClientScopes +} + +// GetOptionalClientScopesOk returns a tuple with the OptionalClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetOptionalClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.OptionalClientScopes) { + return nil, false + } + return o.OptionalClientScopes, true +} + +// HasOptionalClientScopes returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasOptionalClientScopes() bool { + if o != nil && !IsNil(o.OptionalClientScopes) { + return true + } + + return false +} + +// SetOptionalClientScopes gets a reference to the given []string and assigns it to the OptionalClientScopes field. +func (o *OAuthClientRepresentation) SetOptionalClientScopes(v []string) { + o.OptionalClientScopes = v +} + +// GetAuthorizationSettings returns the AuthorizationSettings field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetAuthorizationSettings() ResourceServerRepresentation { + if o == nil || IsNil(o.AuthorizationSettings) { + var ret ResourceServerRepresentation + return ret + } + return *o.AuthorizationSettings +} + +// GetAuthorizationSettingsOk returns a tuple with the AuthorizationSettings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetAuthorizationSettingsOk() (*ResourceServerRepresentation, bool) { + if o == nil || IsNil(o.AuthorizationSettings) { + return nil, false + } + return o.AuthorizationSettings, true +} + +// HasAuthorizationSettings returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasAuthorizationSettings() bool { + if o != nil && !IsNil(o.AuthorizationSettings) { + return true + } + + return false +} + +// SetAuthorizationSettings gets a reference to the given ResourceServerRepresentation and assigns it to the AuthorizationSettings field. +func (o *OAuthClientRepresentation) SetAuthorizationSettings(v ResourceServerRepresentation) { + o.AuthorizationSettings = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetAccess() map[string]bool { + if o == nil || IsNil(o.Access) { + var ret map[string]bool + 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 *OAuthClientRepresentation) GetAccessOk() (*map[string]bool, 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 *OAuthClientRepresentation) HasAccess() bool { + if o != nil && !IsNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given map[string]bool and assigns it to the Access field. +func (o *OAuthClientRepresentation) SetAccess(v map[string]bool) { + o.Access = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuthClientRepresentation) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *OAuthClientRepresentation) SetOrigin(v string) { + o.Origin = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) 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 *OAuthClientRepresentation) SetName(v string) { + o.Name = &v +} + +// GetClaims returns the Claims field value if set, zero value otherwise. +// Deprecated +func (o *OAuthClientRepresentation) GetClaims() ClaimRepresentation { + if o == nil || IsNil(o.Claims) { + var ret ClaimRepresentation + return ret + } + return *o.Claims +} + +// GetClaimsOk returns a tuple with the Claims field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *OAuthClientRepresentation) GetClaimsOk() (*ClaimRepresentation, bool) { + if o == nil || IsNil(o.Claims) { + return nil, false + } + return o.Claims, true +} + +// HasClaims returns a boolean if a field has been set. +func (o *OAuthClientRepresentation) HasClaims() bool { + if o != nil && !IsNil(o.Claims) { + return true + } + + return false +} + +// SetClaims gets a reference to the given ClaimRepresentation and assigns it to the Claims field. +// Deprecated +func (o *OAuthClientRepresentation) SetClaims(v ClaimRepresentation) { + o.Claims = &v +} + +func (o OAuthClientRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OAuthClientRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.RootUrl) { + toSerialize["rootUrl"] = o.RootUrl + } + if !IsNil(o.AdminUrl) { + toSerialize["adminUrl"] = o.AdminUrl + } + if !IsNil(o.BaseUrl) { + toSerialize["baseUrl"] = o.BaseUrl + } + if !IsNil(o.SurrogateAuthRequired) { + toSerialize["surrogateAuthRequired"] = o.SurrogateAuthRequired + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.AlwaysDisplayInConsole) { + toSerialize["alwaysDisplayInConsole"] = o.AlwaysDisplayInConsole + } + if !IsNil(o.ClientAuthenticatorType) { + toSerialize["clientAuthenticatorType"] = o.ClientAuthenticatorType + } + if !IsNil(o.Secret) { + toSerialize["secret"] = o.Secret + } + if !IsNil(o.RegistrationAccessToken) { + toSerialize["registrationAccessToken"] = o.RegistrationAccessToken + } + if !IsNil(o.DefaultRoles) { + toSerialize["defaultRoles"] = o.DefaultRoles + } + if !IsNil(o.RedirectUris) { + toSerialize["redirectUris"] = o.RedirectUris + } + if !IsNil(o.WebOrigins) { + toSerialize["webOrigins"] = o.WebOrigins + } + if !IsNil(o.NotBefore) { + toSerialize["notBefore"] = o.NotBefore + } + if !IsNil(o.BearerOnly) { + toSerialize["bearerOnly"] = o.BearerOnly + } + if !IsNil(o.ConsentRequired) { + toSerialize["consentRequired"] = o.ConsentRequired + } + if !IsNil(o.StandardFlowEnabled) { + toSerialize["standardFlowEnabled"] = o.StandardFlowEnabled + } + if !IsNil(o.ImplicitFlowEnabled) { + toSerialize["implicitFlowEnabled"] = o.ImplicitFlowEnabled + } + if !IsNil(o.DirectAccessGrantsEnabled) { + toSerialize["directAccessGrantsEnabled"] = o.DirectAccessGrantsEnabled + } + if !IsNil(o.ServiceAccountsEnabled) { + toSerialize["serviceAccountsEnabled"] = o.ServiceAccountsEnabled + } + if !IsNil(o.AuthorizationServicesEnabled) { + toSerialize["authorizationServicesEnabled"] = o.AuthorizationServicesEnabled + } + if !IsNil(o.DirectGrantsOnly) { + toSerialize["directGrantsOnly"] = o.DirectGrantsOnly + } + if !IsNil(o.PublicClient) { + toSerialize["publicClient"] = o.PublicClient + } + if !IsNil(o.FrontchannelLogout) { + toSerialize["frontchannelLogout"] = o.FrontchannelLogout + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.AuthenticationFlowBindingOverrides) { + toSerialize["authenticationFlowBindingOverrides"] = o.AuthenticationFlowBindingOverrides + } + if !IsNil(o.FullScopeAllowed) { + toSerialize["fullScopeAllowed"] = o.FullScopeAllowed + } + if !IsNil(o.NodeReRegistrationTimeout) { + toSerialize["nodeReRegistrationTimeout"] = o.NodeReRegistrationTimeout + } + if !IsNil(o.RegisteredNodes) { + toSerialize["registeredNodes"] = o.RegisteredNodes + } + if !IsNil(o.ProtocolMappers) { + toSerialize["protocolMappers"] = o.ProtocolMappers + } + if !IsNil(o.ClientTemplate) { + toSerialize["clientTemplate"] = o.ClientTemplate + } + if !IsNil(o.UseTemplateConfig) { + toSerialize["useTemplateConfig"] = o.UseTemplateConfig + } + if !IsNil(o.UseTemplateScope) { + toSerialize["useTemplateScope"] = o.UseTemplateScope + } + if !IsNil(o.UseTemplateMappers) { + toSerialize["useTemplateMappers"] = o.UseTemplateMappers + } + if !IsNil(o.DefaultClientScopes) { + toSerialize["defaultClientScopes"] = o.DefaultClientScopes + } + if !IsNil(o.OptionalClientScopes) { + toSerialize["optionalClientScopes"] = o.OptionalClientScopes + } + if !IsNil(o.AuthorizationSettings) { + toSerialize["authorizationSettings"] = o.AuthorizationSettings + } + if !IsNil(o.Access) { + toSerialize["access"] = o.Access + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Claims) { + toSerialize["claims"] = o.Claims + } + return toSerialize, nil +} + +type NullableOAuthClientRepresentation struct { + value *OAuthClientRepresentation + isSet bool +} + +func (v NullableOAuthClientRepresentation) Get() *OAuthClientRepresentation { + return v.value +} + +func (v *NullableOAuthClientRepresentation) Set(val *OAuthClientRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableOAuthClientRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableOAuthClientRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOAuthClientRepresentation(val *OAuthClientRepresentation) *NullableOAuthClientRepresentation { + return &NullableOAuthClientRepresentation{value: val, isSet: true} +} + +func (v NullableOAuthClientRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOAuthClientRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_organization_domain_representation.go b/model_organization_domain_representation.go new file mode 100644 index 0000000..5a33e9c --- /dev/null +++ b/model_organization_domain_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the OrganizationDomainRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationDomainRepresentation{} + +// OrganizationDomainRepresentation struct for OrganizationDomainRepresentation +type OrganizationDomainRepresentation struct { + Name *string `json:"name,omitempty"` + Verified *bool `json:"verified,omitempty"` +} + +// NewOrganizationDomainRepresentation instantiates a new OrganizationDomainRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationDomainRepresentation() *OrganizationDomainRepresentation { + this := OrganizationDomainRepresentation{} + return &this +} + +// NewOrganizationDomainRepresentationWithDefaults instantiates a new OrganizationDomainRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationDomainRepresentationWithDefaults() *OrganizationDomainRepresentation { + this := OrganizationDomainRepresentation{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrganizationDomainRepresentation) 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 *OrganizationDomainRepresentation) 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 *OrganizationDomainRepresentation) 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 *OrganizationDomainRepresentation) SetName(v string) { + o.Name = &v +} + +// GetVerified returns the Verified field value if set, zero value otherwise. +func (o *OrganizationDomainRepresentation) GetVerified() bool { + if o == nil || IsNil(o.Verified) { + var ret bool + return ret + } + return *o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationDomainRepresentation) GetVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.Verified) { + return nil, false + } + return o.Verified, true +} + +// HasVerified returns a boolean if a field has been set. +func (o *OrganizationDomainRepresentation) HasVerified() bool { + if o != nil && !IsNil(o.Verified) { + return true + } + + return false +} + +// SetVerified gets a reference to the given bool and assigns it to the Verified field. +func (o *OrganizationDomainRepresentation) SetVerified(v bool) { + o.Verified = &v +} + +func (o OrganizationDomainRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationDomainRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Verified) { + toSerialize["verified"] = o.Verified + } + return toSerialize, nil +} + +type NullableOrganizationDomainRepresentation struct { + value *OrganizationDomainRepresentation + isSet bool +} + +func (v NullableOrganizationDomainRepresentation) Get() *OrganizationDomainRepresentation { + return v.value +} + +func (v *NullableOrganizationDomainRepresentation) Set(val *OrganizationDomainRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationDomainRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationDomainRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationDomainRepresentation(val *OrganizationDomainRepresentation) *NullableOrganizationDomainRepresentation { + return &NullableOrganizationDomainRepresentation{value: val, isSet: true} +} + +func (v NullableOrganizationDomainRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationDomainRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_organization_representation.go b/model_organization_representation.go new file mode 100644 index 0000000..7af1590 --- /dev/null +++ b/model_organization_representation.go @@ -0,0 +1,448 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the OrganizationRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationRepresentation{} + +// OrganizationRepresentation struct for OrganizationRepresentation +type OrganizationRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Alias *string `json:"alias,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + RedirectUrl *string `json:"redirectUrl,omitempty"` + Attributes *map[string][]string `json:"attributes,omitempty"` + Domains []OrganizationDomainRepresentation `json:"domains,omitempty"` + Members []MemberRepresentation `json:"members,omitempty"` + IdentityProviders []IdentityProviderRepresentation `json:"identityProviders,omitempty"` +} + +// NewOrganizationRepresentation instantiates a new OrganizationRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationRepresentation() *OrganizationRepresentation { + this := OrganizationRepresentation{} + return &this +} + +// NewOrganizationRepresentationWithDefaults instantiates a new OrganizationRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationRepresentationWithDefaults() *OrganizationRepresentation { + this := OrganizationRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) SetName(v string) { + o.Name = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) SetAlias(v string) { + o.Alias = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) 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 *OrganizationRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise. +func (o *OrganizationRepresentation) GetRedirectUrl() string { + if o == nil || IsNil(o.RedirectUrl) { + var ret string + return ret + } + return *o.RedirectUrl +} + +// GetRedirectUrlOk returns a tuple with the RedirectUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationRepresentation) GetRedirectUrlOk() (*string, bool) { + if o == nil || IsNil(o.RedirectUrl) { + return nil, false + } + return o.RedirectUrl, true +} + +// HasRedirectUrl returns a boolean if a field has been set. +func (o *OrganizationRepresentation) HasRedirectUrl() bool { + if o != nil && !IsNil(o.RedirectUrl) { + return true + } + + return false +} + +// SetRedirectUrl gets a reference to the given string and assigns it to the RedirectUrl field. +func (o *OrganizationRepresentation) SetRedirectUrl(v string) { + o.RedirectUrl = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *OrganizationRepresentation) GetAttributes() map[string][]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string][]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationRepresentation) GetAttributesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *OrganizationRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string][]string and assigns it to the Attributes field. +func (o *OrganizationRepresentation) SetAttributes(v map[string][]string) { + o.Attributes = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *OrganizationRepresentation) GetDomains() []OrganizationDomainRepresentation { + if o == nil || IsNil(o.Domains) { + var ret []OrganizationDomainRepresentation + return ret + } + return o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationRepresentation) GetDomainsOk() ([]OrganizationDomainRepresentation, bool) { + if o == nil || IsNil(o.Domains) { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *OrganizationRepresentation) HasDomains() bool { + if o != nil && !IsNil(o.Domains) { + return true + } + + return false +} + +// SetDomains gets a reference to the given []OrganizationDomainRepresentation and assigns it to the Domains field. +func (o *OrganizationRepresentation) SetDomains(v []OrganizationDomainRepresentation) { + o.Domains = v +} + +// GetMembers returns the Members field value if set, zero value otherwise. +func (o *OrganizationRepresentation) GetMembers() []MemberRepresentation { + if o == nil || IsNil(o.Members) { + var ret []MemberRepresentation + return ret + } + return o.Members +} + +// GetMembersOk returns a tuple with the Members field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationRepresentation) GetMembersOk() ([]MemberRepresentation, bool) { + if o == nil || IsNil(o.Members) { + return nil, false + } + return o.Members, true +} + +// HasMembers returns a boolean if a field has been set. +func (o *OrganizationRepresentation) HasMembers() bool { + if o != nil && !IsNil(o.Members) { + return true + } + + return false +} + +// SetMembers gets a reference to the given []MemberRepresentation and assigns it to the Members field. +func (o *OrganizationRepresentation) SetMembers(v []MemberRepresentation) { + o.Members = v +} + +// GetIdentityProviders returns the IdentityProviders field value if set, zero value otherwise. +func (o *OrganizationRepresentation) GetIdentityProviders() []IdentityProviderRepresentation { + if o == nil || IsNil(o.IdentityProviders) { + var ret []IdentityProviderRepresentation + return ret + } + return o.IdentityProviders +} + +// GetIdentityProvidersOk returns a tuple with the IdentityProviders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationRepresentation) GetIdentityProvidersOk() ([]IdentityProviderRepresentation, bool) { + if o == nil || IsNil(o.IdentityProviders) { + return nil, false + } + return o.IdentityProviders, true +} + +// HasIdentityProviders returns a boolean if a field has been set. +func (o *OrganizationRepresentation) HasIdentityProviders() bool { + if o != nil && !IsNil(o.IdentityProviders) { + return true + } + + return false +} + +// SetIdentityProviders gets a reference to the given []IdentityProviderRepresentation and assigns it to the IdentityProviders field. +func (o *OrganizationRepresentation) SetIdentityProviders(v []IdentityProviderRepresentation) { + o.IdentityProviders = v +} + +func (o OrganizationRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationRepresentation) 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.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.RedirectUrl) { + toSerialize["redirectUrl"] = o.RedirectUrl + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Domains) { + toSerialize["domains"] = o.Domains + } + if !IsNil(o.Members) { + toSerialize["members"] = o.Members + } + if !IsNil(o.IdentityProviders) { + toSerialize["identityProviders"] = o.IdentityProviders + } + return toSerialize, nil +} + +type NullableOrganizationRepresentation struct { + value *OrganizationRepresentation + isSet bool +} + +func (v NullableOrganizationRepresentation) Get() *OrganizationRepresentation { + return v.value +} + +func (v *NullableOrganizationRepresentation) Set(val *OrganizationRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationRepresentation(val *OrganizationRepresentation) *NullableOrganizationRepresentation { + return &NullableOrganizationRepresentation{value: val, isSet: true} +} + +func (v NullableOrganizationRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_path_cache_config.go b/model_path_cache_config.go new file mode 100644 index 0000000..078c806 --- /dev/null +++ b/model_path_cache_config.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PathCacheConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PathCacheConfig{} + +// PathCacheConfig struct for PathCacheConfig +type PathCacheConfig struct { + MaxEntries *int32 `json:"max-entries,omitempty"` + Lifespan *int64 `json:"lifespan,omitempty"` +} + +// NewPathCacheConfig instantiates a new PathCacheConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPathCacheConfig() *PathCacheConfig { + this := PathCacheConfig{} + return &this +} + +// NewPathCacheConfigWithDefaults instantiates a new PathCacheConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPathCacheConfigWithDefaults() *PathCacheConfig { + this := PathCacheConfig{} + return &this +} + +// GetMaxEntries returns the MaxEntries field value if set, zero value otherwise. +func (o *PathCacheConfig) GetMaxEntries() int32 { + if o == nil || IsNil(o.MaxEntries) { + var ret int32 + return ret + } + return *o.MaxEntries +} + +// GetMaxEntriesOk returns a tuple with the MaxEntries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathCacheConfig) GetMaxEntriesOk() (*int32, bool) { + if o == nil || IsNil(o.MaxEntries) { + return nil, false + } + return o.MaxEntries, true +} + +// HasMaxEntries returns a boolean if a field has been set. +func (o *PathCacheConfig) HasMaxEntries() bool { + if o != nil && !IsNil(o.MaxEntries) { + return true + } + + return false +} + +// SetMaxEntries gets a reference to the given int32 and assigns it to the MaxEntries field. +func (o *PathCacheConfig) SetMaxEntries(v int32) { + o.MaxEntries = &v +} + +// GetLifespan returns the Lifespan field value if set, zero value otherwise. +func (o *PathCacheConfig) GetLifespan() int64 { + if o == nil || IsNil(o.Lifespan) { + var ret int64 + return ret + } + return *o.Lifespan +} + +// GetLifespanOk returns a tuple with the Lifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathCacheConfig) GetLifespanOk() (*int64, bool) { + if o == nil || IsNil(o.Lifespan) { + return nil, false + } + return o.Lifespan, true +} + +// HasLifespan returns a boolean if a field has been set. +func (o *PathCacheConfig) HasLifespan() bool { + if o != nil && !IsNil(o.Lifespan) { + return true + } + + return false +} + +// SetLifespan gets a reference to the given int64 and assigns it to the Lifespan field. +func (o *PathCacheConfig) SetLifespan(v int64) { + o.Lifespan = &v +} + +func (o PathCacheConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PathCacheConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MaxEntries) { + toSerialize["max-entries"] = o.MaxEntries + } + if !IsNil(o.Lifespan) { + toSerialize["lifespan"] = o.Lifespan + } + return toSerialize, nil +} + +type NullablePathCacheConfig struct { + value *PathCacheConfig + isSet bool +} + +func (v NullablePathCacheConfig) Get() *PathCacheConfig { + return v.value +} + +func (v *NullablePathCacheConfig) Set(val *PathCacheConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePathCacheConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePathCacheConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePathCacheConfig(val *PathCacheConfig) *NullablePathCacheConfig { + return &NullablePathCacheConfig{value: val, isSet: true} +} + +func (v NullablePathCacheConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePathCacheConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_path_config.go b/model_path_config.go new file mode 100644 index 0000000..5a7bb91 --- /dev/null +++ b/model_path_config.go @@ -0,0 +1,484 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PathConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PathConfig{} + +// PathConfig struct for PathConfig +type PathConfig struct { + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + Path *string `json:"path,omitempty"` + Methods []MethodConfig `json:"methods,omitempty"` + Scopes []string `json:"scopes,omitempty"` + Id *string `json:"id,omitempty"` + EnforcementMode *EnforcementMode `json:"enforcement-mode,omitempty"` + ClaimInformationPoint *map[string]map[string]interface{} `json:"claim-information-point,omitempty"` + Invalidated *bool `json:"invalidated,omitempty"` + StaticPath *bool `json:"staticPath,omitempty"` + Static *bool `json:"static,omitempty"` +} + +// NewPathConfig instantiates a new PathConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPathConfig() *PathConfig { + this := PathConfig{} + return &this +} + +// NewPathConfigWithDefaults instantiates a new PathConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPathConfigWithDefaults() *PathConfig { + this := PathConfig{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PathConfig) 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 *PathConfig) 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 *PathConfig) 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 *PathConfig) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PathConfig) 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 *PathConfig) 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 *PathConfig) 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 *PathConfig) SetType(v string) { + o.Type = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *PathConfig) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *PathConfig) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *PathConfig) SetPath(v string) { + o.Path = &v +} + +// GetMethods returns the Methods field value if set, zero value otherwise. +func (o *PathConfig) GetMethods() []MethodConfig { + if o == nil || IsNil(o.Methods) { + var ret []MethodConfig + return ret + } + return o.Methods +} + +// GetMethodsOk returns a tuple with the Methods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetMethodsOk() ([]MethodConfig, bool) { + if o == nil || IsNil(o.Methods) { + return nil, false + } + return o.Methods, true +} + +// HasMethods returns a boolean if a field has been set. +func (o *PathConfig) HasMethods() bool { + if o != nil && !IsNil(o.Methods) { + return true + } + + return false +} + +// SetMethods gets a reference to the given []MethodConfig and assigns it to the Methods field. +func (o *PathConfig) SetMethods(v []MethodConfig) { + o.Methods = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *PathConfig) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *PathConfig) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *PathConfig) SetScopes(v []string) { + o.Scopes = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PathConfig) 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 *PathConfig) 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 *PathConfig) 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 *PathConfig) SetId(v string) { + o.Id = &v +} + +// GetEnforcementMode returns the EnforcementMode field value if set, zero value otherwise. +func (o *PathConfig) GetEnforcementMode() EnforcementMode { + if o == nil || IsNil(o.EnforcementMode) { + var ret EnforcementMode + return ret + } + return *o.EnforcementMode +} + +// GetEnforcementModeOk returns a tuple with the EnforcementMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetEnforcementModeOk() (*EnforcementMode, bool) { + if o == nil || IsNil(o.EnforcementMode) { + return nil, false + } + return o.EnforcementMode, true +} + +// HasEnforcementMode returns a boolean if a field has been set. +func (o *PathConfig) HasEnforcementMode() bool { + if o != nil && !IsNil(o.EnforcementMode) { + return true + } + + return false +} + +// SetEnforcementMode gets a reference to the given EnforcementMode and assigns it to the EnforcementMode field. +func (o *PathConfig) SetEnforcementMode(v EnforcementMode) { + o.EnforcementMode = &v +} + +// GetClaimInformationPoint returns the ClaimInformationPoint field value if set, zero value otherwise. +func (o *PathConfig) GetClaimInformationPoint() map[string]map[string]interface{} { + if o == nil || IsNil(o.ClaimInformationPoint) { + var ret map[string]map[string]interface{} + return ret + } + return *o.ClaimInformationPoint +} + +// GetClaimInformationPointOk returns a tuple with the ClaimInformationPoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetClaimInformationPointOk() (*map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.ClaimInformationPoint) { + return nil, false + } + return o.ClaimInformationPoint, true +} + +// HasClaimInformationPoint returns a boolean if a field has been set. +func (o *PathConfig) HasClaimInformationPoint() bool { + if o != nil && !IsNil(o.ClaimInformationPoint) { + return true + } + + return false +} + +// SetClaimInformationPoint gets a reference to the given map[string]map[string]interface{} and assigns it to the ClaimInformationPoint field. +func (o *PathConfig) SetClaimInformationPoint(v map[string]map[string]interface{}) { + o.ClaimInformationPoint = &v +} + +// GetInvalidated returns the Invalidated field value if set, zero value otherwise. +func (o *PathConfig) GetInvalidated() bool { + if o == nil || IsNil(o.Invalidated) { + var ret bool + return ret + } + return *o.Invalidated +} + +// GetInvalidatedOk returns a tuple with the Invalidated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetInvalidatedOk() (*bool, bool) { + if o == nil || IsNil(o.Invalidated) { + return nil, false + } + return o.Invalidated, true +} + +// HasInvalidated returns a boolean if a field has been set. +func (o *PathConfig) HasInvalidated() bool { + if o != nil && !IsNil(o.Invalidated) { + return true + } + + return false +} + +// SetInvalidated gets a reference to the given bool and assigns it to the Invalidated field. +func (o *PathConfig) SetInvalidated(v bool) { + o.Invalidated = &v +} + +// GetStaticPath returns the StaticPath field value if set, zero value otherwise. +func (o *PathConfig) GetStaticPath() bool { + if o == nil || IsNil(o.StaticPath) { + var ret bool + return ret + } + return *o.StaticPath +} + +// GetStaticPathOk returns a tuple with the StaticPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetStaticPathOk() (*bool, bool) { + if o == nil || IsNil(o.StaticPath) { + return nil, false + } + return o.StaticPath, true +} + +// HasStaticPath returns a boolean if a field has been set. +func (o *PathConfig) HasStaticPath() bool { + if o != nil && !IsNil(o.StaticPath) { + return true + } + + return false +} + +// SetStaticPath gets a reference to the given bool and assigns it to the StaticPath field. +func (o *PathConfig) SetStaticPath(v bool) { + o.StaticPath = &v +} + +// GetStatic returns the Static field value if set, zero value otherwise. +func (o *PathConfig) GetStatic() bool { + if o == nil || IsNil(o.Static) { + var ret bool + return ret + } + return *o.Static +} + +// GetStaticOk returns a tuple with the Static field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PathConfig) GetStaticOk() (*bool, bool) { + if o == nil || IsNil(o.Static) { + return nil, false + } + return o.Static, true +} + +// HasStatic returns a boolean if a field has been set. +func (o *PathConfig) HasStatic() bool { + if o != nil && !IsNil(o.Static) { + return true + } + + return false +} + +// SetStatic gets a reference to the given bool and assigns it to the Static field. +func (o *PathConfig) SetStatic(v bool) { + o.Static = &v +} + +func (o PathConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PathConfig) 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.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.Methods) { + toSerialize["methods"] = o.Methods + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.EnforcementMode) { + toSerialize["enforcement-mode"] = o.EnforcementMode + } + if !IsNil(o.ClaimInformationPoint) { + toSerialize["claim-information-point"] = o.ClaimInformationPoint + } + if !IsNil(o.Invalidated) { + toSerialize["invalidated"] = o.Invalidated + } + if !IsNil(o.StaticPath) { + toSerialize["staticPath"] = o.StaticPath + } + if !IsNil(o.Static) { + toSerialize["static"] = o.Static + } + return toSerialize, nil +} + +type NullablePathConfig struct { + value *PathConfig + isSet bool +} + +func (v NullablePathConfig) Get() *PathConfig { + return v.value +} + +func (v *NullablePathConfig) Set(val *PathConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePathConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePathConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePathConfig(val *PathConfig) *NullablePathConfig { + return &NullablePathConfig{value: val, isSet: true} +} + +func (v NullablePathConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePathConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_permission.go b/model_permission.go new file mode 100644 index 0000000..2c6a336 --- /dev/null +++ b/model_permission.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the Permission type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Permission{} + +// Permission struct for Permission +type Permission struct { + Rsid *string `json:"rsid,omitempty"` + Rsname *string `json:"rsname,omitempty"` + Scopes []string `json:"scopes,omitempty"` + Claims *map[string][]string `json:"claims,omitempty"` +} + +// NewPermission instantiates a new Permission object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermission() *Permission { + this := Permission{} + return &this +} + +// NewPermissionWithDefaults instantiates a new Permission object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionWithDefaults() *Permission { + this := Permission{} + return &this +} + +// GetRsid returns the Rsid field value if set, zero value otherwise. +func (o *Permission) GetRsid() string { + if o == nil || IsNil(o.Rsid) { + var ret string + return ret + } + return *o.Rsid +} + +// GetRsidOk returns a tuple with the Rsid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Permission) GetRsidOk() (*string, bool) { + if o == nil || IsNil(o.Rsid) { + return nil, false + } + return o.Rsid, true +} + +// HasRsid returns a boolean if a field has been set. +func (o *Permission) HasRsid() bool { + if o != nil && !IsNil(o.Rsid) { + return true + } + + return false +} + +// SetRsid gets a reference to the given string and assigns it to the Rsid field. +func (o *Permission) SetRsid(v string) { + o.Rsid = &v +} + +// GetRsname returns the Rsname field value if set, zero value otherwise. +func (o *Permission) GetRsname() string { + if o == nil || IsNil(o.Rsname) { + var ret string + return ret + } + return *o.Rsname +} + +// GetRsnameOk returns a tuple with the Rsname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Permission) GetRsnameOk() (*string, bool) { + if o == nil || IsNil(o.Rsname) { + return nil, false + } + return o.Rsname, true +} + +// HasRsname returns a boolean if a field has been set. +func (o *Permission) HasRsname() bool { + if o != nil && !IsNil(o.Rsname) { + return true + } + + return false +} + +// SetRsname gets a reference to the given string and assigns it to the Rsname field. +func (o *Permission) SetRsname(v string) { + o.Rsname = &v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *Permission) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Permission) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *Permission) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *Permission) SetScopes(v []string) { + o.Scopes = v +} + +// GetClaims returns the Claims field value if set, zero value otherwise. +func (o *Permission) GetClaims() map[string][]string { + if o == nil || IsNil(o.Claims) { + var ret map[string][]string + return ret + } + return *o.Claims +} + +// GetClaimsOk returns a tuple with the Claims field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Permission) GetClaimsOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Claims) { + return nil, false + } + return o.Claims, true +} + +// HasClaims returns a boolean if a field has been set. +func (o *Permission) HasClaims() bool { + if o != nil && !IsNil(o.Claims) { + return true + } + + return false +} + +// SetClaims gets a reference to the given map[string][]string and assigns it to the Claims field. +func (o *Permission) SetClaims(v map[string][]string) { + o.Claims = &v +} + +func (o Permission) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Permission) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Rsid) { + toSerialize["rsid"] = o.Rsid + } + if !IsNil(o.Rsname) { + toSerialize["rsname"] = o.Rsname + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.Claims) { + toSerialize["claims"] = o.Claims + } + return toSerialize, nil +} + +type NullablePermission struct { + value *Permission + isSet bool +} + +func (v NullablePermission) Get() *Permission { + return v.value +} + +func (v *NullablePermission) Set(val *Permission) { + v.value = val + v.isSet = true +} + +func (v NullablePermission) IsSet() bool { + return v.isSet +} + +func (v *NullablePermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermission(val *Permission) *NullablePermission { + return &NullablePermission{value: val, isSet: true} +} + +func (v NullablePermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_policy_enforcement_mode.go b/model_policy_enforcement_mode.go new file mode 100644 index 0000000..365c117 --- /dev/null +++ b/model_policy_enforcement_mode.go @@ -0,0 +1,112 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// PolicyEnforcementMode the model 'PolicyEnforcementMode' +type PolicyEnforcementMode string + +// List of PolicyEnforcementMode +const ( + POLICY_ENFORCING PolicyEnforcementMode = "ENFORCING" + POLICY_PERMISSIVE PolicyEnforcementMode = "PERMISSIVE" + POLICY_DISABLED PolicyEnforcementMode = "DISABLED" +) + +// All allowed values of PolicyEnforcementMode enum +var AllowedPolicyEnforcementModeEnumValues = []PolicyEnforcementMode{ + "ENFORCING", + "PERMISSIVE", + "DISABLED", +} + +func (v *PolicyEnforcementMode) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PolicyEnforcementMode(value) + for _, existing := range AllowedPolicyEnforcementModeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PolicyEnforcementMode", value) +} + +// NewPolicyEnforcementModeFromValue returns a pointer to a valid PolicyEnforcementMode +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPolicyEnforcementModeFromValue(v string) (*PolicyEnforcementMode, error) { + ev := PolicyEnforcementMode(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PolicyEnforcementMode: valid values are %v", v, AllowedPolicyEnforcementModeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PolicyEnforcementMode) IsValid() bool { + for _, existing := range AllowedPolicyEnforcementModeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PolicyEnforcementMode value +func (v PolicyEnforcementMode) Ptr() *PolicyEnforcementMode { + return &v +} + +type NullablePolicyEnforcementMode struct { + value *PolicyEnforcementMode + isSet bool +} + +func (v NullablePolicyEnforcementMode) Get() *PolicyEnforcementMode { + return v.value +} + +func (v *NullablePolicyEnforcementMode) Set(val *PolicyEnforcementMode) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyEnforcementMode) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyEnforcementMode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyEnforcementMode(val *PolicyEnforcementMode) *NullablePolicyEnforcementMode { + return &NullablePolicyEnforcementMode{value: val, isSet: true} +} + +func (v NullablePolicyEnforcementMode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyEnforcementMode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_policy_enforcer_config.go b/model_policy_enforcer_config.go new file mode 100644 index 0000000..30ec614 --- /dev/null +++ b/model_policy_enforcer_config.go @@ -0,0 +1,520 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PolicyEnforcerConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyEnforcerConfig{} + +// PolicyEnforcerConfig struct for PolicyEnforcerConfig +type PolicyEnforcerConfig struct { + EnforcementMode *EnforcementMode `json:"enforcement-mode,omitempty"` + Paths []PathConfig `json:"paths,omitempty"` + PathCache *PathCacheConfig `json:"path-cache,omitempty"` + LazyLoadPaths *bool `json:"lazy-load-paths,omitempty"` + OnDenyRedirectTo *string `json:"on-deny-redirect-to,omitempty"` + UserManagedAccess map[string]interface{} `json:"user-managed-access,omitempty"` + ClaimInformationPoint *map[string]map[string]interface{} `json:"claim-information-point,omitempty"` + HttpMethodAsScope *bool `json:"http-method-as-scope,omitempty"` + Realm *string `json:"realm,omitempty"` + AuthServerUrl *string `json:"auth-server-url,omitempty"` + Credentials map[string]interface{} `json:"credentials,omitempty"` + Resource *string `json:"resource,omitempty"` +} + +// NewPolicyEnforcerConfig instantiates a new PolicyEnforcerConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyEnforcerConfig() *PolicyEnforcerConfig { + this := PolicyEnforcerConfig{} + return &this +} + +// NewPolicyEnforcerConfigWithDefaults instantiates a new PolicyEnforcerConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyEnforcerConfigWithDefaults() *PolicyEnforcerConfig { + this := PolicyEnforcerConfig{} + return &this +} + +// GetEnforcementMode returns the EnforcementMode field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetEnforcementMode() EnforcementMode { + if o == nil || IsNil(o.EnforcementMode) { + var ret EnforcementMode + return ret + } + return *o.EnforcementMode +} + +// GetEnforcementModeOk returns a tuple with the EnforcementMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetEnforcementModeOk() (*EnforcementMode, bool) { + if o == nil || IsNil(o.EnforcementMode) { + return nil, false + } + return o.EnforcementMode, true +} + +// HasEnforcementMode returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasEnforcementMode() bool { + if o != nil && !IsNil(o.EnforcementMode) { + return true + } + + return false +} + +// SetEnforcementMode gets a reference to the given EnforcementMode and assigns it to the EnforcementMode field. +func (o *PolicyEnforcerConfig) SetEnforcementMode(v EnforcementMode) { + o.EnforcementMode = &v +} + +// GetPaths returns the Paths field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetPaths() []PathConfig { + if o == nil || IsNil(o.Paths) { + var ret []PathConfig + return ret + } + return o.Paths +} + +// GetPathsOk returns a tuple with the Paths field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetPathsOk() ([]PathConfig, bool) { + if o == nil || IsNil(o.Paths) { + return nil, false + } + return o.Paths, true +} + +// HasPaths returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasPaths() bool { + if o != nil && !IsNil(o.Paths) { + return true + } + + return false +} + +// SetPaths gets a reference to the given []PathConfig and assigns it to the Paths field. +func (o *PolicyEnforcerConfig) SetPaths(v []PathConfig) { + o.Paths = v +} + +// GetPathCache returns the PathCache field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetPathCache() PathCacheConfig { + if o == nil || IsNil(o.PathCache) { + var ret PathCacheConfig + return ret + } + return *o.PathCache +} + +// GetPathCacheOk returns a tuple with the PathCache field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetPathCacheOk() (*PathCacheConfig, bool) { + if o == nil || IsNil(o.PathCache) { + return nil, false + } + return o.PathCache, true +} + +// HasPathCache returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasPathCache() bool { + if o != nil && !IsNil(o.PathCache) { + return true + } + + return false +} + +// SetPathCache gets a reference to the given PathCacheConfig and assigns it to the PathCache field. +func (o *PolicyEnforcerConfig) SetPathCache(v PathCacheConfig) { + o.PathCache = &v +} + +// GetLazyLoadPaths returns the LazyLoadPaths field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetLazyLoadPaths() bool { + if o == nil || IsNil(o.LazyLoadPaths) { + var ret bool + return ret + } + return *o.LazyLoadPaths +} + +// GetLazyLoadPathsOk returns a tuple with the LazyLoadPaths field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetLazyLoadPathsOk() (*bool, bool) { + if o == nil || IsNil(o.LazyLoadPaths) { + return nil, false + } + return o.LazyLoadPaths, true +} + +// HasLazyLoadPaths returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasLazyLoadPaths() bool { + if o != nil && !IsNil(o.LazyLoadPaths) { + return true + } + + return false +} + +// SetLazyLoadPaths gets a reference to the given bool and assigns it to the LazyLoadPaths field. +func (o *PolicyEnforcerConfig) SetLazyLoadPaths(v bool) { + o.LazyLoadPaths = &v +} + +// GetOnDenyRedirectTo returns the OnDenyRedirectTo field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetOnDenyRedirectTo() string { + if o == nil || IsNil(o.OnDenyRedirectTo) { + var ret string + return ret + } + return *o.OnDenyRedirectTo +} + +// GetOnDenyRedirectToOk returns a tuple with the OnDenyRedirectTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetOnDenyRedirectToOk() (*string, bool) { + if o == nil || IsNil(o.OnDenyRedirectTo) { + return nil, false + } + return o.OnDenyRedirectTo, true +} + +// HasOnDenyRedirectTo returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasOnDenyRedirectTo() bool { + if o != nil && !IsNil(o.OnDenyRedirectTo) { + return true + } + + return false +} + +// SetOnDenyRedirectTo gets a reference to the given string and assigns it to the OnDenyRedirectTo field. +func (o *PolicyEnforcerConfig) SetOnDenyRedirectTo(v string) { + o.OnDenyRedirectTo = &v +} + +// GetUserManagedAccess returns the UserManagedAccess field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetUserManagedAccess() map[string]interface{} { + if o == nil || IsNil(o.UserManagedAccess) { + var ret map[string]interface{} + return ret + } + return o.UserManagedAccess +} + +// GetUserManagedAccessOk returns a tuple with the UserManagedAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetUserManagedAccessOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.UserManagedAccess) { + return map[string]interface{}{}, false + } + return o.UserManagedAccess, true +} + +// HasUserManagedAccess returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasUserManagedAccess() bool { + if o != nil && !IsNil(o.UserManagedAccess) { + return true + } + + return false +} + +// SetUserManagedAccess gets a reference to the given map[string]interface{} and assigns it to the UserManagedAccess field. +func (o *PolicyEnforcerConfig) SetUserManagedAccess(v map[string]interface{}) { + o.UserManagedAccess = v +} + +// GetClaimInformationPoint returns the ClaimInformationPoint field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetClaimInformationPoint() map[string]map[string]interface{} { + if o == nil || IsNil(o.ClaimInformationPoint) { + var ret map[string]map[string]interface{} + return ret + } + return *o.ClaimInformationPoint +} + +// GetClaimInformationPointOk returns a tuple with the ClaimInformationPoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetClaimInformationPointOk() (*map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.ClaimInformationPoint) { + return nil, false + } + return o.ClaimInformationPoint, true +} + +// HasClaimInformationPoint returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasClaimInformationPoint() bool { + if o != nil && !IsNil(o.ClaimInformationPoint) { + return true + } + + return false +} + +// SetClaimInformationPoint gets a reference to the given map[string]map[string]interface{} and assigns it to the ClaimInformationPoint field. +func (o *PolicyEnforcerConfig) SetClaimInformationPoint(v map[string]map[string]interface{}) { + o.ClaimInformationPoint = &v +} + +// GetHttpMethodAsScope returns the HttpMethodAsScope field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetHttpMethodAsScope() bool { + if o == nil || IsNil(o.HttpMethodAsScope) { + var ret bool + return ret + } + return *o.HttpMethodAsScope +} + +// GetHttpMethodAsScopeOk returns a tuple with the HttpMethodAsScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetHttpMethodAsScopeOk() (*bool, bool) { + if o == nil || IsNil(o.HttpMethodAsScope) { + return nil, false + } + return o.HttpMethodAsScope, true +} + +// HasHttpMethodAsScope returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasHttpMethodAsScope() bool { + if o != nil && !IsNil(o.HttpMethodAsScope) { + return true + } + + return false +} + +// SetHttpMethodAsScope gets a reference to the given bool and assigns it to the HttpMethodAsScope field. +func (o *PolicyEnforcerConfig) SetHttpMethodAsScope(v bool) { + o.HttpMethodAsScope = &v +} + +// GetRealm returns the Realm field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetRealm() string { + if o == nil || IsNil(o.Realm) { + var ret string + return ret + } + return *o.Realm +} + +// GetRealmOk returns a tuple with the Realm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetRealmOk() (*string, bool) { + if o == nil || IsNil(o.Realm) { + return nil, false + } + return o.Realm, true +} + +// HasRealm returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasRealm() bool { + if o != nil && !IsNil(o.Realm) { + return true + } + + return false +} + +// SetRealm gets a reference to the given string and assigns it to the Realm field. +func (o *PolicyEnforcerConfig) SetRealm(v string) { + o.Realm = &v +} + +// GetAuthServerUrl returns the AuthServerUrl field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetAuthServerUrl() string { + if o == nil || IsNil(o.AuthServerUrl) { + var ret string + return ret + } + return *o.AuthServerUrl +} + +// GetAuthServerUrlOk returns a tuple with the AuthServerUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetAuthServerUrlOk() (*string, bool) { + if o == nil || IsNil(o.AuthServerUrl) { + return nil, false + } + return o.AuthServerUrl, true +} + +// HasAuthServerUrl returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasAuthServerUrl() bool { + if o != nil && !IsNil(o.AuthServerUrl) { + return true + } + + return false +} + +// SetAuthServerUrl gets a reference to the given string and assigns it to the AuthServerUrl field. +func (o *PolicyEnforcerConfig) SetAuthServerUrl(v string) { + o.AuthServerUrl = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetCredentials() map[string]interface{} { + if o == nil || IsNil(o.Credentials) { + var ret map[string]interface{} + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetCredentialsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Credentials) { + return map[string]interface{}{}, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given map[string]interface{} and assigns it to the Credentials field. +func (o *PolicyEnforcerConfig) SetCredentials(v map[string]interface{}) { + o.Credentials = v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *PolicyEnforcerConfig) GetResource() string { + if o == nil || IsNil(o.Resource) { + var ret string + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEnforcerConfig) GetResourceOk() (*string, bool) { + if o == nil || IsNil(o.Resource) { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *PolicyEnforcerConfig) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given string and assigns it to the Resource field. +func (o *PolicyEnforcerConfig) SetResource(v string) { + o.Resource = &v +} + +func (o PolicyEnforcerConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyEnforcerConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EnforcementMode) { + toSerialize["enforcement-mode"] = o.EnforcementMode + } + if !IsNil(o.Paths) { + toSerialize["paths"] = o.Paths + } + if !IsNil(o.PathCache) { + toSerialize["path-cache"] = o.PathCache + } + if !IsNil(o.LazyLoadPaths) { + toSerialize["lazy-load-paths"] = o.LazyLoadPaths + } + if !IsNil(o.OnDenyRedirectTo) { + toSerialize["on-deny-redirect-to"] = o.OnDenyRedirectTo + } + if !IsNil(o.UserManagedAccess) { + toSerialize["user-managed-access"] = o.UserManagedAccess + } + if !IsNil(o.ClaimInformationPoint) { + toSerialize["claim-information-point"] = o.ClaimInformationPoint + } + if !IsNil(o.HttpMethodAsScope) { + toSerialize["http-method-as-scope"] = o.HttpMethodAsScope + } + if !IsNil(o.Realm) { + toSerialize["realm"] = o.Realm + } + if !IsNil(o.AuthServerUrl) { + toSerialize["auth-server-url"] = o.AuthServerUrl + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + return toSerialize, nil +} + +type NullablePolicyEnforcerConfig struct { + value *PolicyEnforcerConfig + isSet bool +} + +func (v NullablePolicyEnforcerConfig) Get() *PolicyEnforcerConfig { + return v.value +} + +func (v *NullablePolicyEnforcerConfig) Set(val *PolicyEnforcerConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyEnforcerConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyEnforcerConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyEnforcerConfig(val *PolicyEnforcerConfig) *NullablePolicyEnforcerConfig { + return &NullablePolicyEnforcerConfig{value: val, isSet: true} +} + +func (v NullablePolicyEnforcerConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyEnforcerConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_policy_evaluation_request.go b/model_policy_evaluation_request.go new file mode 100644 index 0000000..4d3f0a9 --- /dev/null +++ b/model_policy_evaluation_request.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PolicyEvaluationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyEvaluationRequest{} + +// PolicyEvaluationRequest struct for PolicyEvaluationRequest +type PolicyEvaluationRequest struct { + Context *map[string]map[string]string `json:"context,omitempty"` + Resources []ResourceRepresentation `json:"resources,omitempty"` + ClientId *string `json:"clientId,omitempty"` + UserId *string `json:"userId,omitempty"` + RoleIds []string `json:"roleIds,omitempty"` + Entitlements *bool `json:"entitlements,omitempty"` +} + +// NewPolicyEvaluationRequest instantiates a new PolicyEvaluationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyEvaluationRequest() *PolicyEvaluationRequest { + this := PolicyEvaluationRequest{} + return &this +} + +// NewPolicyEvaluationRequestWithDefaults instantiates a new PolicyEvaluationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyEvaluationRequestWithDefaults() *PolicyEvaluationRequest { + this := PolicyEvaluationRequest{} + return &this +} + +// GetContext returns the Context field value if set, zero value otherwise. +func (o *PolicyEvaluationRequest) GetContext() map[string]map[string]string { + if o == nil || IsNil(o.Context) { + var ret map[string]map[string]string + return ret + } + return *o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEvaluationRequest) GetContextOk() (*map[string]map[string]string, bool) { + if o == nil || IsNil(o.Context) { + return nil, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *PolicyEvaluationRequest) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given map[string]map[string]string and assigns it to the Context field. +func (o *PolicyEvaluationRequest) SetContext(v map[string]map[string]string) { + o.Context = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *PolicyEvaluationRequest) GetResources() []ResourceRepresentation { + if o == nil || IsNil(o.Resources) { + var ret []ResourceRepresentation + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEvaluationRequest) GetResourcesOk() ([]ResourceRepresentation, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *PolicyEvaluationRequest) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ResourceRepresentation and assigns it to the Resources field. +func (o *PolicyEvaluationRequest) SetResources(v []ResourceRepresentation) { + o.Resources = v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *PolicyEvaluationRequest) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEvaluationRequest) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *PolicyEvaluationRequest) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *PolicyEvaluationRequest) SetClientId(v string) { + o.ClientId = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *PolicyEvaluationRequest) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEvaluationRequest) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *PolicyEvaluationRequest) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *PolicyEvaluationRequest) SetUserId(v string) { + o.UserId = &v +} + +// GetRoleIds returns the RoleIds field value if set, zero value otherwise. +func (o *PolicyEvaluationRequest) GetRoleIds() []string { + if o == nil || IsNil(o.RoleIds) { + var ret []string + 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 *PolicyEvaluationRequest) GetRoleIdsOk() ([]string, 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 *PolicyEvaluationRequest) HasRoleIds() bool { + if o != nil && !IsNil(o.RoleIds) { + return true + } + + return false +} + +// SetRoleIds gets a reference to the given []string and assigns it to the RoleIds field. +func (o *PolicyEvaluationRequest) SetRoleIds(v []string) { + o.RoleIds = v +} + +// GetEntitlements returns the Entitlements field value if set, zero value otherwise. +func (o *PolicyEvaluationRequest) GetEntitlements() bool { + if o == nil || IsNil(o.Entitlements) { + var ret bool + return ret + } + return *o.Entitlements +} + +// GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEvaluationRequest) GetEntitlementsOk() (*bool, bool) { + if o == nil || IsNil(o.Entitlements) { + return nil, false + } + return o.Entitlements, true +} + +// HasEntitlements returns a boolean if a field has been set. +func (o *PolicyEvaluationRequest) HasEntitlements() bool { + if o != nil && !IsNil(o.Entitlements) { + return true + } + + return false +} + +// SetEntitlements gets a reference to the given bool and assigns it to the Entitlements field. +func (o *PolicyEvaluationRequest) SetEntitlements(v bool) { + o.Entitlements = &v +} + +func (o PolicyEvaluationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyEvaluationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Context) { + toSerialize["context"] = o.Context + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.RoleIds) { + toSerialize["roleIds"] = o.RoleIds + } + if !IsNil(o.Entitlements) { + toSerialize["entitlements"] = o.Entitlements + } + return toSerialize, nil +} + +type NullablePolicyEvaluationRequest struct { + value *PolicyEvaluationRequest + isSet bool +} + +func (v NullablePolicyEvaluationRequest) Get() *PolicyEvaluationRequest { + return v.value +} + +func (v *NullablePolicyEvaluationRequest) Set(val *PolicyEvaluationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyEvaluationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyEvaluationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyEvaluationRequest(val *PolicyEvaluationRequest) *NullablePolicyEvaluationRequest { + return &NullablePolicyEvaluationRequest{value: val, isSet: true} +} + +func (v NullablePolicyEvaluationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyEvaluationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_policy_evaluation_response.go b/model_policy_evaluation_response.go new file mode 100644 index 0000000..3b98b55 --- /dev/null +++ b/model_policy_evaluation_response.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PolicyEvaluationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyEvaluationResponse{} + +// PolicyEvaluationResponse struct for PolicyEvaluationResponse +type PolicyEvaluationResponse struct { + Results []EvaluationResultRepresentation `json:"results,omitempty"` + Entitlements *bool `json:"entitlements,omitempty"` + Status *DecisionEffect `json:"status,omitempty"` + Rpt *AccessToken `json:"rpt,omitempty"` +} + +// NewPolicyEvaluationResponse instantiates a new PolicyEvaluationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyEvaluationResponse() *PolicyEvaluationResponse { + this := PolicyEvaluationResponse{} + return &this +} + +// NewPolicyEvaluationResponseWithDefaults instantiates a new PolicyEvaluationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyEvaluationResponseWithDefaults() *PolicyEvaluationResponse { + this := PolicyEvaluationResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *PolicyEvaluationResponse) GetResults() []EvaluationResultRepresentation { + if o == nil || IsNil(o.Results) { + var ret []EvaluationResultRepresentation + 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 *PolicyEvaluationResponse) GetResultsOk() ([]EvaluationResultRepresentation, 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 *PolicyEvaluationResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []EvaluationResultRepresentation and assigns it to the Results field. +func (o *PolicyEvaluationResponse) SetResults(v []EvaluationResultRepresentation) { + o.Results = v +} + +// GetEntitlements returns the Entitlements field value if set, zero value otherwise. +func (o *PolicyEvaluationResponse) GetEntitlements() bool { + if o == nil || IsNil(o.Entitlements) { + var ret bool + return ret + } + return *o.Entitlements +} + +// GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEvaluationResponse) GetEntitlementsOk() (*bool, bool) { + if o == nil || IsNil(o.Entitlements) { + return nil, false + } + return o.Entitlements, true +} + +// HasEntitlements returns a boolean if a field has been set. +func (o *PolicyEvaluationResponse) HasEntitlements() bool { + if o != nil && !IsNil(o.Entitlements) { + return true + } + + return false +} + +// SetEntitlements gets a reference to the given bool and assigns it to the Entitlements field. +func (o *PolicyEvaluationResponse) SetEntitlements(v bool) { + o.Entitlements = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PolicyEvaluationResponse) GetStatus() DecisionEffect { + if o == nil || IsNil(o.Status) { + var ret DecisionEffect + 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 *PolicyEvaluationResponse) GetStatusOk() (*DecisionEffect, 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 *PolicyEvaluationResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given DecisionEffect and assigns it to the Status field. +func (o *PolicyEvaluationResponse) SetStatus(v DecisionEffect) { + o.Status = &v +} + +// GetRpt returns the Rpt field value if set, zero value otherwise. +func (o *PolicyEvaluationResponse) GetRpt() AccessToken { + if o == nil || IsNil(o.Rpt) { + var ret AccessToken + return ret + } + return *o.Rpt +} + +// GetRptOk returns a tuple with the Rpt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyEvaluationResponse) GetRptOk() (*AccessToken, bool) { + if o == nil || IsNil(o.Rpt) { + return nil, false + } + return o.Rpt, true +} + +// HasRpt returns a boolean if a field has been set. +func (o *PolicyEvaluationResponse) HasRpt() bool { + if o != nil && !IsNil(o.Rpt) { + return true + } + + return false +} + +// SetRpt gets a reference to the given AccessToken and assigns it to the Rpt field. +func (o *PolicyEvaluationResponse) SetRpt(v AccessToken) { + o.Rpt = &v +} + +func (o PolicyEvaluationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyEvaluationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + if !IsNil(o.Entitlements) { + toSerialize["entitlements"] = o.Entitlements + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Rpt) { + toSerialize["rpt"] = o.Rpt + } + return toSerialize, nil +} + +type NullablePolicyEvaluationResponse struct { + value *PolicyEvaluationResponse + isSet bool +} + +func (v NullablePolicyEvaluationResponse) Get() *PolicyEvaluationResponse { + return v.value +} + +func (v *NullablePolicyEvaluationResponse) Set(val *PolicyEvaluationResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyEvaluationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyEvaluationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyEvaluationResponse(val *PolicyEvaluationResponse) *NullablePolicyEvaluationResponse { + return &NullablePolicyEvaluationResponse{value: val, isSet: true} +} + +func (v NullablePolicyEvaluationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyEvaluationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_policy_provider_representation.go b/model_policy_provider_representation.go new file mode 100644 index 0000000..970ccd6 --- /dev/null +++ b/model_policy_provider_representation.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PolicyProviderRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyProviderRepresentation{} + +// PolicyProviderRepresentation struct for PolicyProviderRepresentation +type PolicyProviderRepresentation struct { + Type *string `json:"type,omitempty"` + Name *string `json:"name,omitempty"` + Group *string `json:"group,omitempty"` +} + +// NewPolicyProviderRepresentation instantiates a new PolicyProviderRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyProviderRepresentation() *PolicyProviderRepresentation { + this := PolicyProviderRepresentation{} + return &this +} + +// NewPolicyProviderRepresentationWithDefaults instantiates a new PolicyProviderRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyProviderRepresentationWithDefaults() *PolicyProviderRepresentation { + this := PolicyProviderRepresentation{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) SetType(v string) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) 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 *PolicyProviderRepresentation) SetName(v string) { + o.Name = &v +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *PolicyProviderRepresentation) GetGroup() string { + if o == nil || IsNil(o.Group) { + var ret string + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyProviderRepresentation) GetGroupOk() (*string, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *PolicyProviderRepresentation) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given string and assigns it to the Group field. +func (o *PolicyProviderRepresentation) SetGroup(v string) { + o.Group = &v +} + +func (o PolicyProviderRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyProviderRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + return toSerialize, nil +} + +type NullablePolicyProviderRepresentation struct { + value *PolicyProviderRepresentation + isSet bool +} + +func (v NullablePolicyProviderRepresentation) Get() *PolicyProviderRepresentation { + return v.value +} + +func (v *NullablePolicyProviderRepresentation) Set(val *PolicyProviderRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyProviderRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyProviderRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyProviderRepresentation(val *PolicyProviderRepresentation) *NullablePolicyProviderRepresentation { + return &NullablePolicyProviderRepresentation{value: val, isSet: true} +} + +func (v NullablePolicyProviderRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyProviderRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_policy_representation.go b/model_policy_representation.go new file mode 100644 index 0000000..891eb6b --- /dev/null +++ b/model_policy_representation.go @@ -0,0 +1,556 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PolicyRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyRepresentation{} + +// PolicyRepresentation struct for PolicyRepresentation +type PolicyRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Policies []string `json:"policies,omitempty"` + Resources []string `json:"resources,omitempty"` + Scopes []string `json:"scopes,omitempty"` + Logic *Logic `json:"logic,omitempty"` + DecisionStrategy *DecisionStrategy `json:"decisionStrategy,omitempty"` + Owner *string `json:"owner,omitempty"` + ResourcesData []ResourceRepresentation `json:"resourcesData,omitempty"` + ScopesData []ScopeRepresentation `json:"scopesData,omitempty"` + Config *map[string]string `json:"config,omitempty"` +} + +// NewPolicyRepresentation instantiates a new PolicyRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyRepresentation() *PolicyRepresentation { + this := PolicyRepresentation{} + return &this +} + +// NewPolicyRepresentationWithDefaults instantiates a new PolicyRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyRepresentationWithDefaults() *PolicyRepresentation { + this := PolicyRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) 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 *PolicyRepresentation) SetType(v string) { + o.Type = &v +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetPolicies() []string { + if o == nil || IsNil(o.Policies) { + var ret []string + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetPoliciesOk() ([]string, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []string and assigns it to the Policies field. +func (o *PolicyRepresentation) SetPolicies(v []string) { + o.Policies = v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetResources() []string { + if o == nil || IsNil(o.Resources) { + var ret []string + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetResourcesOk() ([]string, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []string and assigns it to the Resources field. +func (o *PolicyRepresentation) SetResources(v []string) { + o.Resources = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *PolicyRepresentation) SetScopes(v []string) { + o.Scopes = v +} + +// GetLogic returns the Logic field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetLogic() Logic { + if o == nil || IsNil(o.Logic) { + var ret Logic + return ret + } + return *o.Logic +} + +// GetLogicOk returns a tuple with the Logic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetLogicOk() (*Logic, bool) { + if o == nil || IsNil(o.Logic) { + return nil, false + } + return o.Logic, true +} + +// HasLogic returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasLogic() bool { + if o != nil && !IsNil(o.Logic) { + return true + } + + return false +} + +// SetLogic gets a reference to the given Logic and assigns it to the Logic field. +func (o *PolicyRepresentation) SetLogic(v Logic) { + o.Logic = &v +} + +// GetDecisionStrategy returns the DecisionStrategy field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetDecisionStrategy() DecisionStrategy { + if o == nil || IsNil(o.DecisionStrategy) { + var ret DecisionStrategy + return ret + } + return *o.DecisionStrategy +} + +// GetDecisionStrategyOk returns a tuple with the DecisionStrategy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetDecisionStrategyOk() (*DecisionStrategy, bool) { + if o == nil || IsNil(o.DecisionStrategy) { + return nil, false + } + return o.DecisionStrategy, true +} + +// HasDecisionStrategy returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasDecisionStrategy() bool { + if o != nil && !IsNil(o.DecisionStrategy) { + return true + } + + return false +} + +// SetDecisionStrategy gets a reference to the given DecisionStrategy and assigns it to the DecisionStrategy field. +func (o *PolicyRepresentation) SetDecisionStrategy(v DecisionStrategy) { + o.DecisionStrategy = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetOwner() string { + if o == nil || IsNil(o.Owner) { + var ret string + 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 *PolicyRepresentation) GetOwnerOk() (*string, 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 *PolicyRepresentation) HasOwner() bool { + if o != nil && !IsNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *PolicyRepresentation) SetOwner(v string) { + o.Owner = &v +} + +// GetResourcesData returns the ResourcesData field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetResourcesData() []ResourceRepresentation { + if o == nil || IsNil(o.ResourcesData) { + var ret []ResourceRepresentation + return ret + } + return o.ResourcesData +} + +// GetResourcesDataOk returns a tuple with the ResourcesData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetResourcesDataOk() ([]ResourceRepresentation, bool) { + if o == nil || IsNil(o.ResourcesData) { + return nil, false + } + return o.ResourcesData, true +} + +// HasResourcesData returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasResourcesData() bool { + if o != nil && !IsNil(o.ResourcesData) { + return true + } + + return false +} + +// SetResourcesData gets a reference to the given []ResourceRepresentation and assigns it to the ResourcesData field. +func (o *PolicyRepresentation) SetResourcesData(v []ResourceRepresentation) { + o.ResourcesData = v +} + +// GetScopesData returns the ScopesData field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetScopesData() []ScopeRepresentation { + if o == nil || IsNil(o.ScopesData) { + var ret []ScopeRepresentation + return ret + } + return o.ScopesData +} + +// GetScopesDataOk returns a tuple with the ScopesData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetScopesDataOk() ([]ScopeRepresentation, bool) { + if o == nil || IsNil(o.ScopesData) { + return nil, false + } + return o.ScopesData, true +} + +// HasScopesData returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasScopesData() bool { + if o != nil && !IsNil(o.ScopesData) { + return true + } + + return false +} + +// SetScopesData gets a reference to the given []ScopeRepresentation and assigns it to the ScopesData field. +func (o *PolicyRepresentation) SetScopesData(v []ScopeRepresentation) { + o.ScopesData = v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *PolicyRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *PolicyRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *PolicyRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +func (o PolicyRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyRepresentation) 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.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.Logic) { + toSerialize["logic"] = o.Logic + } + if !IsNil(o.DecisionStrategy) { + toSerialize["decisionStrategy"] = o.DecisionStrategy + } + if !IsNil(o.Owner) { + toSerialize["owner"] = o.Owner + } + if !IsNil(o.ResourcesData) { + toSerialize["resourcesData"] = o.ResourcesData + } + if !IsNil(o.ScopesData) { + toSerialize["scopesData"] = o.ScopesData + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullablePolicyRepresentation struct { + value *PolicyRepresentation + isSet bool +} + +func (v NullablePolicyRepresentation) Get() *PolicyRepresentation { + return v.value +} + +func (v *NullablePolicyRepresentation) Set(val *PolicyRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyRepresentation(val *PolicyRepresentation) *NullablePolicyRepresentation { + return &NullablePolicyRepresentation{value: val, isSet: true} +} + +func (v NullablePolicyRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_policy_result_representation.go b/model_policy_result_representation.go new file mode 100644 index 0000000..ba76584 --- /dev/null +++ b/model_policy_result_representation.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PolicyResultRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyResultRepresentation{} + +// PolicyResultRepresentation struct for PolicyResultRepresentation +type PolicyResultRepresentation struct { + Policy *PolicyRepresentation `json:"policy,omitempty"` + Status *DecisionEffect `json:"status,omitempty"` + AssociatedPolicies []PolicyResultRepresentation `json:"associatedPolicies,omitempty"` + Scopes []string `json:"scopes,omitempty"` +} + +// NewPolicyResultRepresentation instantiates a new PolicyResultRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyResultRepresentation() *PolicyResultRepresentation { + this := PolicyResultRepresentation{} + return &this +} + +// NewPolicyResultRepresentationWithDefaults instantiates a new PolicyResultRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyResultRepresentationWithDefaults() *PolicyResultRepresentation { + this := PolicyResultRepresentation{} + return &this +} + +// GetPolicy returns the Policy field value if set, zero value otherwise. +func (o *PolicyResultRepresentation) GetPolicy() PolicyRepresentation { + if o == nil || IsNil(o.Policy) { + var ret PolicyRepresentation + return ret + } + return *o.Policy +} + +// GetPolicyOk returns a tuple with the Policy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyResultRepresentation) GetPolicyOk() (*PolicyRepresentation, bool) { + if o == nil || IsNil(o.Policy) { + return nil, false + } + return o.Policy, true +} + +// HasPolicy returns a boolean if a field has been set. +func (o *PolicyResultRepresentation) HasPolicy() bool { + if o != nil && !IsNil(o.Policy) { + return true + } + + return false +} + +// SetPolicy gets a reference to the given PolicyRepresentation and assigns it to the Policy field. +func (o *PolicyResultRepresentation) SetPolicy(v PolicyRepresentation) { + o.Policy = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PolicyResultRepresentation) GetStatus() DecisionEffect { + if o == nil || IsNil(o.Status) { + var ret DecisionEffect + 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 *PolicyResultRepresentation) GetStatusOk() (*DecisionEffect, 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 *PolicyResultRepresentation) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given DecisionEffect and assigns it to the Status field. +func (o *PolicyResultRepresentation) SetStatus(v DecisionEffect) { + o.Status = &v +} + +// GetAssociatedPolicies returns the AssociatedPolicies field value if set, zero value otherwise. +func (o *PolicyResultRepresentation) GetAssociatedPolicies() []PolicyResultRepresentation { + if o == nil || IsNil(o.AssociatedPolicies) { + var ret []PolicyResultRepresentation + return ret + } + return o.AssociatedPolicies +} + +// GetAssociatedPoliciesOk returns a tuple with the AssociatedPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyResultRepresentation) GetAssociatedPoliciesOk() ([]PolicyResultRepresentation, bool) { + if o == nil || IsNil(o.AssociatedPolicies) { + return nil, false + } + return o.AssociatedPolicies, true +} + +// HasAssociatedPolicies returns a boolean if a field has been set. +func (o *PolicyResultRepresentation) HasAssociatedPolicies() bool { + if o != nil && !IsNil(o.AssociatedPolicies) { + return true + } + + return false +} + +// SetAssociatedPolicies gets a reference to the given []PolicyResultRepresentation and assigns it to the AssociatedPolicies field. +func (o *PolicyResultRepresentation) SetAssociatedPolicies(v []PolicyResultRepresentation) { + o.AssociatedPolicies = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *PolicyResultRepresentation) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyResultRepresentation) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *PolicyResultRepresentation) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *PolicyResultRepresentation) SetScopes(v []string) { + o.Scopes = v +} + +func (o PolicyResultRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyResultRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Policy) { + toSerialize["policy"] = o.Policy + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.AssociatedPolicies) { + toSerialize["associatedPolicies"] = o.AssociatedPolicies + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + return toSerialize, nil +} + +type NullablePolicyResultRepresentation struct { + value *PolicyResultRepresentation + isSet bool +} + +func (v NullablePolicyResultRepresentation) Get() *PolicyResultRepresentation { + return v.value +} + +func (v *NullablePolicyResultRepresentation) Set(val *PolicyResultRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyResultRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyResultRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyResultRepresentation(val *PolicyResultRepresentation) *NullablePolicyResultRepresentation { + return &NullablePolicyResultRepresentation{value: val, isSet: true} +} + +func (v NullablePolicyResultRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyResultRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_property_config.go b/model_property_config.go new file mode 100644 index 0000000..66cdd12 --- /dev/null +++ b/model_property_config.go @@ -0,0 +1,161 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PropertyConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PropertyConfig{} + +// PropertyConfig struct for PropertyConfig +type PropertyConfig struct { + Applicable *bool `json:"applicable,omitempty"` + Value interface{} `json:"value,omitempty"` +} + +// NewPropertyConfig instantiates a new PropertyConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPropertyConfig() *PropertyConfig { + this := PropertyConfig{} + return &this +} + +// NewPropertyConfigWithDefaults instantiates a new PropertyConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPropertyConfigWithDefaults() *PropertyConfig { + this := PropertyConfig{} + return &this +} + +// GetApplicable returns the Applicable field value if set, zero value otherwise. +func (o *PropertyConfig) GetApplicable() bool { + if o == nil || IsNil(o.Applicable) { + var ret bool + return ret + } + return *o.Applicable +} + +// GetApplicableOk returns a tuple with the Applicable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PropertyConfig) GetApplicableOk() (*bool, bool) { + if o == nil || IsNil(o.Applicable) { + return nil, false + } + return o.Applicable, true +} + +// HasApplicable returns a boolean if a field has been set. +func (o *PropertyConfig) HasApplicable() bool { + if o != nil && !IsNil(o.Applicable) { + return true + } + + return false +} + +// SetApplicable gets a reference to the given bool and assigns it to the Applicable field. +func (o *PropertyConfig) SetApplicable(v bool) { + o.Applicable = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PropertyConfig) GetValue() interface{} { + if o == nil { + var ret interface{} + 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. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PropertyConfig) GetValueOk() (*interface{}, 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 *PropertyConfig) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given interface{} and assigns it to the Value field. +func (o *PropertyConfig) SetValue(v interface{}) { + o.Value = v +} + +func (o PropertyConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PropertyConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Applicable) { + toSerialize["applicable"] = o.Applicable + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullablePropertyConfig struct { + value *PropertyConfig + isSet bool +} + +func (v NullablePropertyConfig) Get() *PropertyConfig { + return v.value +} + +func (v *NullablePropertyConfig) Set(val *PropertyConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePropertyConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePropertyConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePropertyConfig(val *PropertyConfig) *NullablePropertyConfig { + return &NullablePropertyConfig{value: val, isSet: true} +} + +func (v NullablePropertyConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePropertyConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_protocol_mapper_evaluation_representation.go b/model_protocol_mapper_evaluation_representation.go new file mode 100644 index 0000000..18ad71b --- /dev/null +++ b/model_protocol_mapper_evaluation_representation.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ProtocolMapperEvaluationRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProtocolMapperEvaluationRepresentation{} + +// ProtocolMapperEvaluationRepresentation struct for ProtocolMapperEvaluationRepresentation +type ProtocolMapperEvaluationRepresentation struct { + MapperId *string `json:"mapperId,omitempty"` + MapperName *string `json:"mapperName,omitempty"` + ContainerId *string `json:"containerId,omitempty"` + ContainerName *string `json:"containerName,omitempty"` + ContainerType *string `json:"containerType,omitempty"` + ProtocolMapper *string `json:"protocolMapper,omitempty"` +} + +// NewProtocolMapperEvaluationRepresentation instantiates a new ProtocolMapperEvaluationRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProtocolMapperEvaluationRepresentation() *ProtocolMapperEvaluationRepresentation { + this := ProtocolMapperEvaluationRepresentation{} + return &this +} + +// NewProtocolMapperEvaluationRepresentationWithDefaults instantiates a new ProtocolMapperEvaluationRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProtocolMapperEvaluationRepresentationWithDefaults() *ProtocolMapperEvaluationRepresentation { + this := ProtocolMapperEvaluationRepresentation{} + return &this +} + +// GetMapperId returns the MapperId field value if set, zero value otherwise. +func (o *ProtocolMapperEvaluationRepresentation) GetMapperId() string { + if o == nil || IsNil(o.MapperId) { + var ret string + return ret + } + return *o.MapperId +} + +// GetMapperIdOk returns a tuple with the MapperId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolMapperEvaluationRepresentation) GetMapperIdOk() (*string, bool) { + if o == nil || IsNil(o.MapperId) { + return nil, false + } + return o.MapperId, true +} + +// HasMapperId returns a boolean if a field has been set. +func (o *ProtocolMapperEvaluationRepresentation) HasMapperId() bool { + if o != nil && !IsNil(o.MapperId) { + return true + } + + return false +} + +// SetMapperId gets a reference to the given string and assigns it to the MapperId field. +func (o *ProtocolMapperEvaluationRepresentation) SetMapperId(v string) { + o.MapperId = &v +} + +// GetMapperName returns the MapperName field value if set, zero value otherwise. +func (o *ProtocolMapperEvaluationRepresentation) GetMapperName() string { + if o == nil || IsNil(o.MapperName) { + var ret string + return ret + } + return *o.MapperName +} + +// GetMapperNameOk returns a tuple with the MapperName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolMapperEvaluationRepresentation) GetMapperNameOk() (*string, bool) { + if o == nil || IsNil(o.MapperName) { + return nil, false + } + return o.MapperName, true +} + +// HasMapperName returns a boolean if a field has been set. +func (o *ProtocolMapperEvaluationRepresentation) HasMapperName() bool { + if o != nil && !IsNil(o.MapperName) { + return true + } + + return false +} + +// SetMapperName gets a reference to the given string and assigns it to the MapperName field. +func (o *ProtocolMapperEvaluationRepresentation) SetMapperName(v string) { + o.MapperName = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *ProtocolMapperEvaluationRepresentation) GetContainerId() string { + if o == nil || IsNil(o.ContainerId) { + var ret string + 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 *ProtocolMapperEvaluationRepresentation) GetContainerIdOk() (*string, 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 *ProtocolMapperEvaluationRepresentation) HasContainerId() bool { + if o != nil && !IsNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given string and assigns it to the ContainerId field. +func (o *ProtocolMapperEvaluationRepresentation) SetContainerId(v string) { + o.ContainerId = &v +} + +// GetContainerName returns the ContainerName field value if set, zero value otherwise. +func (o *ProtocolMapperEvaluationRepresentation) 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 *ProtocolMapperEvaluationRepresentation) 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 *ProtocolMapperEvaluationRepresentation) 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 *ProtocolMapperEvaluationRepresentation) SetContainerName(v string) { + o.ContainerName = &v +} + +// GetContainerType returns the ContainerType field value if set, zero value otherwise. +func (o *ProtocolMapperEvaluationRepresentation) GetContainerType() string { + if o == nil || IsNil(o.ContainerType) { + var ret string + return ret + } + return *o.ContainerType +} + +// GetContainerTypeOk returns a tuple with the ContainerType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolMapperEvaluationRepresentation) GetContainerTypeOk() (*string, bool) { + if o == nil || IsNil(o.ContainerType) { + return nil, false + } + return o.ContainerType, true +} + +// HasContainerType returns a boolean if a field has been set. +func (o *ProtocolMapperEvaluationRepresentation) HasContainerType() bool { + if o != nil && !IsNil(o.ContainerType) { + return true + } + + return false +} + +// SetContainerType gets a reference to the given string and assigns it to the ContainerType field. +func (o *ProtocolMapperEvaluationRepresentation) SetContainerType(v string) { + o.ContainerType = &v +} + +// GetProtocolMapper returns the ProtocolMapper field value if set, zero value otherwise. +func (o *ProtocolMapperEvaluationRepresentation) GetProtocolMapper() string { + if o == nil || IsNil(o.ProtocolMapper) { + var ret string + return ret + } + return *o.ProtocolMapper +} + +// GetProtocolMapperOk returns a tuple with the ProtocolMapper field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolMapperEvaluationRepresentation) GetProtocolMapperOk() (*string, bool) { + if o == nil || IsNil(o.ProtocolMapper) { + return nil, false + } + return o.ProtocolMapper, true +} + +// HasProtocolMapper returns a boolean if a field has been set. +func (o *ProtocolMapperEvaluationRepresentation) HasProtocolMapper() bool { + if o != nil && !IsNil(o.ProtocolMapper) { + return true + } + + return false +} + +// SetProtocolMapper gets a reference to the given string and assigns it to the ProtocolMapper field. +func (o *ProtocolMapperEvaluationRepresentation) SetProtocolMapper(v string) { + o.ProtocolMapper = &v +} + +func (o ProtocolMapperEvaluationRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProtocolMapperEvaluationRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MapperId) { + toSerialize["mapperId"] = o.MapperId + } + if !IsNil(o.MapperName) { + toSerialize["mapperName"] = o.MapperName + } + if !IsNil(o.ContainerId) { + toSerialize["containerId"] = o.ContainerId + } + if !IsNil(o.ContainerName) { + toSerialize["containerName"] = o.ContainerName + } + if !IsNil(o.ContainerType) { + toSerialize["containerType"] = o.ContainerType + } + if !IsNil(o.ProtocolMapper) { + toSerialize["protocolMapper"] = o.ProtocolMapper + } + return toSerialize, nil +} + +type NullableProtocolMapperEvaluationRepresentation struct { + value *ProtocolMapperEvaluationRepresentation + isSet bool +} + +func (v NullableProtocolMapperEvaluationRepresentation) Get() *ProtocolMapperEvaluationRepresentation { + return v.value +} + +func (v *NullableProtocolMapperEvaluationRepresentation) Set(val *ProtocolMapperEvaluationRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableProtocolMapperEvaluationRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableProtocolMapperEvaluationRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProtocolMapperEvaluationRepresentation(val *ProtocolMapperEvaluationRepresentation) *NullableProtocolMapperEvaluationRepresentation { + return &NullableProtocolMapperEvaluationRepresentation{value: val, isSet: true} +} + +func (v NullableProtocolMapperEvaluationRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProtocolMapperEvaluationRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_protocol_mapper_representation.go b/model_protocol_mapper_representation.go new file mode 100644 index 0000000..ac9d45f --- /dev/null +++ b/model_protocol_mapper_representation.go @@ -0,0 +1,348 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ProtocolMapperRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProtocolMapperRepresentation{} + +// ProtocolMapperRepresentation struct for ProtocolMapperRepresentation +type ProtocolMapperRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *string `json:"protocol,omitempty"` + ProtocolMapper *string `json:"protocolMapper,omitempty"` + // Deprecated + ConsentRequired *bool `json:"consentRequired,omitempty"` + // Deprecated + ConsentText *string `json:"consentText,omitempty"` + Config *map[string]string `json:"config,omitempty"` +} + +// NewProtocolMapperRepresentation instantiates a new ProtocolMapperRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProtocolMapperRepresentation() *ProtocolMapperRepresentation { + this := ProtocolMapperRepresentation{} + return &this +} + +// NewProtocolMapperRepresentationWithDefaults instantiates a new ProtocolMapperRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProtocolMapperRepresentationWithDefaults() *ProtocolMapperRepresentation { + this := ProtocolMapperRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) 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 *ProtocolMapperRepresentation) SetName(v string) { + o.Name = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *ProtocolMapperRepresentation) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolMapperRepresentation) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *ProtocolMapperRepresentation) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *ProtocolMapperRepresentation) SetProtocol(v string) { + o.Protocol = &v +} + +// GetProtocolMapper returns the ProtocolMapper field value if set, zero value otherwise. +func (o *ProtocolMapperRepresentation) GetProtocolMapper() string { + if o == nil || IsNil(o.ProtocolMapper) { + var ret string + return ret + } + return *o.ProtocolMapper +} + +// GetProtocolMapperOk returns a tuple with the ProtocolMapper field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolMapperRepresentation) GetProtocolMapperOk() (*string, bool) { + if o == nil || IsNil(o.ProtocolMapper) { + return nil, false + } + return o.ProtocolMapper, true +} + +// HasProtocolMapper returns a boolean if a field has been set. +func (o *ProtocolMapperRepresentation) HasProtocolMapper() bool { + if o != nil && !IsNil(o.ProtocolMapper) { + return true + } + + return false +} + +// SetProtocolMapper gets a reference to the given string and assigns it to the ProtocolMapper field. +func (o *ProtocolMapperRepresentation) SetProtocolMapper(v string) { + o.ProtocolMapper = &v +} + +// GetConsentRequired returns the ConsentRequired field value if set, zero value otherwise. +// Deprecated +func (o *ProtocolMapperRepresentation) GetConsentRequired() bool { + if o == nil || IsNil(o.ConsentRequired) { + var ret bool + return ret + } + return *o.ConsentRequired +} + +// GetConsentRequiredOk returns a tuple with the ConsentRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ProtocolMapperRepresentation) GetConsentRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.ConsentRequired) { + return nil, false + } + return o.ConsentRequired, true +} + +// HasConsentRequired returns a boolean if a field has been set. +func (o *ProtocolMapperRepresentation) HasConsentRequired() bool { + if o != nil && !IsNil(o.ConsentRequired) { + return true + } + + return false +} + +// SetConsentRequired gets a reference to the given bool and assigns it to the ConsentRequired field. +// Deprecated +func (o *ProtocolMapperRepresentation) SetConsentRequired(v bool) { + o.ConsentRequired = &v +} + +// GetConsentText returns the ConsentText field value if set, zero value otherwise. +// Deprecated +func (o *ProtocolMapperRepresentation) GetConsentText() string { + if o == nil || IsNil(o.ConsentText) { + var ret string + return ret + } + return *o.ConsentText +} + +// GetConsentTextOk returns a tuple with the ConsentText field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ProtocolMapperRepresentation) GetConsentTextOk() (*string, bool) { + if o == nil || IsNil(o.ConsentText) { + return nil, false + } + return o.ConsentText, true +} + +// HasConsentText returns a boolean if a field has been set. +func (o *ProtocolMapperRepresentation) HasConsentText() bool { + if o != nil && !IsNil(o.ConsentText) { + return true + } + + return false +} + +// SetConsentText gets a reference to the given string and assigns it to the ConsentText field. +// Deprecated +func (o *ProtocolMapperRepresentation) SetConsentText(v string) { + o.ConsentText = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *ProtocolMapperRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolMapperRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *ProtocolMapperRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *ProtocolMapperRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +func (o ProtocolMapperRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProtocolMapperRepresentation) 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.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.ProtocolMapper) { + toSerialize["protocolMapper"] = o.ProtocolMapper + } + if !IsNil(o.ConsentRequired) { + toSerialize["consentRequired"] = o.ConsentRequired + } + if !IsNil(o.ConsentText) { + toSerialize["consentText"] = o.ConsentText + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableProtocolMapperRepresentation struct { + value *ProtocolMapperRepresentation + isSet bool +} + +func (v NullableProtocolMapperRepresentation) Get() *ProtocolMapperRepresentation { + return v.value +} + +func (v *NullableProtocolMapperRepresentation) Set(val *ProtocolMapperRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableProtocolMapperRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableProtocolMapperRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProtocolMapperRepresentation(val *ProtocolMapperRepresentation) *NullableProtocolMapperRepresentation { + return &NullableProtocolMapperRepresentation{value: val, isSet: true} +} + +func (v NullableProtocolMapperRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProtocolMapperRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_published_realm_representation.go b/model_published_realm_representation.go new file mode 100644 index 0000000..7019e7f --- /dev/null +++ b/model_published_realm_representation.go @@ -0,0 +1,268 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the PublishedRealmRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublishedRealmRepresentation{} + +// PublishedRealmRepresentation struct for PublishedRealmRepresentation +type PublishedRealmRepresentation struct { + Realm *string `json:"realm,omitempty"` + PublicKey *string `json:"public_key,omitempty"` + TokenService *string `json:"token-service,omitempty"` + AccountService *string `json:"account-service,omitempty"` + TokensNotBefore *int32 `json:"tokens-not-before,omitempty"` +} + +// NewPublishedRealmRepresentation instantiates a new PublishedRealmRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPublishedRealmRepresentation() *PublishedRealmRepresentation { + this := PublishedRealmRepresentation{} + return &this +} + +// NewPublishedRealmRepresentationWithDefaults instantiates a new PublishedRealmRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPublishedRealmRepresentationWithDefaults() *PublishedRealmRepresentation { + this := PublishedRealmRepresentation{} + return &this +} + +// GetRealm returns the Realm field value if set, zero value otherwise. +func (o *PublishedRealmRepresentation) GetRealm() string { + if o == nil || IsNil(o.Realm) { + var ret string + return ret + } + return *o.Realm +} + +// GetRealmOk returns a tuple with the Realm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublishedRealmRepresentation) GetRealmOk() (*string, bool) { + if o == nil || IsNil(o.Realm) { + return nil, false + } + return o.Realm, true +} + +// HasRealm returns a boolean if a field has been set. +func (o *PublishedRealmRepresentation) HasRealm() bool { + if o != nil && !IsNil(o.Realm) { + return true + } + + return false +} + +// SetRealm gets a reference to the given string and assigns it to the Realm field. +func (o *PublishedRealmRepresentation) SetRealm(v string) { + o.Realm = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +func (o *PublishedRealmRepresentation) 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 *PublishedRealmRepresentation) 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 *PublishedRealmRepresentation) 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 *PublishedRealmRepresentation) SetPublicKey(v string) { + o.PublicKey = &v +} + +// GetTokenService returns the TokenService field value if set, zero value otherwise. +func (o *PublishedRealmRepresentation) GetTokenService() string { + if o == nil || IsNil(o.TokenService) { + var ret string + return ret + } + return *o.TokenService +} + +// GetTokenServiceOk returns a tuple with the TokenService field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublishedRealmRepresentation) GetTokenServiceOk() (*string, bool) { + if o == nil || IsNil(o.TokenService) { + return nil, false + } + return o.TokenService, true +} + +// HasTokenService returns a boolean if a field has been set. +func (o *PublishedRealmRepresentation) HasTokenService() bool { + if o != nil && !IsNil(o.TokenService) { + return true + } + + return false +} + +// SetTokenService gets a reference to the given string and assigns it to the TokenService field. +func (o *PublishedRealmRepresentation) SetTokenService(v string) { + o.TokenService = &v +} + +// GetAccountService returns the AccountService field value if set, zero value otherwise. +func (o *PublishedRealmRepresentation) GetAccountService() string { + if o == nil || IsNil(o.AccountService) { + var ret string + return ret + } + return *o.AccountService +} + +// GetAccountServiceOk returns a tuple with the AccountService field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublishedRealmRepresentation) GetAccountServiceOk() (*string, bool) { + if o == nil || IsNil(o.AccountService) { + return nil, false + } + return o.AccountService, true +} + +// HasAccountService returns a boolean if a field has been set. +func (o *PublishedRealmRepresentation) HasAccountService() bool { + if o != nil && !IsNil(o.AccountService) { + return true + } + + return false +} + +// SetAccountService gets a reference to the given string and assigns it to the AccountService field. +func (o *PublishedRealmRepresentation) SetAccountService(v string) { + o.AccountService = &v +} + +// GetTokensNotBefore returns the TokensNotBefore field value if set, zero value otherwise. +func (o *PublishedRealmRepresentation) GetTokensNotBefore() int32 { + if o == nil || IsNil(o.TokensNotBefore) { + var ret int32 + return ret + } + return *o.TokensNotBefore +} + +// GetTokensNotBeforeOk returns a tuple with the TokensNotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublishedRealmRepresentation) GetTokensNotBeforeOk() (*int32, bool) { + if o == nil || IsNil(o.TokensNotBefore) { + return nil, false + } + return o.TokensNotBefore, true +} + +// HasTokensNotBefore returns a boolean if a field has been set. +func (o *PublishedRealmRepresentation) HasTokensNotBefore() bool { + if o != nil && !IsNil(o.TokensNotBefore) { + return true + } + + return false +} + +// SetTokensNotBefore gets a reference to the given int32 and assigns it to the TokensNotBefore field. +func (o *PublishedRealmRepresentation) SetTokensNotBefore(v int32) { + o.TokensNotBefore = &v +} + +func (o PublishedRealmRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublishedRealmRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Realm) { + toSerialize["realm"] = o.Realm + } + if !IsNil(o.PublicKey) { + toSerialize["public_key"] = o.PublicKey + } + if !IsNil(o.TokenService) { + toSerialize["token-service"] = o.TokenService + } + if !IsNil(o.AccountService) { + toSerialize["account-service"] = o.AccountService + } + if !IsNil(o.TokensNotBefore) { + toSerialize["tokens-not-before"] = o.TokensNotBefore + } + return toSerialize, nil +} + +type NullablePublishedRealmRepresentation struct { + value *PublishedRealmRepresentation + isSet bool +} + +func (v NullablePublishedRealmRepresentation) Get() *PublishedRealmRepresentation { + return v.value +} + +func (v *NullablePublishedRealmRepresentation) Set(val *PublishedRealmRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullablePublishedRealmRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullablePublishedRealmRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublishedRealmRepresentation(val *PublishedRealmRepresentation) *NullablePublishedRealmRepresentation { + return &NullablePublishedRealmRepresentation{value: val, isSet: true} +} + +func (v NullablePublishedRealmRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublishedRealmRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_realm_events_config_representation.go b/model_realm_events_config_representation.go new file mode 100644 index 0000000..e9eea41 --- /dev/null +++ b/model_realm_events_config_representation.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the RealmEventsConfigRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RealmEventsConfigRepresentation{} + +// RealmEventsConfigRepresentation struct for RealmEventsConfigRepresentation +type RealmEventsConfigRepresentation struct { + EventsEnabled *bool `json:"eventsEnabled,omitempty"` + EventsExpiration *int64 `json:"eventsExpiration,omitempty"` + EventsListeners []string `json:"eventsListeners,omitempty"` + EnabledEventTypes []string `json:"enabledEventTypes,omitempty"` + AdminEventsEnabled *bool `json:"adminEventsEnabled,omitempty"` + AdminEventsDetailsEnabled *bool `json:"adminEventsDetailsEnabled,omitempty"` +} + +// NewRealmEventsConfigRepresentation instantiates a new RealmEventsConfigRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRealmEventsConfigRepresentation() *RealmEventsConfigRepresentation { + this := RealmEventsConfigRepresentation{} + return &this +} + +// NewRealmEventsConfigRepresentationWithDefaults instantiates a new RealmEventsConfigRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRealmEventsConfigRepresentationWithDefaults() *RealmEventsConfigRepresentation { + this := RealmEventsConfigRepresentation{} + return &this +} + +// GetEventsEnabled returns the EventsEnabled field value if set, zero value otherwise. +func (o *RealmEventsConfigRepresentation) GetEventsEnabled() bool { + if o == nil || IsNil(o.EventsEnabled) { + var ret bool + return ret + } + return *o.EventsEnabled +} + +// GetEventsEnabledOk returns a tuple with the EventsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmEventsConfigRepresentation) GetEventsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.EventsEnabled) { + return nil, false + } + return o.EventsEnabled, true +} + +// HasEventsEnabled returns a boolean if a field has been set. +func (o *RealmEventsConfigRepresentation) HasEventsEnabled() bool { + if o != nil && !IsNil(o.EventsEnabled) { + return true + } + + return false +} + +// SetEventsEnabled gets a reference to the given bool and assigns it to the EventsEnabled field. +func (o *RealmEventsConfigRepresentation) SetEventsEnabled(v bool) { + o.EventsEnabled = &v +} + +// GetEventsExpiration returns the EventsExpiration field value if set, zero value otherwise. +func (o *RealmEventsConfigRepresentation) GetEventsExpiration() int64 { + if o == nil || IsNil(o.EventsExpiration) { + var ret int64 + return ret + } + return *o.EventsExpiration +} + +// GetEventsExpirationOk returns a tuple with the EventsExpiration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmEventsConfigRepresentation) GetEventsExpirationOk() (*int64, bool) { + if o == nil || IsNil(o.EventsExpiration) { + return nil, false + } + return o.EventsExpiration, true +} + +// HasEventsExpiration returns a boolean if a field has been set. +func (o *RealmEventsConfigRepresentation) HasEventsExpiration() bool { + if o != nil && !IsNil(o.EventsExpiration) { + return true + } + + return false +} + +// SetEventsExpiration gets a reference to the given int64 and assigns it to the EventsExpiration field. +func (o *RealmEventsConfigRepresentation) SetEventsExpiration(v int64) { + o.EventsExpiration = &v +} + +// GetEventsListeners returns the EventsListeners field value if set, zero value otherwise. +func (o *RealmEventsConfigRepresentation) GetEventsListeners() []string { + if o == nil || IsNil(o.EventsListeners) { + var ret []string + return ret + } + return o.EventsListeners +} + +// GetEventsListenersOk returns a tuple with the EventsListeners field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmEventsConfigRepresentation) GetEventsListenersOk() ([]string, bool) { + if o == nil || IsNil(o.EventsListeners) { + return nil, false + } + return o.EventsListeners, true +} + +// HasEventsListeners returns a boolean if a field has been set. +func (o *RealmEventsConfigRepresentation) HasEventsListeners() bool { + if o != nil && !IsNil(o.EventsListeners) { + return true + } + + return false +} + +// SetEventsListeners gets a reference to the given []string and assigns it to the EventsListeners field. +func (o *RealmEventsConfigRepresentation) SetEventsListeners(v []string) { + o.EventsListeners = v +} + +// GetEnabledEventTypes returns the EnabledEventTypes field value if set, zero value otherwise. +func (o *RealmEventsConfigRepresentation) GetEnabledEventTypes() []string { + if o == nil || IsNil(o.EnabledEventTypes) { + var ret []string + return ret + } + return o.EnabledEventTypes +} + +// GetEnabledEventTypesOk returns a tuple with the EnabledEventTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmEventsConfigRepresentation) GetEnabledEventTypesOk() ([]string, bool) { + if o == nil || IsNil(o.EnabledEventTypes) { + return nil, false + } + return o.EnabledEventTypes, true +} + +// HasEnabledEventTypes returns a boolean if a field has been set. +func (o *RealmEventsConfigRepresentation) HasEnabledEventTypes() bool { + if o != nil && !IsNil(o.EnabledEventTypes) { + return true + } + + return false +} + +// SetEnabledEventTypes gets a reference to the given []string and assigns it to the EnabledEventTypes field. +func (o *RealmEventsConfigRepresentation) SetEnabledEventTypes(v []string) { + o.EnabledEventTypes = v +} + +// GetAdminEventsEnabled returns the AdminEventsEnabled field value if set, zero value otherwise. +func (o *RealmEventsConfigRepresentation) GetAdminEventsEnabled() bool { + if o == nil || IsNil(o.AdminEventsEnabled) { + var ret bool + return ret + } + return *o.AdminEventsEnabled +} + +// GetAdminEventsEnabledOk returns a tuple with the AdminEventsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmEventsConfigRepresentation) GetAdminEventsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AdminEventsEnabled) { + return nil, false + } + return o.AdminEventsEnabled, true +} + +// HasAdminEventsEnabled returns a boolean if a field has been set. +func (o *RealmEventsConfigRepresentation) HasAdminEventsEnabled() bool { + if o != nil && !IsNil(o.AdminEventsEnabled) { + return true + } + + return false +} + +// SetAdminEventsEnabled gets a reference to the given bool and assigns it to the AdminEventsEnabled field. +func (o *RealmEventsConfigRepresentation) SetAdminEventsEnabled(v bool) { + o.AdminEventsEnabled = &v +} + +// GetAdminEventsDetailsEnabled returns the AdminEventsDetailsEnabled field value if set, zero value otherwise. +func (o *RealmEventsConfigRepresentation) GetAdminEventsDetailsEnabled() bool { + if o == nil || IsNil(o.AdminEventsDetailsEnabled) { + var ret bool + return ret + } + return *o.AdminEventsDetailsEnabled +} + +// GetAdminEventsDetailsEnabledOk returns a tuple with the AdminEventsDetailsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmEventsConfigRepresentation) GetAdminEventsDetailsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AdminEventsDetailsEnabled) { + return nil, false + } + return o.AdminEventsDetailsEnabled, true +} + +// HasAdminEventsDetailsEnabled returns a boolean if a field has been set. +func (o *RealmEventsConfigRepresentation) HasAdminEventsDetailsEnabled() bool { + if o != nil && !IsNil(o.AdminEventsDetailsEnabled) { + return true + } + + return false +} + +// SetAdminEventsDetailsEnabled gets a reference to the given bool and assigns it to the AdminEventsDetailsEnabled field. +func (o *RealmEventsConfigRepresentation) SetAdminEventsDetailsEnabled(v bool) { + o.AdminEventsDetailsEnabled = &v +} + +func (o RealmEventsConfigRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RealmEventsConfigRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EventsEnabled) { + toSerialize["eventsEnabled"] = o.EventsEnabled + } + if !IsNil(o.EventsExpiration) { + toSerialize["eventsExpiration"] = o.EventsExpiration + } + if !IsNil(o.EventsListeners) { + toSerialize["eventsListeners"] = o.EventsListeners + } + if !IsNil(o.EnabledEventTypes) { + toSerialize["enabledEventTypes"] = o.EnabledEventTypes + } + if !IsNil(o.AdminEventsEnabled) { + toSerialize["adminEventsEnabled"] = o.AdminEventsEnabled + } + if !IsNil(o.AdminEventsDetailsEnabled) { + toSerialize["adminEventsDetailsEnabled"] = o.AdminEventsDetailsEnabled + } + return toSerialize, nil +} + +type NullableRealmEventsConfigRepresentation struct { + value *RealmEventsConfigRepresentation + isSet bool +} + +func (v NullableRealmEventsConfigRepresentation) Get() *RealmEventsConfigRepresentation { + return v.value +} + +func (v *NullableRealmEventsConfigRepresentation) Set(val *RealmEventsConfigRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRealmEventsConfigRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRealmEventsConfigRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRealmEventsConfigRepresentation(val *RealmEventsConfigRepresentation) *NullableRealmEventsConfigRepresentation { + return &NullableRealmEventsConfigRepresentation{value: val, isSet: true} +} + +func (v NullableRealmEventsConfigRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRealmEventsConfigRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_realm_representation.go b/model_realm_representation.go new file mode 100644 index 0000000..0943d6f --- /dev/null +++ b/model_realm_representation.go @@ -0,0 +1,5480 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the RealmRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RealmRepresentation{} + +// RealmRepresentation struct for RealmRepresentation +type RealmRepresentation struct { + Id *string `json:"id,omitempty"` + Realm *string `json:"realm,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + DisplayNameHtml *string `json:"displayNameHtml,omitempty"` + NotBefore *int32 `json:"notBefore,omitempty"` + DefaultSignatureAlgorithm *string `json:"defaultSignatureAlgorithm,omitempty"` + RevokeRefreshToken *bool `json:"revokeRefreshToken,omitempty"` + RefreshTokenMaxReuse *int32 `json:"refreshTokenMaxReuse,omitempty"` + AccessTokenLifespan *int32 `json:"accessTokenLifespan,omitempty"` + AccessTokenLifespanForImplicitFlow *int32 `json:"accessTokenLifespanForImplicitFlow,omitempty"` + SsoSessionIdleTimeout *int32 `json:"ssoSessionIdleTimeout,omitempty"` + SsoSessionMaxLifespan *int32 `json:"ssoSessionMaxLifespan,omitempty"` + SsoSessionIdleTimeoutRememberMe *int32 `json:"ssoSessionIdleTimeoutRememberMe,omitempty"` + SsoSessionMaxLifespanRememberMe *int32 `json:"ssoSessionMaxLifespanRememberMe,omitempty"` + OfflineSessionIdleTimeout *int32 `json:"offlineSessionIdleTimeout,omitempty"` + OfflineSessionMaxLifespanEnabled *bool `json:"offlineSessionMaxLifespanEnabled,omitempty"` + OfflineSessionMaxLifespan *int32 `json:"offlineSessionMaxLifespan,omitempty"` + ClientSessionIdleTimeout *int32 `json:"clientSessionIdleTimeout,omitempty"` + ClientSessionMaxLifespan *int32 `json:"clientSessionMaxLifespan,omitempty"` + ClientOfflineSessionIdleTimeout *int32 `json:"clientOfflineSessionIdleTimeout,omitempty"` + ClientOfflineSessionMaxLifespan *int32 `json:"clientOfflineSessionMaxLifespan,omitempty"` + AccessCodeLifespan *int32 `json:"accessCodeLifespan,omitempty"` + AccessCodeLifespanUserAction *int32 `json:"accessCodeLifespanUserAction,omitempty"` + AccessCodeLifespanLogin *int32 `json:"accessCodeLifespanLogin,omitempty"` + ActionTokenGeneratedByAdminLifespan *int32 `json:"actionTokenGeneratedByAdminLifespan,omitempty"` + ActionTokenGeneratedByUserLifespan *int32 `json:"actionTokenGeneratedByUserLifespan,omitempty"` + Oauth2DeviceCodeLifespan *int32 `json:"oauth2DeviceCodeLifespan,omitempty"` + Oauth2DevicePollingInterval *int32 `json:"oauth2DevicePollingInterval,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + SslRequired *string `json:"sslRequired,omitempty"` + // Deprecated + PasswordCredentialGrantAllowed *bool `json:"passwordCredentialGrantAllowed,omitempty"` + RegistrationAllowed *bool `json:"registrationAllowed,omitempty"` + RegistrationEmailAsUsername *bool `json:"registrationEmailAsUsername,omitempty"` + RememberMe *bool `json:"rememberMe,omitempty"` + VerifyEmail *bool `json:"verifyEmail,omitempty"` + LoginWithEmailAllowed *bool `json:"loginWithEmailAllowed,omitempty"` + DuplicateEmailsAllowed *bool `json:"duplicateEmailsAllowed,omitempty"` + ResetPasswordAllowed *bool `json:"resetPasswordAllowed,omitempty"` + EditUsernameAllowed *bool `json:"editUsernameAllowed,omitempty"` + // Deprecated + UserCacheEnabled *bool `json:"userCacheEnabled,omitempty"` + // Deprecated + RealmCacheEnabled *bool `json:"realmCacheEnabled,omitempty"` + BruteForceProtected *bool `json:"bruteForceProtected,omitempty"` + PermanentLockout *bool `json:"permanentLockout,omitempty"` + MaxTemporaryLockouts *int32 `json:"maxTemporaryLockouts,omitempty"` + BruteForceStrategy *BruteForceStrategy `json:"bruteForceStrategy,omitempty"` + MaxFailureWaitSeconds *int32 `json:"maxFailureWaitSeconds,omitempty"` + MinimumQuickLoginWaitSeconds *int32 `json:"minimumQuickLoginWaitSeconds,omitempty"` + WaitIncrementSeconds *int32 `json:"waitIncrementSeconds,omitempty"` + QuickLoginCheckMilliSeconds *int64 `json:"quickLoginCheckMilliSeconds,omitempty"` + MaxDeltaTimeSeconds *int32 `json:"maxDeltaTimeSeconds,omitempty"` + FailureFactor *int32 `json:"failureFactor,omitempty"` + // Deprecated + PrivateKey *string `json:"privateKey,omitempty"` + // Deprecated + PublicKey *string `json:"publicKey,omitempty"` + // Deprecated + Certificate *string `json:"certificate,omitempty"` + // Deprecated + CodeSecret *string `json:"codeSecret,omitempty"` + Roles *RolesRepresentation `json:"roles,omitempty"` + Groups []GroupRepresentation `json:"groups,omitempty"` + // Deprecated + DefaultRoles []string `json:"defaultRoles,omitempty"` + DefaultRole *RoleRepresentation `json:"defaultRole,omitempty"` + DefaultGroups []string `json:"defaultGroups,omitempty"` + // Deprecated + RequiredCredentials []string `json:"requiredCredentials,omitempty"` + PasswordPolicy *string `json:"passwordPolicy,omitempty"` + OtpPolicyType *string `json:"otpPolicyType,omitempty"` + OtpPolicyAlgorithm *string `json:"otpPolicyAlgorithm,omitempty"` + OtpPolicyInitialCounter *int32 `json:"otpPolicyInitialCounter,omitempty"` + OtpPolicyDigits *int32 `json:"otpPolicyDigits,omitempty"` + OtpPolicyLookAheadWindow *int32 `json:"otpPolicyLookAheadWindow,omitempty"` + OtpPolicyPeriod *int32 `json:"otpPolicyPeriod,omitempty"` + OtpPolicyCodeReusable *bool `json:"otpPolicyCodeReusable,omitempty"` + OtpSupportedApplications []string `json:"otpSupportedApplications,omitempty"` + LocalizationTexts *map[string]map[string]string `json:"localizationTexts,omitempty"` + WebAuthnPolicyRpEntityName *string `json:"webAuthnPolicyRpEntityName,omitempty"` + WebAuthnPolicySignatureAlgorithms []string `json:"webAuthnPolicySignatureAlgorithms,omitempty"` + WebAuthnPolicyRpId *string `json:"webAuthnPolicyRpId,omitempty"` + WebAuthnPolicyAttestationConveyancePreference *string `json:"webAuthnPolicyAttestationConveyancePreference,omitempty"` + WebAuthnPolicyAuthenticatorAttachment *string `json:"webAuthnPolicyAuthenticatorAttachment,omitempty"` + WebAuthnPolicyRequireResidentKey *string `json:"webAuthnPolicyRequireResidentKey,omitempty"` + WebAuthnPolicyUserVerificationRequirement *string `json:"webAuthnPolicyUserVerificationRequirement,omitempty"` + WebAuthnPolicyCreateTimeout *int32 `json:"webAuthnPolicyCreateTimeout,omitempty"` + WebAuthnPolicyAvoidSameAuthenticatorRegister *bool `json:"webAuthnPolicyAvoidSameAuthenticatorRegister,omitempty"` + WebAuthnPolicyAcceptableAaguids []string `json:"webAuthnPolicyAcceptableAaguids,omitempty"` + WebAuthnPolicyExtraOrigins []string `json:"webAuthnPolicyExtraOrigins,omitempty"` + WebAuthnPolicyPasswordlessRpEntityName *string `json:"webAuthnPolicyPasswordlessRpEntityName,omitempty"` + WebAuthnPolicyPasswordlessSignatureAlgorithms []string `json:"webAuthnPolicyPasswordlessSignatureAlgorithms,omitempty"` + WebAuthnPolicyPasswordlessRpId *string `json:"webAuthnPolicyPasswordlessRpId,omitempty"` + WebAuthnPolicyPasswordlessAttestationConveyancePreference *string `json:"webAuthnPolicyPasswordlessAttestationConveyancePreference,omitempty"` + WebAuthnPolicyPasswordlessAuthenticatorAttachment *string `json:"webAuthnPolicyPasswordlessAuthenticatorAttachment,omitempty"` + WebAuthnPolicyPasswordlessRequireResidentKey *string `json:"webAuthnPolicyPasswordlessRequireResidentKey,omitempty"` + WebAuthnPolicyPasswordlessUserVerificationRequirement *string `json:"webAuthnPolicyPasswordlessUserVerificationRequirement,omitempty"` + WebAuthnPolicyPasswordlessCreateTimeout *int32 `json:"webAuthnPolicyPasswordlessCreateTimeout,omitempty"` + WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister *bool `json:"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister,omitempty"` + WebAuthnPolicyPasswordlessAcceptableAaguids []string `json:"webAuthnPolicyPasswordlessAcceptableAaguids,omitempty"` + WebAuthnPolicyPasswordlessExtraOrigins []string `json:"webAuthnPolicyPasswordlessExtraOrigins,omitempty"` + ClientProfiles *ClientProfilesRepresentation `json:"clientProfiles,omitempty"` + ClientPolicies *ClientPoliciesRepresentation `json:"clientPolicies,omitempty"` + Users []UserRepresentation `json:"users,omitempty"` + FederatedUsers []UserRepresentation `json:"federatedUsers,omitempty"` + ScopeMappings []ScopeMappingRepresentation `json:"scopeMappings,omitempty"` + ClientScopeMappings *map[string][]ScopeMappingRepresentation `json:"clientScopeMappings,omitempty"` + Clients []ClientRepresentation `json:"clients,omitempty"` + ClientScopes []ClientScopeRepresentation `json:"clientScopes,omitempty"` + DefaultDefaultClientScopes []string `json:"defaultDefaultClientScopes,omitempty"` + DefaultOptionalClientScopes []string `json:"defaultOptionalClientScopes,omitempty"` + BrowserSecurityHeaders *map[string]string `json:"browserSecurityHeaders,omitempty"` + SmtpServer *map[string]string `json:"smtpServer,omitempty"` + UserFederationProviders []UserFederationProviderRepresentation `json:"userFederationProviders,omitempty"` + UserFederationMappers []UserFederationMapperRepresentation `json:"userFederationMappers,omitempty"` + LoginTheme *string `json:"loginTheme,omitempty"` + AccountTheme *string `json:"accountTheme,omitempty"` + AdminTheme *string `json:"adminTheme,omitempty"` + EmailTheme *string `json:"emailTheme,omitempty"` + EventsEnabled *bool `json:"eventsEnabled,omitempty"` + EventsExpiration *int64 `json:"eventsExpiration,omitempty"` + EventsListeners []string `json:"eventsListeners,omitempty"` + EnabledEventTypes []string `json:"enabledEventTypes,omitempty"` + AdminEventsEnabled *bool `json:"adminEventsEnabled,omitempty"` + AdminEventsDetailsEnabled *bool `json:"adminEventsDetailsEnabled,omitempty"` + IdentityProviders []IdentityProviderRepresentation `json:"identityProviders,omitempty"` + IdentityProviderMappers []IdentityProviderMapperRepresentation `json:"identityProviderMappers,omitempty"` + ProtocolMappers []ProtocolMapperRepresentation `json:"protocolMappers,omitempty"` + Components *map[string][]ComponentExportRepresentation `json:"components,omitempty"` + InternationalizationEnabled *bool `json:"internationalizationEnabled,omitempty"` + SupportedLocales []string `json:"supportedLocales,omitempty"` + DefaultLocale *string `json:"defaultLocale,omitempty"` + AuthenticationFlows []AuthenticationFlowRepresentation `json:"authenticationFlows,omitempty"` + AuthenticatorConfig []AuthenticatorConfigRepresentation `json:"authenticatorConfig,omitempty"` + RequiredActions []RequiredActionProviderRepresentation `json:"requiredActions,omitempty"` + BrowserFlow *string `json:"browserFlow,omitempty"` + RegistrationFlow *string `json:"registrationFlow,omitempty"` + DirectGrantFlow *string `json:"directGrantFlow,omitempty"` + ResetCredentialsFlow *string `json:"resetCredentialsFlow,omitempty"` + ClientAuthenticationFlow *string `json:"clientAuthenticationFlow,omitempty"` + DockerAuthenticationFlow *string `json:"dockerAuthenticationFlow,omitempty"` + FirstBrokerLoginFlow *string `json:"firstBrokerLoginFlow,omitempty"` + Attributes *map[string]string `json:"attributes,omitempty"` + KeycloakVersion *string `json:"keycloakVersion,omitempty"` + UserManagedAccessAllowed *bool `json:"userManagedAccessAllowed,omitempty"` + OrganizationsEnabled *bool `json:"organizationsEnabled,omitempty"` + Organizations []OrganizationRepresentation `json:"organizations,omitempty"` + // Deprecated + Social *bool `json:"social,omitempty"` + // Deprecated + UpdateProfileOnInitialSocialLogin *bool `json:"updateProfileOnInitialSocialLogin,omitempty"` + // Deprecated + SocialProviders *map[string]string `json:"socialProviders,omitempty"` + // Deprecated + ApplicationScopeMappings *map[string][]ScopeMappingRepresentation `json:"applicationScopeMappings,omitempty"` + // Deprecated + Applications []ApplicationRepresentation `json:"applications,omitempty"` + // Deprecated + OauthClients []OAuthClientRepresentation `json:"oauthClients,omitempty"` + // Deprecated + ClientTemplates []ClientTemplateRepresentation `json:"clientTemplates,omitempty"` + OAuth2DeviceCodeLifespan *int32 `json:"oAuth2DeviceCodeLifespan,omitempty"` + OAuth2DevicePollingInterval *int32 `json:"oAuth2DevicePollingInterval,omitempty"` +} + +// NewRealmRepresentation instantiates a new RealmRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRealmRepresentation() *RealmRepresentation { + this := RealmRepresentation{} + return &this +} + +// NewRealmRepresentationWithDefaults instantiates a new RealmRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRealmRepresentationWithDefaults() *RealmRepresentation { + this := RealmRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *RealmRepresentation) 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 *RealmRepresentation) 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 *RealmRepresentation) 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 *RealmRepresentation) SetId(v string) { + o.Id = &v +} + +// GetRealm returns the Realm field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRealm() string { + if o == nil || IsNil(o.Realm) { + var ret string + return ret + } + return *o.Realm +} + +// GetRealmOk returns a tuple with the Realm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRealmOk() (*string, bool) { + if o == nil || IsNil(o.Realm) { + return nil, false + } + return o.Realm, true +} + +// HasRealm returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRealm() bool { + if o != nil && !IsNil(o.Realm) { + return true + } + + return false +} + +// SetRealm gets a reference to the given string and assigns it to the Realm field. +func (o *RealmRepresentation) SetRealm(v string) { + o.Realm = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *RealmRepresentation) 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 *RealmRepresentation) 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 *RealmRepresentation) 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 *RealmRepresentation) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDisplayNameHtml returns the DisplayNameHtml field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDisplayNameHtml() string { + if o == nil || IsNil(o.DisplayNameHtml) { + var ret string + return ret + } + return *o.DisplayNameHtml +} + +// GetDisplayNameHtmlOk returns a tuple with the DisplayNameHtml field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDisplayNameHtmlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayNameHtml) { + return nil, false + } + return o.DisplayNameHtml, true +} + +// HasDisplayNameHtml returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDisplayNameHtml() bool { + if o != nil && !IsNil(o.DisplayNameHtml) { + return true + } + + return false +} + +// SetDisplayNameHtml gets a reference to the given string and assigns it to the DisplayNameHtml field. +func (o *RealmRepresentation) SetDisplayNameHtml(v string) { + o.DisplayNameHtml = &v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *RealmRepresentation) GetNotBefore() int32 { + if o == nil || IsNil(o.NotBefore) { + var ret int32 + 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 *RealmRepresentation) GetNotBeforeOk() (*int32, 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 *RealmRepresentation) HasNotBefore() bool { + if o != nil && !IsNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given int32 and assigns it to the NotBefore field. +func (o *RealmRepresentation) SetNotBefore(v int32) { + o.NotBefore = &v +} + +// GetDefaultSignatureAlgorithm returns the DefaultSignatureAlgorithm field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDefaultSignatureAlgorithm() string { + if o == nil || IsNil(o.DefaultSignatureAlgorithm) { + var ret string + return ret + } + return *o.DefaultSignatureAlgorithm +} + +// GetDefaultSignatureAlgorithmOk returns a tuple with the DefaultSignatureAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDefaultSignatureAlgorithmOk() (*string, bool) { + if o == nil || IsNil(o.DefaultSignatureAlgorithm) { + return nil, false + } + return o.DefaultSignatureAlgorithm, true +} + +// HasDefaultSignatureAlgorithm returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDefaultSignatureAlgorithm() bool { + if o != nil && !IsNil(o.DefaultSignatureAlgorithm) { + return true + } + + return false +} + +// SetDefaultSignatureAlgorithm gets a reference to the given string and assigns it to the DefaultSignatureAlgorithm field. +func (o *RealmRepresentation) SetDefaultSignatureAlgorithm(v string) { + o.DefaultSignatureAlgorithm = &v +} + +// GetRevokeRefreshToken returns the RevokeRefreshToken field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRevokeRefreshToken() bool { + if o == nil || IsNil(o.RevokeRefreshToken) { + var ret bool + return ret + } + return *o.RevokeRefreshToken +} + +// GetRevokeRefreshTokenOk returns a tuple with the RevokeRefreshToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRevokeRefreshTokenOk() (*bool, bool) { + if o == nil || IsNil(o.RevokeRefreshToken) { + return nil, false + } + return o.RevokeRefreshToken, true +} + +// HasRevokeRefreshToken returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRevokeRefreshToken() bool { + if o != nil && !IsNil(o.RevokeRefreshToken) { + return true + } + + return false +} + +// SetRevokeRefreshToken gets a reference to the given bool and assigns it to the RevokeRefreshToken field. +func (o *RealmRepresentation) SetRevokeRefreshToken(v bool) { + o.RevokeRefreshToken = &v +} + +// GetRefreshTokenMaxReuse returns the RefreshTokenMaxReuse field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRefreshTokenMaxReuse() int32 { + if o == nil || IsNil(o.RefreshTokenMaxReuse) { + var ret int32 + return ret + } + return *o.RefreshTokenMaxReuse +} + +// GetRefreshTokenMaxReuseOk returns a tuple with the RefreshTokenMaxReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRefreshTokenMaxReuseOk() (*int32, bool) { + if o == nil || IsNil(o.RefreshTokenMaxReuse) { + return nil, false + } + return o.RefreshTokenMaxReuse, true +} + +// HasRefreshTokenMaxReuse returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRefreshTokenMaxReuse() bool { + if o != nil && !IsNil(o.RefreshTokenMaxReuse) { + return true + } + + return false +} + +// SetRefreshTokenMaxReuse gets a reference to the given int32 and assigns it to the RefreshTokenMaxReuse field. +func (o *RealmRepresentation) SetRefreshTokenMaxReuse(v int32) { + o.RefreshTokenMaxReuse = &v +} + +// GetAccessTokenLifespan returns the AccessTokenLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAccessTokenLifespan() int32 { + if o == nil || IsNil(o.AccessTokenLifespan) { + var ret int32 + return ret + } + return *o.AccessTokenLifespan +} + +// GetAccessTokenLifespanOk returns a tuple with the AccessTokenLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAccessTokenLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.AccessTokenLifespan) { + return nil, false + } + return o.AccessTokenLifespan, true +} + +// HasAccessTokenLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAccessTokenLifespan() bool { + if o != nil && !IsNil(o.AccessTokenLifespan) { + return true + } + + return false +} + +// SetAccessTokenLifespan gets a reference to the given int32 and assigns it to the AccessTokenLifespan field. +func (o *RealmRepresentation) SetAccessTokenLifespan(v int32) { + o.AccessTokenLifespan = &v +} + +// GetAccessTokenLifespanForImplicitFlow returns the AccessTokenLifespanForImplicitFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAccessTokenLifespanForImplicitFlow() int32 { + if o == nil || IsNil(o.AccessTokenLifespanForImplicitFlow) { + var ret int32 + return ret + } + return *o.AccessTokenLifespanForImplicitFlow +} + +// GetAccessTokenLifespanForImplicitFlowOk returns a tuple with the AccessTokenLifespanForImplicitFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAccessTokenLifespanForImplicitFlowOk() (*int32, bool) { + if o == nil || IsNil(o.AccessTokenLifespanForImplicitFlow) { + return nil, false + } + return o.AccessTokenLifespanForImplicitFlow, true +} + +// HasAccessTokenLifespanForImplicitFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAccessTokenLifespanForImplicitFlow() bool { + if o != nil && !IsNil(o.AccessTokenLifespanForImplicitFlow) { + return true + } + + return false +} + +// SetAccessTokenLifespanForImplicitFlow gets a reference to the given int32 and assigns it to the AccessTokenLifespanForImplicitFlow field. +func (o *RealmRepresentation) SetAccessTokenLifespanForImplicitFlow(v int32) { + o.AccessTokenLifespanForImplicitFlow = &v +} + +// GetSsoSessionIdleTimeout returns the SsoSessionIdleTimeout field value if set, zero value otherwise. +func (o *RealmRepresentation) GetSsoSessionIdleTimeout() int32 { + if o == nil || IsNil(o.SsoSessionIdleTimeout) { + var ret int32 + return ret + } + return *o.SsoSessionIdleTimeout +} + +// GetSsoSessionIdleTimeoutOk returns a tuple with the SsoSessionIdleTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetSsoSessionIdleTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.SsoSessionIdleTimeout) { + return nil, false + } + return o.SsoSessionIdleTimeout, true +} + +// HasSsoSessionIdleTimeout returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSsoSessionIdleTimeout() bool { + if o != nil && !IsNil(o.SsoSessionIdleTimeout) { + return true + } + + return false +} + +// SetSsoSessionIdleTimeout gets a reference to the given int32 and assigns it to the SsoSessionIdleTimeout field. +func (o *RealmRepresentation) SetSsoSessionIdleTimeout(v int32) { + o.SsoSessionIdleTimeout = &v +} + +// GetSsoSessionMaxLifespan returns the SsoSessionMaxLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetSsoSessionMaxLifespan() int32 { + if o == nil || IsNil(o.SsoSessionMaxLifespan) { + var ret int32 + return ret + } + return *o.SsoSessionMaxLifespan +} + +// GetSsoSessionMaxLifespanOk returns a tuple with the SsoSessionMaxLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetSsoSessionMaxLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.SsoSessionMaxLifespan) { + return nil, false + } + return o.SsoSessionMaxLifespan, true +} + +// HasSsoSessionMaxLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSsoSessionMaxLifespan() bool { + if o != nil && !IsNil(o.SsoSessionMaxLifespan) { + return true + } + + return false +} + +// SetSsoSessionMaxLifespan gets a reference to the given int32 and assigns it to the SsoSessionMaxLifespan field. +func (o *RealmRepresentation) SetSsoSessionMaxLifespan(v int32) { + o.SsoSessionMaxLifespan = &v +} + +// GetSsoSessionIdleTimeoutRememberMe returns the SsoSessionIdleTimeoutRememberMe field value if set, zero value otherwise. +func (o *RealmRepresentation) GetSsoSessionIdleTimeoutRememberMe() int32 { + if o == nil || IsNil(o.SsoSessionIdleTimeoutRememberMe) { + var ret int32 + return ret + } + return *o.SsoSessionIdleTimeoutRememberMe +} + +// GetSsoSessionIdleTimeoutRememberMeOk returns a tuple with the SsoSessionIdleTimeoutRememberMe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetSsoSessionIdleTimeoutRememberMeOk() (*int32, bool) { + if o == nil || IsNil(o.SsoSessionIdleTimeoutRememberMe) { + return nil, false + } + return o.SsoSessionIdleTimeoutRememberMe, true +} + +// HasSsoSessionIdleTimeoutRememberMe returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSsoSessionIdleTimeoutRememberMe() bool { + if o != nil && !IsNil(o.SsoSessionIdleTimeoutRememberMe) { + return true + } + + return false +} + +// SetSsoSessionIdleTimeoutRememberMe gets a reference to the given int32 and assigns it to the SsoSessionIdleTimeoutRememberMe field. +func (o *RealmRepresentation) SetSsoSessionIdleTimeoutRememberMe(v int32) { + o.SsoSessionIdleTimeoutRememberMe = &v +} + +// GetSsoSessionMaxLifespanRememberMe returns the SsoSessionMaxLifespanRememberMe field value if set, zero value otherwise. +func (o *RealmRepresentation) GetSsoSessionMaxLifespanRememberMe() int32 { + if o == nil || IsNil(o.SsoSessionMaxLifespanRememberMe) { + var ret int32 + return ret + } + return *o.SsoSessionMaxLifespanRememberMe +} + +// GetSsoSessionMaxLifespanRememberMeOk returns a tuple with the SsoSessionMaxLifespanRememberMe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetSsoSessionMaxLifespanRememberMeOk() (*int32, bool) { + if o == nil || IsNil(o.SsoSessionMaxLifespanRememberMe) { + return nil, false + } + return o.SsoSessionMaxLifespanRememberMe, true +} + +// HasSsoSessionMaxLifespanRememberMe returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSsoSessionMaxLifespanRememberMe() bool { + if o != nil && !IsNil(o.SsoSessionMaxLifespanRememberMe) { + return true + } + + return false +} + +// SetSsoSessionMaxLifespanRememberMe gets a reference to the given int32 and assigns it to the SsoSessionMaxLifespanRememberMe field. +func (o *RealmRepresentation) SetSsoSessionMaxLifespanRememberMe(v int32) { + o.SsoSessionMaxLifespanRememberMe = &v +} + +// GetOfflineSessionIdleTimeout returns the OfflineSessionIdleTimeout field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOfflineSessionIdleTimeout() int32 { + if o == nil || IsNil(o.OfflineSessionIdleTimeout) { + var ret int32 + return ret + } + return *o.OfflineSessionIdleTimeout +} + +// GetOfflineSessionIdleTimeoutOk returns a tuple with the OfflineSessionIdleTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOfflineSessionIdleTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.OfflineSessionIdleTimeout) { + return nil, false + } + return o.OfflineSessionIdleTimeout, true +} + +// HasOfflineSessionIdleTimeout returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOfflineSessionIdleTimeout() bool { + if o != nil && !IsNil(o.OfflineSessionIdleTimeout) { + return true + } + + return false +} + +// SetOfflineSessionIdleTimeout gets a reference to the given int32 and assigns it to the OfflineSessionIdleTimeout field. +func (o *RealmRepresentation) SetOfflineSessionIdleTimeout(v int32) { + o.OfflineSessionIdleTimeout = &v +} + +// GetOfflineSessionMaxLifespanEnabled returns the OfflineSessionMaxLifespanEnabled field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOfflineSessionMaxLifespanEnabled() bool { + if o == nil || IsNil(o.OfflineSessionMaxLifespanEnabled) { + var ret bool + return ret + } + return *o.OfflineSessionMaxLifespanEnabled +} + +// GetOfflineSessionMaxLifespanEnabledOk returns a tuple with the OfflineSessionMaxLifespanEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOfflineSessionMaxLifespanEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.OfflineSessionMaxLifespanEnabled) { + return nil, false + } + return o.OfflineSessionMaxLifespanEnabled, true +} + +// HasOfflineSessionMaxLifespanEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOfflineSessionMaxLifespanEnabled() bool { + if o != nil && !IsNil(o.OfflineSessionMaxLifespanEnabled) { + return true + } + + return false +} + +// SetOfflineSessionMaxLifespanEnabled gets a reference to the given bool and assigns it to the OfflineSessionMaxLifespanEnabled field. +func (o *RealmRepresentation) SetOfflineSessionMaxLifespanEnabled(v bool) { + o.OfflineSessionMaxLifespanEnabled = &v +} + +// GetOfflineSessionMaxLifespan returns the OfflineSessionMaxLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOfflineSessionMaxLifespan() int32 { + if o == nil || IsNil(o.OfflineSessionMaxLifespan) { + var ret int32 + return ret + } + return *o.OfflineSessionMaxLifespan +} + +// GetOfflineSessionMaxLifespanOk returns a tuple with the OfflineSessionMaxLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOfflineSessionMaxLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.OfflineSessionMaxLifespan) { + return nil, false + } + return o.OfflineSessionMaxLifespan, true +} + +// HasOfflineSessionMaxLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOfflineSessionMaxLifespan() bool { + if o != nil && !IsNil(o.OfflineSessionMaxLifespan) { + return true + } + + return false +} + +// SetOfflineSessionMaxLifespan gets a reference to the given int32 and assigns it to the OfflineSessionMaxLifespan field. +func (o *RealmRepresentation) SetOfflineSessionMaxLifespan(v int32) { + o.OfflineSessionMaxLifespan = &v +} + +// GetClientSessionIdleTimeout returns the ClientSessionIdleTimeout field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientSessionIdleTimeout() int32 { + if o == nil || IsNil(o.ClientSessionIdleTimeout) { + var ret int32 + return ret + } + return *o.ClientSessionIdleTimeout +} + +// GetClientSessionIdleTimeoutOk returns a tuple with the ClientSessionIdleTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientSessionIdleTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.ClientSessionIdleTimeout) { + return nil, false + } + return o.ClientSessionIdleTimeout, true +} + +// HasClientSessionIdleTimeout returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientSessionIdleTimeout() bool { + if o != nil && !IsNil(o.ClientSessionIdleTimeout) { + return true + } + + return false +} + +// SetClientSessionIdleTimeout gets a reference to the given int32 and assigns it to the ClientSessionIdleTimeout field. +func (o *RealmRepresentation) SetClientSessionIdleTimeout(v int32) { + o.ClientSessionIdleTimeout = &v +} + +// GetClientSessionMaxLifespan returns the ClientSessionMaxLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientSessionMaxLifespan() int32 { + if o == nil || IsNil(o.ClientSessionMaxLifespan) { + var ret int32 + return ret + } + return *o.ClientSessionMaxLifespan +} + +// GetClientSessionMaxLifespanOk returns a tuple with the ClientSessionMaxLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientSessionMaxLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.ClientSessionMaxLifespan) { + return nil, false + } + return o.ClientSessionMaxLifespan, true +} + +// HasClientSessionMaxLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientSessionMaxLifespan() bool { + if o != nil && !IsNil(o.ClientSessionMaxLifespan) { + return true + } + + return false +} + +// SetClientSessionMaxLifespan gets a reference to the given int32 and assigns it to the ClientSessionMaxLifespan field. +func (o *RealmRepresentation) SetClientSessionMaxLifespan(v int32) { + o.ClientSessionMaxLifespan = &v +} + +// GetClientOfflineSessionIdleTimeout returns the ClientOfflineSessionIdleTimeout field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientOfflineSessionIdleTimeout() int32 { + if o == nil || IsNil(o.ClientOfflineSessionIdleTimeout) { + var ret int32 + return ret + } + return *o.ClientOfflineSessionIdleTimeout +} + +// GetClientOfflineSessionIdleTimeoutOk returns a tuple with the ClientOfflineSessionIdleTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientOfflineSessionIdleTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.ClientOfflineSessionIdleTimeout) { + return nil, false + } + return o.ClientOfflineSessionIdleTimeout, true +} + +// HasClientOfflineSessionIdleTimeout returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientOfflineSessionIdleTimeout() bool { + if o != nil && !IsNil(o.ClientOfflineSessionIdleTimeout) { + return true + } + + return false +} + +// SetClientOfflineSessionIdleTimeout gets a reference to the given int32 and assigns it to the ClientOfflineSessionIdleTimeout field. +func (o *RealmRepresentation) SetClientOfflineSessionIdleTimeout(v int32) { + o.ClientOfflineSessionIdleTimeout = &v +} + +// GetClientOfflineSessionMaxLifespan returns the ClientOfflineSessionMaxLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientOfflineSessionMaxLifespan() int32 { + if o == nil || IsNil(o.ClientOfflineSessionMaxLifespan) { + var ret int32 + return ret + } + return *o.ClientOfflineSessionMaxLifespan +} + +// GetClientOfflineSessionMaxLifespanOk returns a tuple with the ClientOfflineSessionMaxLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientOfflineSessionMaxLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.ClientOfflineSessionMaxLifespan) { + return nil, false + } + return o.ClientOfflineSessionMaxLifespan, true +} + +// HasClientOfflineSessionMaxLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientOfflineSessionMaxLifespan() bool { + if o != nil && !IsNil(o.ClientOfflineSessionMaxLifespan) { + return true + } + + return false +} + +// SetClientOfflineSessionMaxLifespan gets a reference to the given int32 and assigns it to the ClientOfflineSessionMaxLifespan field. +func (o *RealmRepresentation) SetClientOfflineSessionMaxLifespan(v int32) { + o.ClientOfflineSessionMaxLifespan = &v +} + +// GetAccessCodeLifespan returns the AccessCodeLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAccessCodeLifespan() int32 { + if o == nil || IsNil(o.AccessCodeLifespan) { + var ret int32 + return ret + } + return *o.AccessCodeLifespan +} + +// GetAccessCodeLifespanOk returns a tuple with the AccessCodeLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAccessCodeLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.AccessCodeLifespan) { + return nil, false + } + return o.AccessCodeLifespan, true +} + +// HasAccessCodeLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAccessCodeLifespan() bool { + if o != nil && !IsNil(o.AccessCodeLifespan) { + return true + } + + return false +} + +// SetAccessCodeLifespan gets a reference to the given int32 and assigns it to the AccessCodeLifespan field. +func (o *RealmRepresentation) SetAccessCodeLifespan(v int32) { + o.AccessCodeLifespan = &v +} + +// GetAccessCodeLifespanUserAction returns the AccessCodeLifespanUserAction field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAccessCodeLifespanUserAction() int32 { + if o == nil || IsNil(o.AccessCodeLifespanUserAction) { + var ret int32 + return ret + } + return *o.AccessCodeLifespanUserAction +} + +// GetAccessCodeLifespanUserActionOk returns a tuple with the AccessCodeLifespanUserAction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAccessCodeLifespanUserActionOk() (*int32, bool) { + if o == nil || IsNil(o.AccessCodeLifespanUserAction) { + return nil, false + } + return o.AccessCodeLifespanUserAction, true +} + +// HasAccessCodeLifespanUserAction returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAccessCodeLifespanUserAction() bool { + if o != nil && !IsNil(o.AccessCodeLifespanUserAction) { + return true + } + + return false +} + +// SetAccessCodeLifespanUserAction gets a reference to the given int32 and assigns it to the AccessCodeLifespanUserAction field. +func (o *RealmRepresentation) SetAccessCodeLifespanUserAction(v int32) { + o.AccessCodeLifespanUserAction = &v +} + +// GetAccessCodeLifespanLogin returns the AccessCodeLifespanLogin field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAccessCodeLifespanLogin() int32 { + if o == nil || IsNil(o.AccessCodeLifespanLogin) { + var ret int32 + return ret + } + return *o.AccessCodeLifespanLogin +} + +// GetAccessCodeLifespanLoginOk returns a tuple with the AccessCodeLifespanLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAccessCodeLifespanLoginOk() (*int32, bool) { + if o == nil || IsNil(o.AccessCodeLifespanLogin) { + return nil, false + } + return o.AccessCodeLifespanLogin, true +} + +// HasAccessCodeLifespanLogin returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAccessCodeLifespanLogin() bool { + if o != nil && !IsNil(o.AccessCodeLifespanLogin) { + return true + } + + return false +} + +// SetAccessCodeLifespanLogin gets a reference to the given int32 and assigns it to the AccessCodeLifespanLogin field. +func (o *RealmRepresentation) SetAccessCodeLifespanLogin(v int32) { + o.AccessCodeLifespanLogin = &v +} + +// GetActionTokenGeneratedByAdminLifespan returns the ActionTokenGeneratedByAdminLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetActionTokenGeneratedByAdminLifespan() int32 { + if o == nil || IsNil(o.ActionTokenGeneratedByAdminLifespan) { + var ret int32 + return ret + } + return *o.ActionTokenGeneratedByAdminLifespan +} + +// GetActionTokenGeneratedByAdminLifespanOk returns a tuple with the ActionTokenGeneratedByAdminLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetActionTokenGeneratedByAdminLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.ActionTokenGeneratedByAdminLifespan) { + return nil, false + } + return o.ActionTokenGeneratedByAdminLifespan, true +} + +// HasActionTokenGeneratedByAdminLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasActionTokenGeneratedByAdminLifespan() bool { + if o != nil && !IsNil(o.ActionTokenGeneratedByAdminLifespan) { + return true + } + + return false +} + +// SetActionTokenGeneratedByAdminLifespan gets a reference to the given int32 and assigns it to the ActionTokenGeneratedByAdminLifespan field. +func (o *RealmRepresentation) SetActionTokenGeneratedByAdminLifespan(v int32) { + o.ActionTokenGeneratedByAdminLifespan = &v +} + +// GetActionTokenGeneratedByUserLifespan returns the ActionTokenGeneratedByUserLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetActionTokenGeneratedByUserLifespan() int32 { + if o == nil || IsNil(o.ActionTokenGeneratedByUserLifespan) { + var ret int32 + return ret + } + return *o.ActionTokenGeneratedByUserLifespan +} + +// GetActionTokenGeneratedByUserLifespanOk returns a tuple with the ActionTokenGeneratedByUserLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetActionTokenGeneratedByUserLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.ActionTokenGeneratedByUserLifespan) { + return nil, false + } + return o.ActionTokenGeneratedByUserLifespan, true +} + +// HasActionTokenGeneratedByUserLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasActionTokenGeneratedByUserLifespan() bool { + if o != nil && !IsNil(o.ActionTokenGeneratedByUserLifespan) { + return true + } + + return false +} + +// SetActionTokenGeneratedByUserLifespan gets a reference to the given int32 and assigns it to the ActionTokenGeneratedByUserLifespan field. +func (o *RealmRepresentation) SetActionTokenGeneratedByUserLifespan(v int32) { + o.ActionTokenGeneratedByUserLifespan = &v +} + +// GetOauth2DeviceCodeLifespan returns the Oauth2DeviceCodeLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOauth2DeviceCodeLifespan() int32 { + if o == nil || IsNil(o.Oauth2DeviceCodeLifespan) { + var ret int32 + return ret + } + return *o.Oauth2DeviceCodeLifespan +} + +// GetOauth2DeviceCodeLifespanOk returns a tuple with the Oauth2DeviceCodeLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOauth2DeviceCodeLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.Oauth2DeviceCodeLifespan) { + return nil, false + } + return o.Oauth2DeviceCodeLifespan, true +} + +// HasOauth2DeviceCodeLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOauth2DeviceCodeLifespan() bool { + if o != nil && !IsNil(o.Oauth2DeviceCodeLifespan) { + return true + } + + return false +} + +// SetOauth2DeviceCodeLifespan gets a reference to the given int32 and assigns it to the Oauth2DeviceCodeLifespan field. +func (o *RealmRepresentation) SetOauth2DeviceCodeLifespan(v int32) { + o.Oauth2DeviceCodeLifespan = &v +} + +// GetOauth2DevicePollingInterval returns the Oauth2DevicePollingInterval field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOauth2DevicePollingInterval() int32 { + if o == nil || IsNil(o.Oauth2DevicePollingInterval) { + var ret int32 + return ret + } + return *o.Oauth2DevicePollingInterval +} + +// GetOauth2DevicePollingIntervalOk returns a tuple with the Oauth2DevicePollingInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOauth2DevicePollingIntervalOk() (*int32, bool) { + if o == nil || IsNil(o.Oauth2DevicePollingInterval) { + return nil, false + } + return o.Oauth2DevicePollingInterval, true +} + +// HasOauth2DevicePollingInterval returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOauth2DevicePollingInterval() bool { + if o != nil && !IsNil(o.Oauth2DevicePollingInterval) { + return true + } + + return false +} + +// SetOauth2DevicePollingInterval gets a reference to the given int32 and assigns it to the Oauth2DevicePollingInterval field. +func (o *RealmRepresentation) SetOauth2DevicePollingInterval(v int32) { + o.Oauth2DevicePollingInterval = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *RealmRepresentation) 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 *RealmRepresentation) 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 *RealmRepresentation) 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 *RealmRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetSslRequired returns the SslRequired field value if set, zero value otherwise. +func (o *RealmRepresentation) GetSslRequired() string { + if o == nil || IsNil(o.SslRequired) { + var ret string + return ret + } + return *o.SslRequired +} + +// GetSslRequiredOk returns a tuple with the SslRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetSslRequiredOk() (*string, bool) { + if o == nil || IsNil(o.SslRequired) { + return nil, false + } + return o.SslRequired, true +} + +// HasSslRequired returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSslRequired() bool { + if o != nil && !IsNil(o.SslRequired) { + return true + } + + return false +} + +// SetSslRequired gets a reference to the given string and assigns it to the SslRequired field. +func (o *RealmRepresentation) SetSslRequired(v string) { + o.SslRequired = &v +} + +// GetPasswordCredentialGrantAllowed returns the PasswordCredentialGrantAllowed field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetPasswordCredentialGrantAllowed() bool { + if o == nil || IsNil(o.PasswordCredentialGrantAllowed) { + var ret bool + return ret + } + return *o.PasswordCredentialGrantAllowed +} + +// GetPasswordCredentialGrantAllowedOk returns a tuple with the PasswordCredentialGrantAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetPasswordCredentialGrantAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.PasswordCredentialGrantAllowed) { + return nil, false + } + return o.PasswordCredentialGrantAllowed, true +} + +// HasPasswordCredentialGrantAllowed returns a boolean if a field has been set. +func (o *RealmRepresentation) HasPasswordCredentialGrantAllowed() bool { + if o != nil && !IsNil(o.PasswordCredentialGrantAllowed) { + return true + } + + return false +} + +// SetPasswordCredentialGrantAllowed gets a reference to the given bool and assigns it to the PasswordCredentialGrantAllowed field. +// Deprecated +func (o *RealmRepresentation) SetPasswordCredentialGrantAllowed(v bool) { + o.PasswordCredentialGrantAllowed = &v +} + +// GetRegistrationAllowed returns the RegistrationAllowed field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRegistrationAllowed() bool { + if o == nil || IsNil(o.RegistrationAllowed) { + var ret bool + return ret + } + return *o.RegistrationAllowed +} + +// GetRegistrationAllowedOk returns a tuple with the RegistrationAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRegistrationAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.RegistrationAllowed) { + return nil, false + } + return o.RegistrationAllowed, true +} + +// HasRegistrationAllowed returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRegistrationAllowed() bool { + if o != nil && !IsNil(o.RegistrationAllowed) { + return true + } + + return false +} + +// SetRegistrationAllowed gets a reference to the given bool and assigns it to the RegistrationAllowed field. +func (o *RealmRepresentation) SetRegistrationAllowed(v bool) { + o.RegistrationAllowed = &v +} + +// GetRegistrationEmailAsUsername returns the RegistrationEmailAsUsername field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRegistrationEmailAsUsername() bool { + if o == nil || IsNil(o.RegistrationEmailAsUsername) { + var ret bool + return ret + } + return *o.RegistrationEmailAsUsername +} + +// GetRegistrationEmailAsUsernameOk returns a tuple with the RegistrationEmailAsUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRegistrationEmailAsUsernameOk() (*bool, bool) { + if o == nil || IsNil(o.RegistrationEmailAsUsername) { + return nil, false + } + return o.RegistrationEmailAsUsername, true +} + +// HasRegistrationEmailAsUsername returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRegistrationEmailAsUsername() bool { + if o != nil && !IsNil(o.RegistrationEmailAsUsername) { + return true + } + + return false +} + +// SetRegistrationEmailAsUsername gets a reference to the given bool and assigns it to the RegistrationEmailAsUsername field. +func (o *RealmRepresentation) SetRegistrationEmailAsUsername(v bool) { + o.RegistrationEmailAsUsername = &v +} + +// GetRememberMe returns the RememberMe field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRememberMe() bool { + if o == nil || IsNil(o.RememberMe) { + var ret bool + return ret + } + return *o.RememberMe +} + +// GetRememberMeOk returns a tuple with the RememberMe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRememberMeOk() (*bool, bool) { + if o == nil || IsNil(o.RememberMe) { + return nil, false + } + return o.RememberMe, true +} + +// HasRememberMe returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRememberMe() bool { + if o != nil && !IsNil(o.RememberMe) { + return true + } + + return false +} + +// SetRememberMe gets a reference to the given bool and assigns it to the RememberMe field. +func (o *RealmRepresentation) SetRememberMe(v bool) { + o.RememberMe = &v +} + +// GetVerifyEmail returns the VerifyEmail field value if set, zero value otherwise. +func (o *RealmRepresentation) GetVerifyEmail() bool { + if o == nil || IsNil(o.VerifyEmail) { + var ret bool + return ret + } + return *o.VerifyEmail +} + +// GetVerifyEmailOk returns a tuple with the VerifyEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetVerifyEmailOk() (*bool, bool) { + if o == nil || IsNil(o.VerifyEmail) { + return nil, false + } + return o.VerifyEmail, true +} + +// HasVerifyEmail returns a boolean if a field has been set. +func (o *RealmRepresentation) HasVerifyEmail() bool { + if o != nil && !IsNil(o.VerifyEmail) { + return true + } + + return false +} + +// SetVerifyEmail gets a reference to the given bool and assigns it to the VerifyEmail field. +func (o *RealmRepresentation) SetVerifyEmail(v bool) { + o.VerifyEmail = &v +} + +// GetLoginWithEmailAllowed returns the LoginWithEmailAllowed field value if set, zero value otherwise. +func (o *RealmRepresentation) GetLoginWithEmailAllowed() bool { + if o == nil || IsNil(o.LoginWithEmailAllowed) { + var ret bool + return ret + } + return *o.LoginWithEmailAllowed +} + +// GetLoginWithEmailAllowedOk returns a tuple with the LoginWithEmailAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetLoginWithEmailAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.LoginWithEmailAllowed) { + return nil, false + } + return o.LoginWithEmailAllowed, true +} + +// HasLoginWithEmailAllowed returns a boolean if a field has been set. +func (o *RealmRepresentation) HasLoginWithEmailAllowed() bool { + if o != nil && !IsNil(o.LoginWithEmailAllowed) { + return true + } + + return false +} + +// SetLoginWithEmailAllowed gets a reference to the given bool and assigns it to the LoginWithEmailAllowed field. +func (o *RealmRepresentation) SetLoginWithEmailAllowed(v bool) { + o.LoginWithEmailAllowed = &v +} + +// GetDuplicateEmailsAllowed returns the DuplicateEmailsAllowed field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDuplicateEmailsAllowed() bool { + if o == nil || IsNil(o.DuplicateEmailsAllowed) { + var ret bool + return ret + } + return *o.DuplicateEmailsAllowed +} + +// GetDuplicateEmailsAllowedOk returns a tuple with the DuplicateEmailsAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDuplicateEmailsAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.DuplicateEmailsAllowed) { + return nil, false + } + return o.DuplicateEmailsAllowed, true +} + +// HasDuplicateEmailsAllowed returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDuplicateEmailsAllowed() bool { + if o != nil && !IsNil(o.DuplicateEmailsAllowed) { + return true + } + + return false +} + +// SetDuplicateEmailsAllowed gets a reference to the given bool and assigns it to the DuplicateEmailsAllowed field. +func (o *RealmRepresentation) SetDuplicateEmailsAllowed(v bool) { + o.DuplicateEmailsAllowed = &v +} + +// GetResetPasswordAllowed returns the ResetPasswordAllowed field value if set, zero value otherwise. +func (o *RealmRepresentation) GetResetPasswordAllowed() bool { + if o == nil || IsNil(o.ResetPasswordAllowed) { + var ret bool + return ret + } + return *o.ResetPasswordAllowed +} + +// GetResetPasswordAllowedOk returns a tuple with the ResetPasswordAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetResetPasswordAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.ResetPasswordAllowed) { + return nil, false + } + return o.ResetPasswordAllowed, true +} + +// HasResetPasswordAllowed returns a boolean if a field has been set. +func (o *RealmRepresentation) HasResetPasswordAllowed() bool { + if o != nil && !IsNil(o.ResetPasswordAllowed) { + return true + } + + return false +} + +// SetResetPasswordAllowed gets a reference to the given bool and assigns it to the ResetPasswordAllowed field. +func (o *RealmRepresentation) SetResetPasswordAllowed(v bool) { + o.ResetPasswordAllowed = &v +} + +// GetEditUsernameAllowed returns the EditUsernameAllowed field value if set, zero value otherwise. +func (o *RealmRepresentation) GetEditUsernameAllowed() bool { + if o == nil || IsNil(o.EditUsernameAllowed) { + var ret bool + return ret + } + return *o.EditUsernameAllowed +} + +// GetEditUsernameAllowedOk returns a tuple with the EditUsernameAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetEditUsernameAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.EditUsernameAllowed) { + return nil, false + } + return o.EditUsernameAllowed, true +} + +// HasEditUsernameAllowed returns a boolean if a field has been set. +func (o *RealmRepresentation) HasEditUsernameAllowed() bool { + if o != nil && !IsNil(o.EditUsernameAllowed) { + return true + } + + return false +} + +// SetEditUsernameAllowed gets a reference to the given bool and assigns it to the EditUsernameAllowed field. +func (o *RealmRepresentation) SetEditUsernameAllowed(v bool) { + o.EditUsernameAllowed = &v +} + +// GetUserCacheEnabled returns the UserCacheEnabled field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetUserCacheEnabled() bool { + if o == nil || IsNil(o.UserCacheEnabled) { + var ret bool + return ret + } + return *o.UserCacheEnabled +} + +// GetUserCacheEnabledOk returns a tuple with the UserCacheEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetUserCacheEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.UserCacheEnabled) { + return nil, false + } + return o.UserCacheEnabled, true +} + +// HasUserCacheEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasUserCacheEnabled() bool { + if o != nil && !IsNil(o.UserCacheEnabled) { + return true + } + + return false +} + +// SetUserCacheEnabled gets a reference to the given bool and assigns it to the UserCacheEnabled field. +// Deprecated +func (o *RealmRepresentation) SetUserCacheEnabled(v bool) { + o.UserCacheEnabled = &v +} + +// GetRealmCacheEnabled returns the RealmCacheEnabled field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetRealmCacheEnabled() bool { + if o == nil || IsNil(o.RealmCacheEnabled) { + var ret bool + return ret + } + return *o.RealmCacheEnabled +} + +// GetRealmCacheEnabledOk returns a tuple with the RealmCacheEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetRealmCacheEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.RealmCacheEnabled) { + return nil, false + } + return o.RealmCacheEnabled, true +} + +// HasRealmCacheEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRealmCacheEnabled() bool { + if o != nil && !IsNil(o.RealmCacheEnabled) { + return true + } + + return false +} + +// SetRealmCacheEnabled gets a reference to the given bool and assigns it to the RealmCacheEnabled field. +// Deprecated +func (o *RealmRepresentation) SetRealmCacheEnabled(v bool) { + o.RealmCacheEnabled = &v +} + +// GetBruteForceProtected returns the BruteForceProtected field value if set, zero value otherwise. +func (o *RealmRepresentation) GetBruteForceProtected() bool { + if o == nil || IsNil(o.BruteForceProtected) { + var ret bool + return ret + } + return *o.BruteForceProtected +} + +// GetBruteForceProtectedOk returns a tuple with the BruteForceProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetBruteForceProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.BruteForceProtected) { + return nil, false + } + return o.BruteForceProtected, true +} + +// HasBruteForceProtected returns a boolean if a field has been set. +func (o *RealmRepresentation) HasBruteForceProtected() bool { + if o != nil && !IsNil(o.BruteForceProtected) { + return true + } + + return false +} + +// SetBruteForceProtected gets a reference to the given bool and assigns it to the BruteForceProtected field. +func (o *RealmRepresentation) SetBruteForceProtected(v bool) { + o.BruteForceProtected = &v +} + +// GetPermanentLockout returns the PermanentLockout field value if set, zero value otherwise. +func (o *RealmRepresentation) GetPermanentLockout() bool { + if o == nil || IsNil(o.PermanentLockout) { + var ret bool + return ret + } + return *o.PermanentLockout +} + +// GetPermanentLockoutOk returns a tuple with the PermanentLockout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetPermanentLockoutOk() (*bool, bool) { + if o == nil || IsNil(o.PermanentLockout) { + return nil, false + } + return o.PermanentLockout, true +} + +// HasPermanentLockout returns a boolean if a field has been set. +func (o *RealmRepresentation) HasPermanentLockout() bool { + if o != nil && !IsNil(o.PermanentLockout) { + return true + } + + return false +} + +// SetPermanentLockout gets a reference to the given bool and assigns it to the PermanentLockout field. +func (o *RealmRepresentation) SetPermanentLockout(v bool) { + o.PermanentLockout = &v +} + +// GetMaxTemporaryLockouts returns the MaxTemporaryLockouts field value if set, zero value otherwise. +func (o *RealmRepresentation) GetMaxTemporaryLockouts() int32 { + if o == nil || IsNil(o.MaxTemporaryLockouts) { + var ret int32 + return ret + } + return *o.MaxTemporaryLockouts +} + +// GetMaxTemporaryLockoutsOk returns a tuple with the MaxTemporaryLockouts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetMaxTemporaryLockoutsOk() (*int32, bool) { + if o == nil || IsNil(o.MaxTemporaryLockouts) { + return nil, false + } + return o.MaxTemporaryLockouts, true +} + +// HasMaxTemporaryLockouts returns a boolean if a field has been set. +func (o *RealmRepresentation) HasMaxTemporaryLockouts() bool { + if o != nil && !IsNil(o.MaxTemporaryLockouts) { + return true + } + + return false +} + +// SetMaxTemporaryLockouts gets a reference to the given int32 and assigns it to the MaxTemporaryLockouts field. +func (o *RealmRepresentation) SetMaxTemporaryLockouts(v int32) { + o.MaxTemporaryLockouts = &v +} + +// GetBruteForceStrategy returns the BruteForceStrategy field value if set, zero value otherwise. +func (o *RealmRepresentation) GetBruteForceStrategy() BruteForceStrategy { + if o == nil || IsNil(o.BruteForceStrategy) { + var ret BruteForceStrategy + return ret + } + return *o.BruteForceStrategy +} + +// GetBruteForceStrategyOk returns a tuple with the BruteForceStrategy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetBruteForceStrategyOk() (*BruteForceStrategy, bool) { + if o == nil || IsNil(o.BruteForceStrategy) { + return nil, false + } + return o.BruteForceStrategy, true +} + +// HasBruteForceStrategy returns a boolean if a field has been set. +func (o *RealmRepresentation) HasBruteForceStrategy() bool { + if o != nil && !IsNil(o.BruteForceStrategy) { + return true + } + + return false +} + +// SetBruteForceStrategy gets a reference to the given BruteForceStrategy and assigns it to the BruteForceStrategy field. +func (o *RealmRepresentation) SetBruteForceStrategy(v BruteForceStrategy) { + o.BruteForceStrategy = &v +} + +// GetMaxFailureWaitSeconds returns the MaxFailureWaitSeconds field value if set, zero value otherwise. +func (o *RealmRepresentation) GetMaxFailureWaitSeconds() int32 { + if o == nil || IsNil(o.MaxFailureWaitSeconds) { + var ret int32 + return ret + } + return *o.MaxFailureWaitSeconds +} + +// GetMaxFailureWaitSecondsOk returns a tuple with the MaxFailureWaitSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetMaxFailureWaitSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.MaxFailureWaitSeconds) { + return nil, false + } + return o.MaxFailureWaitSeconds, true +} + +// HasMaxFailureWaitSeconds returns a boolean if a field has been set. +func (o *RealmRepresentation) HasMaxFailureWaitSeconds() bool { + if o != nil && !IsNil(o.MaxFailureWaitSeconds) { + return true + } + + return false +} + +// SetMaxFailureWaitSeconds gets a reference to the given int32 and assigns it to the MaxFailureWaitSeconds field. +func (o *RealmRepresentation) SetMaxFailureWaitSeconds(v int32) { + o.MaxFailureWaitSeconds = &v +} + +// GetMinimumQuickLoginWaitSeconds returns the MinimumQuickLoginWaitSeconds field value if set, zero value otherwise. +func (o *RealmRepresentation) GetMinimumQuickLoginWaitSeconds() int32 { + if o == nil || IsNil(o.MinimumQuickLoginWaitSeconds) { + var ret int32 + return ret + } + return *o.MinimumQuickLoginWaitSeconds +} + +// GetMinimumQuickLoginWaitSecondsOk returns a tuple with the MinimumQuickLoginWaitSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetMinimumQuickLoginWaitSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.MinimumQuickLoginWaitSeconds) { + return nil, false + } + return o.MinimumQuickLoginWaitSeconds, true +} + +// HasMinimumQuickLoginWaitSeconds returns a boolean if a field has been set. +func (o *RealmRepresentation) HasMinimumQuickLoginWaitSeconds() bool { + if o != nil && !IsNil(o.MinimumQuickLoginWaitSeconds) { + return true + } + + return false +} + +// SetMinimumQuickLoginWaitSeconds gets a reference to the given int32 and assigns it to the MinimumQuickLoginWaitSeconds field. +func (o *RealmRepresentation) SetMinimumQuickLoginWaitSeconds(v int32) { + o.MinimumQuickLoginWaitSeconds = &v +} + +// GetWaitIncrementSeconds returns the WaitIncrementSeconds field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWaitIncrementSeconds() int32 { + if o == nil || IsNil(o.WaitIncrementSeconds) { + var ret int32 + return ret + } + return *o.WaitIncrementSeconds +} + +// GetWaitIncrementSecondsOk returns a tuple with the WaitIncrementSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWaitIncrementSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.WaitIncrementSeconds) { + return nil, false + } + return o.WaitIncrementSeconds, true +} + +// HasWaitIncrementSeconds returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWaitIncrementSeconds() bool { + if o != nil && !IsNil(o.WaitIncrementSeconds) { + return true + } + + return false +} + +// SetWaitIncrementSeconds gets a reference to the given int32 and assigns it to the WaitIncrementSeconds field. +func (o *RealmRepresentation) SetWaitIncrementSeconds(v int32) { + o.WaitIncrementSeconds = &v +} + +// GetQuickLoginCheckMilliSeconds returns the QuickLoginCheckMilliSeconds field value if set, zero value otherwise. +func (o *RealmRepresentation) GetQuickLoginCheckMilliSeconds() int64 { + if o == nil || IsNil(o.QuickLoginCheckMilliSeconds) { + var ret int64 + return ret + } + return *o.QuickLoginCheckMilliSeconds +} + +// GetQuickLoginCheckMilliSecondsOk returns a tuple with the QuickLoginCheckMilliSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetQuickLoginCheckMilliSecondsOk() (*int64, bool) { + if o == nil || IsNil(o.QuickLoginCheckMilliSeconds) { + return nil, false + } + return o.QuickLoginCheckMilliSeconds, true +} + +// HasQuickLoginCheckMilliSeconds returns a boolean if a field has been set. +func (o *RealmRepresentation) HasQuickLoginCheckMilliSeconds() bool { + if o != nil && !IsNil(o.QuickLoginCheckMilliSeconds) { + return true + } + + return false +} + +// SetQuickLoginCheckMilliSeconds gets a reference to the given int64 and assigns it to the QuickLoginCheckMilliSeconds field. +func (o *RealmRepresentation) SetQuickLoginCheckMilliSeconds(v int64) { + o.QuickLoginCheckMilliSeconds = &v +} + +// GetMaxDeltaTimeSeconds returns the MaxDeltaTimeSeconds field value if set, zero value otherwise. +func (o *RealmRepresentation) GetMaxDeltaTimeSeconds() int32 { + if o == nil || IsNil(o.MaxDeltaTimeSeconds) { + var ret int32 + return ret + } + return *o.MaxDeltaTimeSeconds +} + +// GetMaxDeltaTimeSecondsOk returns a tuple with the MaxDeltaTimeSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetMaxDeltaTimeSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.MaxDeltaTimeSeconds) { + return nil, false + } + return o.MaxDeltaTimeSeconds, true +} + +// HasMaxDeltaTimeSeconds returns a boolean if a field has been set. +func (o *RealmRepresentation) HasMaxDeltaTimeSeconds() bool { + if o != nil && !IsNil(o.MaxDeltaTimeSeconds) { + return true + } + + return false +} + +// SetMaxDeltaTimeSeconds gets a reference to the given int32 and assigns it to the MaxDeltaTimeSeconds field. +func (o *RealmRepresentation) SetMaxDeltaTimeSeconds(v int32) { + o.MaxDeltaTimeSeconds = &v +} + +// GetFailureFactor returns the FailureFactor field value if set, zero value otherwise. +func (o *RealmRepresentation) GetFailureFactor() int32 { + if o == nil || IsNil(o.FailureFactor) { + var ret int32 + return ret + } + return *o.FailureFactor +} + +// GetFailureFactorOk returns a tuple with the FailureFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetFailureFactorOk() (*int32, bool) { + if o == nil || IsNil(o.FailureFactor) { + return nil, false + } + return o.FailureFactor, true +} + +// HasFailureFactor returns a boolean if a field has been set. +func (o *RealmRepresentation) HasFailureFactor() bool { + if o != nil && !IsNil(o.FailureFactor) { + return true + } + + return false +} + +// SetFailureFactor gets a reference to the given int32 and assigns it to the FailureFactor field. +func (o *RealmRepresentation) SetFailureFactor(v int32) { + o.FailureFactor = &v +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) 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. +// Deprecated +func (o *RealmRepresentation) 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 *RealmRepresentation) 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. +// Deprecated +func (o *RealmRepresentation) SetPrivateKey(v string) { + o.PrivateKey = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) 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. +// Deprecated +func (o *RealmRepresentation) 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 *RealmRepresentation) 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. +// Deprecated +func (o *RealmRepresentation) SetPublicKey(v string) { + o.PublicKey = &v +} + +// GetCertificate returns the Certificate field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) 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. +// Deprecated +func (o *RealmRepresentation) 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 *RealmRepresentation) 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. +// Deprecated +func (o *RealmRepresentation) SetCertificate(v string) { + o.Certificate = &v +} + +// GetCodeSecret returns the CodeSecret field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetCodeSecret() string { + if o == nil || IsNil(o.CodeSecret) { + var ret string + return ret + } + return *o.CodeSecret +} + +// GetCodeSecretOk returns a tuple with the CodeSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetCodeSecretOk() (*string, bool) { + if o == nil || IsNil(o.CodeSecret) { + return nil, false + } + return o.CodeSecret, true +} + +// HasCodeSecret returns a boolean if a field has been set. +func (o *RealmRepresentation) HasCodeSecret() bool { + if o != nil && !IsNil(o.CodeSecret) { + return true + } + + return false +} + +// SetCodeSecret gets a reference to the given string and assigns it to the CodeSecret field. +// Deprecated +func (o *RealmRepresentation) SetCodeSecret(v string) { + o.CodeSecret = &v +} + +// GetRoles returns the Roles field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRoles() RolesRepresentation { + if o == nil || IsNil(o.Roles) { + var ret RolesRepresentation + 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 *RealmRepresentation) GetRolesOk() (*RolesRepresentation, 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 *RealmRepresentation) HasRoles() bool { + if o != nil && !IsNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given RolesRepresentation and assigns it to the Roles field. +func (o *RealmRepresentation) SetRoles(v RolesRepresentation) { + o.Roles = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *RealmRepresentation) GetGroups() []GroupRepresentation { + if o == nil || IsNil(o.Groups) { + var ret []GroupRepresentation + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetGroupsOk() ([]GroupRepresentation, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *RealmRepresentation) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []GroupRepresentation and assigns it to the Groups field. +func (o *RealmRepresentation) SetGroups(v []GroupRepresentation) { + o.Groups = v +} + +// GetDefaultRoles returns the DefaultRoles field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetDefaultRoles() []string { + if o == nil || IsNil(o.DefaultRoles) { + var ret []string + return ret + } + return o.DefaultRoles +} + +// GetDefaultRolesOk returns a tuple with the DefaultRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetDefaultRolesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultRoles) { + return nil, false + } + return o.DefaultRoles, true +} + +// HasDefaultRoles returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDefaultRoles() bool { + if o != nil && !IsNil(o.DefaultRoles) { + return true + } + + return false +} + +// SetDefaultRoles gets a reference to the given []string and assigns it to the DefaultRoles field. +// Deprecated +func (o *RealmRepresentation) SetDefaultRoles(v []string) { + o.DefaultRoles = v +} + +// GetDefaultRole returns the DefaultRole field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDefaultRole() RoleRepresentation { + if o == nil || IsNil(o.DefaultRole) { + var ret RoleRepresentation + return ret + } + return *o.DefaultRole +} + +// GetDefaultRoleOk returns a tuple with the DefaultRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDefaultRoleOk() (*RoleRepresentation, bool) { + if o == nil || IsNil(o.DefaultRole) { + return nil, false + } + return o.DefaultRole, true +} + +// HasDefaultRole returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDefaultRole() bool { + if o != nil && !IsNil(o.DefaultRole) { + return true + } + + return false +} + +// SetDefaultRole gets a reference to the given RoleRepresentation and assigns it to the DefaultRole field. +func (o *RealmRepresentation) SetDefaultRole(v RoleRepresentation) { + o.DefaultRole = &v +} + +// GetDefaultGroups returns the DefaultGroups field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDefaultGroups() []string { + if o == nil || IsNil(o.DefaultGroups) { + var ret []string + return ret + } + return o.DefaultGroups +} + +// GetDefaultGroupsOk returns a tuple with the DefaultGroups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDefaultGroupsOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultGroups) { + return nil, false + } + return o.DefaultGroups, true +} + +// HasDefaultGroups returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDefaultGroups() bool { + if o != nil && !IsNil(o.DefaultGroups) { + return true + } + + return false +} + +// SetDefaultGroups gets a reference to the given []string and assigns it to the DefaultGroups field. +func (o *RealmRepresentation) SetDefaultGroups(v []string) { + o.DefaultGroups = v +} + +// GetRequiredCredentials returns the RequiredCredentials field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetRequiredCredentials() []string { + if o == nil || IsNil(o.RequiredCredentials) { + var ret []string + return ret + } + return o.RequiredCredentials +} + +// GetRequiredCredentialsOk returns a tuple with the RequiredCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetRequiredCredentialsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredCredentials) { + return nil, false + } + return o.RequiredCredentials, true +} + +// HasRequiredCredentials returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRequiredCredentials() bool { + if o != nil && !IsNil(o.RequiredCredentials) { + return true + } + + return false +} + +// SetRequiredCredentials gets a reference to the given []string and assigns it to the RequiredCredentials field. +// Deprecated +func (o *RealmRepresentation) SetRequiredCredentials(v []string) { + o.RequiredCredentials = v +} + +// GetPasswordPolicy returns the PasswordPolicy field value if set, zero value otherwise. +func (o *RealmRepresentation) GetPasswordPolicy() string { + if o == nil || IsNil(o.PasswordPolicy) { + var ret string + return ret + } + return *o.PasswordPolicy +} + +// GetPasswordPolicyOk returns a tuple with the PasswordPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetPasswordPolicyOk() (*string, bool) { + if o == nil || IsNil(o.PasswordPolicy) { + return nil, false + } + return o.PasswordPolicy, true +} + +// HasPasswordPolicy returns a boolean if a field has been set. +func (o *RealmRepresentation) HasPasswordPolicy() bool { + if o != nil && !IsNil(o.PasswordPolicy) { + return true + } + + return false +} + +// SetPasswordPolicy gets a reference to the given string and assigns it to the PasswordPolicy field. +func (o *RealmRepresentation) SetPasswordPolicy(v string) { + o.PasswordPolicy = &v +} + +// GetOtpPolicyType returns the OtpPolicyType field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpPolicyType() string { + if o == nil || IsNil(o.OtpPolicyType) { + var ret string + return ret + } + return *o.OtpPolicyType +} + +// GetOtpPolicyTypeOk returns a tuple with the OtpPolicyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpPolicyTypeOk() (*string, bool) { + if o == nil || IsNil(o.OtpPolicyType) { + return nil, false + } + return o.OtpPolicyType, true +} + +// HasOtpPolicyType returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpPolicyType() bool { + if o != nil && !IsNil(o.OtpPolicyType) { + return true + } + + return false +} + +// SetOtpPolicyType gets a reference to the given string and assigns it to the OtpPolicyType field. +func (o *RealmRepresentation) SetOtpPolicyType(v string) { + o.OtpPolicyType = &v +} + +// GetOtpPolicyAlgorithm returns the OtpPolicyAlgorithm field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpPolicyAlgorithm() string { + if o == nil || IsNil(o.OtpPolicyAlgorithm) { + var ret string + return ret + } + return *o.OtpPolicyAlgorithm +} + +// GetOtpPolicyAlgorithmOk returns a tuple with the OtpPolicyAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpPolicyAlgorithmOk() (*string, bool) { + if o == nil || IsNil(o.OtpPolicyAlgorithm) { + return nil, false + } + return o.OtpPolicyAlgorithm, true +} + +// HasOtpPolicyAlgorithm returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpPolicyAlgorithm() bool { + if o != nil && !IsNil(o.OtpPolicyAlgorithm) { + return true + } + + return false +} + +// SetOtpPolicyAlgorithm gets a reference to the given string and assigns it to the OtpPolicyAlgorithm field. +func (o *RealmRepresentation) SetOtpPolicyAlgorithm(v string) { + o.OtpPolicyAlgorithm = &v +} + +// GetOtpPolicyInitialCounter returns the OtpPolicyInitialCounter field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpPolicyInitialCounter() int32 { + if o == nil || IsNil(o.OtpPolicyInitialCounter) { + var ret int32 + return ret + } + return *o.OtpPolicyInitialCounter +} + +// GetOtpPolicyInitialCounterOk returns a tuple with the OtpPolicyInitialCounter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpPolicyInitialCounterOk() (*int32, bool) { + if o == nil || IsNil(o.OtpPolicyInitialCounter) { + return nil, false + } + return o.OtpPolicyInitialCounter, true +} + +// HasOtpPolicyInitialCounter returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpPolicyInitialCounter() bool { + if o != nil && !IsNil(o.OtpPolicyInitialCounter) { + return true + } + + return false +} + +// SetOtpPolicyInitialCounter gets a reference to the given int32 and assigns it to the OtpPolicyInitialCounter field. +func (o *RealmRepresentation) SetOtpPolicyInitialCounter(v int32) { + o.OtpPolicyInitialCounter = &v +} + +// GetOtpPolicyDigits returns the OtpPolicyDigits field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpPolicyDigits() int32 { + if o == nil || IsNil(o.OtpPolicyDigits) { + var ret int32 + return ret + } + return *o.OtpPolicyDigits +} + +// GetOtpPolicyDigitsOk returns a tuple with the OtpPolicyDigits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpPolicyDigitsOk() (*int32, bool) { + if o == nil || IsNil(o.OtpPolicyDigits) { + return nil, false + } + return o.OtpPolicyDigits, true +} + +// HasOtpPolicyDigits returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpPolicyDigits() bool { + if o != nil && !IsNil(o.OtpPolicyDigits) { + return true + } + + return false +} + +// SetOtpPolicyDigits gets a reference to the given int32 and assigns it to the OtpPolicyDigits field. +func (o *RealmRepresentation) SetOtpPolicyDigits(v int32) { + o.OtpPolicyDigits = &v +} + +// GetOtpPolicyLookAheadWindow returns the OtpPolicyLookAheadWindow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpPolicyLookAheadWindow() int32 { + if o == nil || IsNil(o.OtpPolicyLookAheadWindow) { + var ret int32 + return ret + } + return *o.OtpPolicyLookAheadWindow +} + +// GetOtpPolicyLookAheadWindowOk returns a tuple with the OtpPolicyLookAheadWindow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpPolicyLookAheadWindowOk() (*int32, bool) { + if o == nil || IsNil(o.OtpPolicyLookAheadWindow) { + return nil, false + } + return o.OtpPolicyLookAheadWindow, true +} + +// HasOtpPolicyLookAheadWindow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpPolicyLookAheadWindow() bool { + if o != nil && !IsNil(o.OtpPolicyLookAheadWindow) { + return true + } + + return false +} + +// SetOtpPolicyLookAheadWindow gets a reference to the given int32 and assigns it to the OtpPolicyLookAheadWindow field. +func (o *RealmRepresentation) SetOtpPolicyLookAheadWindow(v int32) { + o.OtpPolicyLookAheadWindow = &v +} + +// GetOtpPolicyPeriod returns the OtpPolicyPeriod field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpPolicyPeriod() int32 { + if o == nil || IsNil(o.OtpPolicyPeriod) { + var ret int32 + return ret + } + return *o.OtpPolicyPeriod +} + +// GetOtpPolicyPeriodOk returns a tuple with the OtpPolicyPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpPolicyPeriodOk() (*int32, bool) { + if o == nil || IsNil(o.OtpPolicyPeriod) { + return nil, false + } + return o.OtpPolicyPeriod, true +} + +// HasOtpPolicyPeriod returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpPolicyPeriod() bool { + if o != nil && !IsNil(o.OtpPolicyPeriod) { + return true + } + + return false +} + +// SetOtpPolicyPeriod gets a reference to the given int32 and assigns it to the OtpPolicyPeriod field. +func (o *RealmRepresentation) SetOtpPolicyPeriod(v int32) { + o.OtpPolicyPeriod = &v +} + +// GetOtpPolicyCodeReusable returns the OtpPolicyCodeReusable field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpPolicyCodeReusable() bool { + if o == nil || IsNil(o.OtpPolicyCodeReusable) { + var ret bool + return ret + } + return *o.OtpPolicyCodeReusable +} + +// GetOtpPolicyCodeReusableOk returns a tuple with the OtpPolicyCodeReusable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpPolicyCodeReusableOk() (*bool, bool) { + if o == nil || IsNil(o.OtpPolicyCodeReusable) { + return nil, false + } + return o.OtpPolicyCodeReusable, true +} + +// HasOtpPolicyCodeReusable returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpPolicyCodeReusable() bool { + if o != nil && !IsNil(o.OtpPolicyCodeReusable) { + return true + } + + return false +} + +// SetOtpPolicyCodeReusable gets a reference to the given bool and assigns it to the OtpPolicyCodeReusable field. +func (o *RealmRepresentation) SetOtpPolicyCodeReusable(v bool) { + o.OtpPolicyCodeReusable = &v +} + +// GetOtpSupportedApplications returns the OtpSupportedApplications field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOtpSupportedApplications() []string { + if o == nil || IsNil(o.OtpSupportedApplications) { + var ret []string + return ret + } + return o.OtpSupportedApplications +} + +// GetOtpSupportedApplicationsOk returns a tuple with the OtpSupportedApplications field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOtpSupportedApplicationsOk() ([]string, bool) { + if o == nil || IsNil(o.OtpSupportedApplications) { + return nil, false + } + return o.OtpSupportedApplications, true +} + +// HasOtpSupportedApplications returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOtpSupportedApplications() bool { + if o != nil && !IsNil(o.OtpSupportedApplications) { + return true + } + + return false +} + +// SetOtpSupportedApplications gets a reference to the given []string and assigns it to the OtpSupportedApplications field. +func (o *RealmRepresentation) SetOtpSupportedApplications(v []string) { + o.OtpSupportedApplications = v +} + +// GetLocalizationTexts returns the LocalizationTexts field value if set, zero value otherwise. +func (o *RealmRepresentation) GetLocalizationTexts() map[string]map[string]string { + if o == nil || IsNil(o.LocalizationTexts) { + var ret map[string]map[string]string + return ret + } + return *o.LocalizationTexts +} + +// GetLocalizationTextsOk returns a tuple with the LocalizationTexts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetLocalizationTextsOk() (*map[string]map[string]string, bool) { + if o == nil || IsNil(o.LocalizationTexts) { + return nil, false + } + return o.LocalizationTexts, true +} + +// HasLocalizationTexts returns a boolean if a field has been set. +func (o *RealmRepresentation) HasLocalizationTexts() bool { + if o != nil && !IsNil(o.LocalizationTexts) { + return true + } + + return false +} + +// SetLocalizationTexts gets a reference to the given map[string]map[string]string and assigns it to the LocalizationTexts field. +func (o *RealmRepresentation) SetLocalizationTexts(v map[string]map[string]string) { + o.LocalizationTexts = &v +} + +// GetWebAuthnPolicyRpEntityName returns the WebAuthnPolicyRpEntityName field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyRpEntityName() string { + if o == nil || IsNil(o.WebAuthnPolicyRpEntityName) { + var ret string + return ret + } + return *o.WebAuthnPolicyRpEntityName +} + +// GetWebAuthnPolicyRpEntityNameOk returns a tuple with the WebAuthnPolicyRpEntityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyRpEntityNameOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyRpEntityName) { + return nil, false + } + return o.WebAuthnPolicyRpEntityName, true +} + +// HasWebAuthnPolicyRpEntityName returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyRpEntityName() bool { + if o != nil && !IsNil(o.WebAuthnPolicyRpEntityName) { + return true + } + + return false +} + +// SetWebAuthnPolicyRpEntityName gets a reference to the given string and assigns it to the WebAuthnPolicyRpEntityName field. +func (o *RealmRepresentation) SetWebAuthnPolicyRpEntityName(v string) { + o.WebAuthnPolicyRpEntityName = &v +} + +// GetWebAuthnPolicySignatureAlgorithms returns the WebAuthnPolicySignatureAlgorithms field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicySignatureAlgorithms() []string { + if o == nil || IsNil(o.WebAuthnPolicySignatureAlgorithms) { + var ret []string + return ret + } + return o.WebAuthnPolicySignatureAlgorithms +} + +// GetWebAuthnPolicySignatureAlgorithmsOk returns a tuple with the WebAuthnPolicySignatureAlgorithms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicySignatureAlgorithmsOk() ([]string, bool) { + if o == nil || IsNil(o.WebAuthnPolicySignatureAlgorithms) { + return nil, false + } + return o.WebAuthnPolicySignatureAlgorithms, true +} + +// HasWebAuthnPolicySignatureAlgorithms returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicySignatureAlgorithms() bool { + if o != nil && !IsNil(o.WebAuthnPolicySignatureAlgorithms) { + return true + } + + return false +} + +// SetWebAuthnPolicySignatureAlgorithms gets a reference to the given []string and assigns it to the WebAuthnPolicySignatureAlgorithms field. +func (o *RealmRepresentation) SetWebAuthnPolicySignatureAlgorithms(v []string) { + o.WebAuthnPolicySignatureAlgorithms = v +} + +// GetWebAuthnPolicyRpId returns the WebAuthnPolicyRpId field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyRpId() string { + if o == nil || IsNil(o.WebAuthnPolicyRpId) { + var ret string + return ret + } + return *o.WebAuthnPolicyRpId +} + +// GetWebAuthnPolicyRpIdOk returns a tuple with the WebAuthnPolicyRpId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyRpIdOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyRpId) { + return nil, false + } + return o.WebAuthnPolicyRpId, true +} + +// HasWebAuthnPolicyRpId returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyRpId() bool { + if o != nil && !IsNil(o.WebAuthnPolicyRpId) { + return true + } + + return false +} + +// SetWebAuthnPolicyRpId gets a reference to the given string and assigns it to the WebAuthnPolicyRpId field. +func (o *RealmRepresentation) SetWebAuthnPolicyRpId(v string) { + o.WebAuthnPolicyRpId = &v +} + +// GetWebAuthnPolicyAttestationConveyancePreference returns the WebAuthnPolicyAttestationConveyancePreference field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyAttestationConveyancePreference() string { + if o == nil || IsNil(o.WebAuthnPolicyAttestationConveyancePreference) { + var ret string + return ret + } + return *o.WebAuthnPolicyAttestationConveyancePreference +} + +// GetWebAuthnPolicyAttestationConveyancePreferenceOk returns a tuple with the WebAuthnPolicyAttestationConveyancePreference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyAttestationConveyancePreferenceOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyAttestationConveyancePreference) { + return nil, false + } + return o.WebAuthnPolicyAttestationConveyancePreference, true +} + +// HasWebAuthnPolicyAttestationConveyancePreference returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyAttestationConveyancePreference() bool { + if o != nil && !IsNil(o.WebAuthnPolicyAttestationConveyancePreference) { + return true + } + + return false +} + +// SetWebAuthnPolicyAttestationConveyancePreference gets a reference to the given string and assigns it to the WebAuthnPolicyAttestationConveyancePreference field. +func (o *RealmRepresentation) SetWebAuthnPolicyAttestationConveyancePreference(v string) { + o.WebAuthnPolicyAttestationConveyancePreference = &v +} + +// GetWebAuthnPolicyAuthenticatorAttachment returns the WebAuthnPolicyAuthenticatorAttachment field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyAuthenticatorAttachment() string { + if o == nil || IsNil(o.WebAuthnPolicyAuthenticatorAttachment) { + var ret string + return ret + } + return *o.WebAuthnPolicyAuthenticatorAttachment +} + +// GetWebAuthnPolicyAuthenticatorAttachmentOk returns a tuple with the WebAuthnPolicyAuthenticatorAttachment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyAuthenticatorAttachmentOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyAuthenticatorAttachment) { + return nil, false + } + return o.WebAuthnPolicyAuthenticatorAttachment, true +} + +// HasWebAuthnPolicyAuthenticatorAttachment returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyAuthenticatorAttachment() bool { + if o != nil && !IsNil(o.WebAuthnPolicyAuthenticatorAttachment) { + return true + } + + return false +} + +// SetWebAuthnPolicyAuthenticatorAttachment gets a reference to the given string and assigns it to the WebAuthnPolicyAuthenticatorAttachment field. +func (o *RealmRepresentation) SetWebAuthnPolicyAuthenticatorAttachment(v string) { + o.WebAuthnPolicyAuthenticatorAttachment = &v +} + +// GetWebAuthnPolicyRequireResidentKey returns the WebAuthnPolicyRequireResidentKey field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyRequireResidentKey() string { + if o == nil || IsNil(o.WebAuthnPolicyRequireResidentKey) { + var ret string + return ret + } + return *o.WebAuthnPolicyRequireResidentKey +} + +// GetWebAuthnPolicyRequireResidentKeyOk returns a tuple with the WebAuthnPolicyRequireResidentKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyRequireResidentKeyOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyRequireResidentKey) { + return nil, false + } + return o.WebAuthnPolicyRequireResidentKey, true +} + +// HasWebAuthnPolicyRequireResidentKey returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyRequireResidentKey() bool { + if o != nil && !IsNil(o.WebAuthnPolicyRequireResidentKey) { + return true + } + + return false +} + +// SetWebAuthnPolicyRequireResidentKey gets a reference to the given string and assigns it to the WebAuthnPolicyRequireResidentKey field. +func (o *RealmRepresentation) SetWebAuthnPolicyRequireResidentKey(v string) { + o.WebAuthnPolicyRequireResidentKey = &v +} + +// GetWebAuthnPolicyUserVerificationRequirement returns the WebAuthnPolicyUserVerificationRequirement field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyUserVerificationRequirement() string { + if o == nil || IsNil(o.WebAuthnPolicyUserVerificationRequirement) { + var ret string + return ret + } + return *o.WebAuthnPolicyUserVerificationRequirement +} + +// GetWebAuthnPolicyUserVerificationRequirementOk returns a tuple with the WebAuthnPolicyUserVerificationRequirement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyUserVerificationRequirementOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyUserVerificationRequirement) { + return nil, false + } + return o.WebAuthnPolicyUserVerificationRequirement, true +} + +// HasWebAuthnPolicyUserVerificationRequirement returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyUserVerificationRequirement() bool { + if o != nil && !IsNil(o.WebAuthnPolicyUserVerificationRequirement) { + return true + } + + return false +} + +// SetWebAuthnPolicyUserVerificationRequirement gets a reference to the given string and assigns it to the WebAuthnPolicyUserVerificationRequirement field. +func (o *RealmRepresentation) SetWebAuthnPolicyUserVerificationRequirement(v string) { + o.WebAuthnPolicyUserVerificationRequirement = &v +} + +// GetWebAuthnPolicyCreateTimeout returns the WebAuthnPolicyCreateTimeout field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyCreateTimeout() int32 { + if o == nil || IsNil(o.WebAuthnPolicyCreateTimeout) { + var ret int32 + return ret + } + return *o.WebAuthnPolicyCreateTimeout +} + +// GetWebAuthnPolicyCreateTimeoutOk returns a tuple with the WebAuthnPolicyCreateTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyCreateTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.WebAuthnPolicyCreateTimeout) { + return nil, false + } + return o.WebAuthnPolicyCreateTimeout, true +} + +// HasWebAuthnPolicyCreateTimeout returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyCreateTimeout() bool { + if o != nil && !IsNil(o.WebAuthnPolicyCreateTimeout) { + return true + } + + return false +} + +// SetWebAuthnPolicyCreateTimeout gets a reference to the given int32 and assigns it to the WebAuthnPolicyCreateTimeout field. +func (o *RealmRepresentation) SetWebAuthnPolicyCreateTimeout(v int32) { + o.WebAuthnPolicyCreateTimeout = &v +} + +// GetWebAuthnPolicyAvoidSameAuthenticatorRegister returns the WebAuthnPolicyAvoidSameAuthenticatorRegister field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyAvoidSameAuthenticatorRegister() bool { + if o == nil || IsNil(o.WebAuthnPolicyAvoidSameAuthenticatorRegister) { + var ret bool + return ret + } + return *o.WebAuthnPolicyAvoidSameAuthenticatorRegister +} + +// GetWebAuthnPolicyAvoidSameAuthenticatorRegisterOk returns a tuple with the WebAuthnPolicyAvoidSameAuthenticatorRegister field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyAvoidSameAuthenticatorRegisterOk() (*bool, bool) { + if o == nil || IsNil(o.WebAuthnPolicyAvoidSameAuthenticatorRegister) { + return nil, false + } + return o.WebAuthnPolicyAvoidSameAuthenticatorRegister, true +} + +// HasWebAuthnPolicyAvoidSameAuthenticatorRegister returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyAvoidSameAuthenticatorRegister() bool { + if o != nil && !IsNil(o.WebAuthnPolicyAvoidSameAuthenticatorRegister) { + return true + } + + return false +} + +// SetWebAuthnPolicyAvoidSameAuthenticatorRegister gets a reference to the given bool and assigns it to the WebAuthnPolicyAvoidSameAuthenticatorRegister field. +func (o *RealmRepresentation) SetWebAuthnPolicyAvoidSameAuthenticatorRegister(v bool) { + o.WebAuthnPolicyAvoidSameAuthenticatorRegister = &v +} + +// GetWebAuthnPolicyAcceptableAaguids returns the WebAuthnPolicyAcceptableAaguids field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyAcceptableAaguids() []string { + if o == nil || IsNil(o.WebAuthnPolicyAcceptableAaguids) { + var ret []string + return ret + } + return o.WebAuthnPolicyAcceptableAaguids +} + +// GetWebAuthnPolicyAcceptableAaguidsOk returns a tuple with the WebAuthnPolicyAcceptableAaguids field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyAcceptableAaguidsOk() ([]string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyAcceptableAaguids) { + return nil, false + } + return o.WebAuthnPolicyAcceptableAaguids, true +} + +// HasWebAuthnPolicyAcceptableAaguids returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyAcceptableAaguids() bool { + if o != nil && !IsNil(o.WebAuthnPolicyAcceptableAaguids) { + return true + } + + return false +} + +// SetWebAuthnPolicyAcceptableAaguids gets a reference to the given []string and assigns it to the WebAuthnPolicyAcceptableAaguids field. +func (o *RealmRepresentation) SetWebAuthnPolicyAcceptableAaguids(v []string) { + o.WebAuthnPolicyAcceptableAaguids = v +} + +// GetWebAuthnPolicyExtraOrigins returns the WebAuthnPolicyExtraOrigins field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyExtraOrigins() []string { + if o == nil || IsNil(o.WebAuthnPolicyExtraOrigins) { + var ret []string + return ret + } + return o.WebAuthnPolicyExtraOrigins +} + +// GetWebAuthnPolicyExtraOriginsOk returns a tuple with the WebAuthnPolicyExtraOrigins field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyExtraOriginsOk() ([]string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyExtraOrigins) { + return nil, false + } + return o.WebAuthnPolicyExtraOrigins, true +} + +// HasWebAuthnPolicyExtraOrigins returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyExtraOrigins() bool { + if o != nil && !IsNil(o.WebAuthnPolicyExtraOrigins) { + return true + } + + return false +} + +// SetWebAuthnPolicyExtraOrigins gets a reference to the given []string and assigns it to the WebAuthnPolicyExtraOrigins field. +func (o *RealmRepresentation) SetWebAuthnPolicyExtraOrigins(v []string) { + o.WebAuthnPolicyExtraOrigins = v +} + +// GetWebAuthnPolicyPasswordlessRpEntityName returns the WebAuthnPolicyPasswordlessRpEntityName field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpEntityName() string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessRpEntityName) { + var ret string + return ret + } + return *o.WebAuthnPolicyPasswordlessRpEntityName +} + +// GetWebAuthnPolicyPasswordlessRpEntityNameOk returns a tuple with the WebAuthnPolicyPasswordlessRpEntityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpEntityNameOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessRpEntityName) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessRpEntityName, true +} + +// HasWebAuthnPolicyPasswordlessRpEntityName returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessRpEntityName() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessRpEntityName) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessRpEntityName gets a reference to the given string and assigns it to the WebAuthnPolicyPasswordlessRpEntityName field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessRpEntityName(v string) { + o.WebAuthnPolicyPasswordlessRpEntityName = &v +} + +// GetWebAuthnPolicyPasswordlessSignatureAlgorithms returns the WebAuthnPolicyPasswordlessSignatureAlgorithms field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessSignatureAlgorithms() []string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessSignatureAlgorithms) { + var ret []string + return ret + } + return o.WebAuthnPolicyPasswordlessSignatureAlgorithms +} + +// GetWebAuthnPolicyPasswordlessSignatureAlgorithmsOk returns a tuple with the WebAuthnPolicyPasswordlessSignatureAlgorithms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessSignatureAlgorithmsOk() ([]string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessSignatureAlgorithms) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessSignatureAlgorithms, true +} + +// HasWebAuthnPolicyPasswordlessSignatureAlgorithms returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessSignatureAlgorithms() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessSignatureAlgorithms) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessSignatureAlgorithms gets a reference to the given []string and assigns it to the WebAuthnPolicyPasswordlessSignatureAlgorithms field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessSignatureAlgorithms(v []string) { + o.WebAuthnPolicyPasswordlessSignatureAlgorithms = v +} + +// GetWebAuthnPolicyPasswordlessRpId returns the WebAuthnPolicyPasswordlessRpId field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpId() string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessRpId) { + var ret string + return ret + } + return *o.WebAuthnPolicyPasswordlessRpId +} + +// GetWebAuthnPolicyPasswordlessRpIdOk returns a tuple with the WebAuthnPolicyPasswordlessRpId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRpIdOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessRpId) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessRpId, true +} + +// HasWebAuthnPolicyPasswordlessRpId returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessRpId() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessRpId) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessRpId gets a reference to the given string and assigns it to the WebAuthnPolicyPasswordlessRpId field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessRpId(v string) { + o.WebAuthnPolicyPasswordlessRpId = &v +} + +// GetWebAuthnPolicyPasswordlessAttestationConveyancePreference returns the WebAuthnPolicyPasswordlessAttestationConveyancePreference field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAttestationConveyancePreference() string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAttestationConveyancePreference) { + var ret string + return ret + } + return *o.WebAuthnPolicyPasswordlessAttestationConveyancePreference +} + +// GetWebAuthnPolicyPasswordlessAttestationConveyancePreferenceOk returns a tuple with the WebAuthnPolicyPasswordlessAttestationConveyancePreference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAttestationConveyancePreferenceOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAttestationConveyancePreference) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessAttestationConveyancePreference, true +} + +// HasWebAuthnPolicyPasswordlessAttestationConveyancePreference returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAttestationConveyancePreference() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessAttestationConveyancePreference) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessAttestationConveyancePreference gets a reference to the given string and assigns it to the WebAuthnPolicyPasswordlessAttestationConveyancePreference field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAttestationConveyancePreference(v string) { + o.WebAuthnPolicyPasswordlessAttestationConveyancePreference = &v +} + +// GetWebAuthnPolicyPasswordlessAuthenticatorAttachment returns the WebAuthnPolicyPasswordlessAuthenticatorAttachment field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAuthenticatorAttachment() string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAuthenticatorAttachment) { + var ret string + return ret + } + return *o.WebAuthnPolicyPasswordlessAuthenticatorAttachment +} + +// GetWebAuthnPolicyPasswordlessAuthenticatorAttachmentOk returns a tuple with the WebAuthnPolicyPasswordlessAuthenticatorAttachment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAuthenticatorAttachmentOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAuthenticatorAttachment) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessAuthenticatorAttachment, true +} + +// HasWebAuthnPolicyPasswordlessAuthenticatorAttachment returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAuthenticatorAttachment() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessAuthenticatorAttachment) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessAuthenticatorAttachment gets a reference to the given string and assigns it to the WebAuthnPolicyPasswordlessAuthenticatorAttachment field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAuthenticatorAttachment(v string) { + o.WebAuthnPolicyPasswordlessAuthenticatorAttachment = &v +} + +// GetWebAuthnPolicyPasswordlessRequireResidentKey returns the WebAuthnPolicyPasswordlessRequireResidentKey field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRequireResidentKey() string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessRequireResidentKey) { + var ret string + return ret + } + return *o.WebAuthnPolicyPasswordlessRequireResidentKey +} + +// GetWebAuthnPolicyPasswordlessRequireResidentKeyOk returns a tuple with the WebAuthnPolicyPasswordlessRequireResidentKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessRequireResidentKeyOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessRequireResidentKey) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessRequireResidentKey, true +} + +// HasWebAuthnPolicyPasswordlessRequireResidentKey returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessRequireResidentKey() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessRequireResidentKey) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessRequireResidentKey gets a reference to the given string and assigns it to the WebAuthnPolicyPasswordlessRequireResidentKey field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessRequireResidentKey(v string) { + o.WebAuthnPolicyPasswordlessRequireResidentKey = &v +} + +// GetWebAuthnPolicyPasswordlessUserVerificationRequirement returns the WebAuthnPolicyPasswordlessUserVerificationRequirement field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessUserVerificationRequirement() string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessUserVerificationRequirement) { + var ret string + return ret + } + return *o.WebAuthnPolicyPasswordlessUserVerificationRequirement +} + +// GetWebAuthnPolicyPasswordlessUserVerificationRequirementOk returns a tuple with the WebAuthnPolicyPasswordlessUserVerificationRequirement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessUserVerificationRequirementOk() (*string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessUserVerificationRequirement) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessUserVerificationRequirement, true +} + +// HasWebAuthnPolicyPasswordlessUserVerificationRequirement returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessUserVerificationRequirement() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessUserVerificationRequirement) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessUserVerificationRequirement gets a reference to the given string and assigns it to the WebAuthnPolicyPasswordlessUserVerificationRequirement field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessUserVerificationRequirement(v string) { + o.WebAuthnPolicyPasswordlessUserVerificationRequirement = &v +} + +// GetWebAuthnPolicyPasswordlessCreateTimeout returns the WebAuthnPolicyPasswordlessCreateTimeout field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessCreateTimeout() int32 { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessCreateTimeout) { + var ret int32 + return ret + } + return *o.WebAuthnPolicyPasswordlessCreateTimeout +} + +// GetWebAuthnPolicyPasswordlessCreateTimeoutOk returns a tuple with the WebAuthnPolicyPasswordlessCreateTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessCreateTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessCreateTimeout) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessCreateTimeout, true +} + +// HasWebAuthnPolicyPasswordlessCreateTimeout returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessCreateTimeout() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessCreateTimeout) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessCreateTimeout gets a reference to the given int32 and assigns it to the WebAuthnPolicyPasswordlessCreateTimeout field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessCreateTimeout(v int32) { + o.WebAuthnPolicyPasswordlessCreateTimeout = &v +} + +// GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister returns the WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister() bool { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister) { + var ret bool + return ret + } + return *o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister +} + +// GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegisterOk returns a tuple with the WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegisterOk() (*bool, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister, true +} + +// HasWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister gets a reference to the given bool and assigns it to the WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister(v bool) { + o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister = &v +} + +// GetWebAuthnPolicyPasswordlessAcceptableAaguids returns the WebAuthnPolicyPasswordlessAcceptableAaguids field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAcceptableAaguids() []string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAcceptableAaguids) { + var ret []string + return ret + } + return o.WebAuthnPolicyPasswordlessAcceptableAaguids +} + +// GetWebAuthnPolicyPasswordlessAcceptableAaguidsOk returns a tuple with the WebAuthnPolicyPasswordlessAcceptableAaguids field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessAcceptableAaguidsOk() ([]string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessAcceptableAaguids) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessAcceptableAaguids, true +} + +// HasWebAuthnPolicyPasswordlessAcceptableAaguids returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessAcceptableAaguids() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessAcceptableAaguids) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessAcceptableAaguids gets a reference to the given []string and assigns it to the WebAuthnPolicyPasswordlessAcceptableAaguids field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessAcceptableAaguids(v []string) { + o.WebAuthnPolicyPasswordlessAcceptableAaguids = v +} + +// GetWebAuthnPolicyPasswordlessExtraOrigins returns the WebAuthnPolicyPasswordlessExtraOrigins field value if set, zero value otherwise. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessExtraOrigins() []string { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessExtraOrigins) { + var ret []string + return ret + } + return o.WebAuthnPolicyPasswordlessExtraOrigins +} + +// GetWebAuthnPolicyPasswordlessExtraOriginsOk returns a tuple with the WebAuthnPolicyPasswordlessExtraOrigins field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetWebAuthnPolicyPasswordlessExtraOriginsOk() ([]string, bool) { + if o == nil || IsNil(o.WebAuthnPolicyPasswordlessExtraOrigins) { + return nil, false + } + return o.WebAuthnPolicyPasswordlessExtraOrigins, true +} + +// HasWebAuthnPolicyPasswordlessExtraOrigins returns a boolean if a field has been set. +func (o *RealmRepresentation) HasWebAuthnPolicyPasswordlessExtraOrigins() bool { + if o != nil && !IsNil(o.WebAuthnPolicyPasswordlessExtraOrigins) { + return true + } + + return false +} + +// SetWebAuthnPolicyPasswordlessExtraOrigins gets a reference to the given []string and assigns it to the WebAuthnPolicyPasswordlessExtraOrigins field. +func (o *RealmRepresentation) SetWebAuthnPolicyPasswordlessExtraOrigins(v []string) { + o.WebAuthnPolicyPasswordlessExtraOrigins = v +} + +// GetClientProfiles returns the ClientProfiles field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientProfiles() ClientProfilesRepresentation { + if o == nil || IsNil(o.ClientProfiles) { + var ret ClientProfilesRepresentation + return ret + } + return *o.ClientProfiles +} + +// GetClientProfilesOk returns a tuple with the ClientProfiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientProfilesOk() (*ClientProfilesRepresentation, bool) { + if o == nil || IsNil(o.ClientProfiles) { + return nil, false + } + return o.ClientProfiles, true +} + +// HasClientProfiles returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientProfiles() bool { + if o != nil && !IsNil(o.ClientProfiles) { + return true + } + + return false +} + +// SetClientProfiles gets a reference to the given ClientProfilesRepresentation and assigns it to the ClientProfiles field. +func (o *RealmRepresentation) SetClientProfiles(v ClientProfilesRepresentation) { + o.ClientProfiles = &v +} + +// GetClientPolicies returns the ClientPolicies field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientPolicies() ClientPoliciesRepresentation { + if o == nil || IsNil(o.ClientPolicies) { + var ret ClientPoliciesRepresentation + return ret + } + return *o.ClientPolicies +} + +// GetClientPoliciesOk returns a tuple with the ClientPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientPoliciesOk() (*ClientPoliciesRepresentation, bool) { + if o == nil || IsNil(o.ClientPolicies) { + return nil, false + } + return o.ClientPolicies, true +} + +// HasClientPolicies returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientPolicies() bool { + if o != nil && !IsNil(o.ClientPolicies) { + return true + } + + return false +} + +// SetClientPolicies gets a reference to the given ClientPoliciesRepresentation and assigns it to the ClientPolicies field. +func (o *RealmRepresentation) SetClientPolicies(v ClientPoliciesRepresentation) { + o.ClientPolicies = &v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *RealmRepresentation) GetUsers() []UserRepresentation { + if o == nil || IsNil(o.Users) { + var ret []UserRepresentation + 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 *RealmRepresentation) GetUsersOk() ([]UserRepresentation, 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 *RealmRepresentation) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []UserRepresentation and assigns it to the Users field. +func (o *RealmRepresentation) SetUsers(v []UserRepresentation) { + o.Users = v +} + +// GetFederatedUsers returns the FederatedUsers field value if set, zero value otherwise. +func (o *RealmRepresentation) GetFederatedUsers() []UserRepresentation { + if o == nil || IsNil(o.FederatedUsers) { + var ret []UserRepresentation + return ret + } + return o.FederatedUsers +} + +// GetFederatedUsersOk returns a tuple with the FederatedUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetFederatedUsersOk() ([]UserRepresentation, bool) { + if o == nil || IsNil(o.FederatedUsers) { + return nil, false + } + return o.FederatedUsers, true +} + +// HasFederatedUsers returns a boolean if a field has been set. +func (o *RealmRepresentation) HasFederatedUsers() bool { + if o != nil && !IsNil(o.FederatedUsers) { + return true + } + + return false +} + +// SetFederatedUsers gets a reference to the given []UserRepresentation and assigns it to the FederatedUsers field. +func (o *RealmRepresentation) SetFederatedUsers(v []UserRepresentation) { + o.FederatedUsers = v +} + +// GetScopeMappings returns the ScopeMappings field value if set, zero value otherwise. +func (o *RealmRepresentation) GetScopeMappings() []ScopeMappingRepresentation { + if o == nil || IsNil(o.ScopeMappings) { + var ret []ScopeMappingRepresentation + return ret + } + return o.ScopeMappings +} + +// GetScopeMappingsOk returns a tuple with the ScopeMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetScopeMappingsOk() ([]ScopeMappingRepresentation, bool) { + if o == nil || IsNil(o.ScopeMappings) { + return nil, false + } + return o.ScopeMappings, true +} + +// HasScopeMappings returns a boolean if a field has been set. +func (o *RealmRepresentation) HasScopeMappings() bool { + if o != nil && !IsNil(o.ScopeMappings) { + return true + } + + return false +} + +// SetScopeMappings gets a reference to the given []ScopeMappingRepresentation and assigns it to the ScopeMappings field. +func (o *RealmRepresentation) SetScopeMappings(v []ScopeMappingRepresentation) { + o.ScopeMappings = v +} + +// GetClientScopeMappings returns the ClientScopeMappings field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientScopeMappings() map[string][]ScopeMappingRepresentation { + if o == nil || IsNil(o.ClientScopeMappings) { + var ret map[string][]ScopeMappingRepresentation + return ret + } + return *o.ClientScopeMappings +} + +// GetClientScopeMappingsOk returns a tuple with the ClientScopeMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientScopeMappingsOk() (*map[string][]ScopeMappingRepresentation, bool) { + if o == nil || IsNil(o.ClientScopeMappings) { + return nil, false + } + return o.ClientScopeMappings, true +} + +// HasClientScopeMappings returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientScopeMappings() bool { + if o != nil && !IsNil(o.ClientScopeMappings) { + return true + } + + return false +} + +// SetClientScopeMappings gets a reference to the given map[string][]ScopeMappingRepresentation and assigns it to the ClientScopeMappings field. +func (o *RealmRepresentation) SetClientScopeMappings(v map[string][]ScopeMappingRepresentation) { + o.ClientScopeMappings = &v +} + +// GetClients returns the Clients field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClients() []ClientRepresentation { + if o == nil || IsNil(o.Clients) { + var ret []ClientRepresentation + return ret + } + return o.Clients +} + +// GetClientsOk returns a tuple with the Clients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientsOk() ([]ClientRepresentation, bool) { + if o == nil || IsNil(o.Clients) { + return nil, false + } + return o.Clients, true +} + +// HasClients returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClients() bool { + if o != nil && !IsNil(o.Clients) { + return true + } + + return false +} + +// SetClients gets a reference to the given []ClientRepresentation and assigns it to the Clients field. +func (o *RealmRepresentation) SetClients(v []ClientRepresentation) { + o.Clients = v +} + +// GetClientScopes returns the ClientScopes field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientScopes() []ClientScopeRepresentation { + if o == nil || IsNil(o.ClientScopes) { + var ret []ClientScopeRepresentation + return ret + } + return o.ClientScopes +} + +// GetClientScopesOk returns a tuple with the ClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientScopesOk() ([]ClientScopeRepresentation, bool) { + if o == nil || IsNil(o.ClientScopes) { + return nil, false + } + return o.ClientScopes, true +} + +// HasClientScopes returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientScopes() bool { + if o != nil && !IsNil(o.ClientScopes) { + return true + } + + return false +} + +// SetClientScopes gets a reference to the given []ClientScopeRepresentation and assigns it to the ClientScopes field. +func (o *RealmRepresentation) SetClientScopes(v []ClientScopeRepresentation) { + o.ClientScopes = v +} + +// GetDefaultDefaultClientScopes returns the DefaultDefaultClientScopes field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDefaultDefaultClientScopes() []string { + if o == nil || IsNil(o.DefaultDefaultClientScopes) { + var ret []string + return ret + } + return o.DefaultDefaultClientScopes +} + +// GetDefaultDefaultClientScopesOk returns a tuple with the DefaultDefaultClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDefaultDefaultClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultDefaultClientScopes) { + return nil, false + } + return o.DefaultDefaultClientScopes, true +} + +// HasDefaultDefaultClientScopes returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDefaultDefaultClientScopes() bool { + if o != nil && !IsNil(o.DefaultDefaultClientScopes) { + return true + } + + return false +} + +// SetDefaultDefaultClientScopes gets a reference to the given []string and assigns it to the DefaultDefaultClientScopes field. +func (o *RealmRepresentation) SetDefaultDefaultClientScopes(v []string) { + o.DefaultDefaultClientScopes = v +} + +// GetDefaultOptionalClientScopes returns the DefaultOptionalClientScopes field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDefaultOptionalClientScopes() []string { + if o == nil || IsNil(o.DefaultOptionalClientScopes) { + var ret []string + return ret + } + return o.DefaultOptionalClientScopes +} + +// GetDefaultOptionalClientScopesOk returns a tuple with the DefaultOptionalClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDefaultOptionalClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.DefaultOptionalClientScopes) { + return nil, false + } + return o.DefaultOptionalClientScopes, true +} + +// HasDefaultOptionalClientScopes returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDefaultOptionalClientScopes() bool { + if o != nil && !IsNil(o.DefaultOptionalClientScopes) { + return true + } + + return false +} + +// SetDefaultOptionalClientScopes gets a reference to the given []string and assigns it to the DefaultOptionalClientScopes field. +func (o *RealmRepresentation) SetDefaultOptionalClientScopes(v []string) { + o.DefaultOptionalClientScopes = v +} + +// GetBrowserSecurityHeaders returns the BrowserSecurityHeaders field value if set, zero value otherwise. +func (o *RealmRepresentation) GetBrowserSecurityHeaders() map[string]string { + if o == nil || IsNil(o.BrowserSecurityHeaders) { + var ret map[string]string + return ret + } + return *o.BrowserSecurityHeaders +} + +// GetBrowserSecurityHeadersOk returns a tuple with the BrowserSecurityHeaders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetBrowserSecurityHeadersOk() (*map[string]string, bool) { + if o == nil || IsNil(o.BrowserSecurityHeaders) { + return nil, false + } + return o.BrowserSecurityHeaders, true +} + +// HasBrowserSecurityHeaders returns a boolean if a field has been set. +func (o *RealmRepresentation) HasBrowserSecurityHeaders() bool { + if o != nil && !IsNil(o.BrowserSecurityHeaders) { + return true + } + + return false +} + +// SetBrowserSecurityHeaders gets a reference to the given map[string]string and assigns it to the BrowserSecurityHeaders field. +func (o *RealmRepresentation) SetBrowserSecurityHeaders(v map[string]string) { + o.BrowserSecurityHeaders = &v +} + +// GetSmtpServer returns the SmtpServer field value if set, zero value otherwise. +func (o *RealmRepresentation) GetSmtpServerConfig() map[string]string { + if o == nil || IsNil(o.SmtpServer) { + var ret map[string]string + return ret + } + return *o.SmtpServer +} + +// GetSmtpServerOk returns a tuple with the SmtpServer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetSmtpServerOk() (*map[string]string, bool) { + if o == nil || IsNil(o.SmtpServer) { + return nil, false + } + return o.SmtpServer, true +} + +// HasSmtpServer returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSmtpServerConfig() bool { + if o != nil && !IsNil(o.SmtpServer) { + return true + } + + return false +} + +// SetSmtpServer gets a reference to the given map[string]string and assigns it to the SmtpServer field. +func (o *RealmRepresentation) SetSmtpServer(v map[string]string) { + o.SmtpServer = &v +} + +// GetUserFederationProviders returns the UserFederationProviders field value if set, zero value otherwise. +func (o *RealmRepresentation) GetUserFederationProviders() []UserFederationProviderRepresentation { + if o == nil || IsNil(o.UserFederationProviders) { + var ret []UserFederationProviderRepresentation + return ret + } + return o.UserFederationProviders +} + +// GetUserFederationProvidersOk returns a tuple with the UserFederationProviders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetUserFederationProvidersOk() ([]UserFederationProviderRepresentation, bool) { + if o == nil || IsNil(o.UserFederationProviders) { + return nil, false + } + return o.UserFederationProviders, true +} + +// HasUserFederationProviders returns a boolean if a field has been set. +func (o *RealmRepresentation) HasUserFederationProviders() bool { + if o != nil && !IsNil(o.UserFederationProviders) { + return true + } + + return false +} + +// SetUserFederationProviders gets a reference to the given []UserFederationProviderRepresentation and assigns it to the UserFederationProviders field. +func (o *RealmRepresentation) SetUserFederationProviders(v []UserFederationProviderRepresentation) { + o.UserFederationProviders = v +} + +// GetUserFederationMappers returns the UserFederationMappers field value if set, zero value otherwise. +func (o *RealmRepresentation) GetUserFederationMappers() []UserFederationMapperRepresentation { + if o == nil || IsNil(o.UserFederationMappers) { + var ret []UserFederationMapperRepresentation + return ret + } + return o.UserFederationMappers +} + +// GetUserFederationMappersOk returns a tuple with the UserFederationMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetUserFederationMappersOk() ([]UserFederationMapperRepresentation, bool) { + if o == nil || IsNil(o.UserFederationMappers) { + return nil, false + } + return o.UserFederationMappers, true +} + +// HasUserFederationMappers returns a boolean if a field has been set. +func (o *RealmRepresentation) HasUserFederationMappers() bool { + if o != nil && !IsNil(o.UserFederationMappers) { + return true + } + + return false +} + +// SetUserFederationMappers gets a reference to the given []UserFederationMapperRepresentation and assigns it to the UserFederationMappers field. +func (o *RealmRepresentation) SetUserFederationMappers(v []UserFederationMapperRepresentation) { + o.UserFederationMappers = v +} + +// GetLoginTheme returns the LoginTheme field value if set, zero value otherwise. +func (o *RealmRepresentation) GetLoginTheme() string { + if o == nil || IsNil(o.LoginTheme) { + var ret string + return ret + } + return *o.LoginTheme +} + +// GetLoginThemeOk returns a tuple with the LoginTheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetLoginThemeOk() (*string, bool) { + if o == nil || IsNil(o.LoginTheme) { + return nil, false + } + return o.LoginTheme, true +} + +// HasLoginTheme returns a boolean if a field has been set. +func (o *RealmRepresentation) HasLoginTheme() bool { + if o != nil && !IsNil(o.LoginTheme) { + return true + } + + return false +} + +// SetLoginTheme gets a reference to the given string and assigns it to the LoginTheme field. +func (o *RealmRepresentation) SetLoginTheme(v string) { + o.LoginTheme = &v +} + +// GetAccountTheme returns the AccountTheme field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAccountTheme() string { + if o == nil || IsNil(o.AccountTheme) { + var ret string + return ret + } + return *o.AccountTheme +} + +// GetAccountThemeOk returns a tuple with the AccountTheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAccountThemeOk() (*string, bool) { + if o == nil || IsNil(o.AccountTheme) { + return nil, false + } + return o.AccountTheme, true +} + +// HasAccountTheme returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAccountTheme() bool { + if o != nil && !IsNil(o.AccountTheme) { + return true + } + + return false +} + +// SetAccountTheme gets a reference to the given string and assigns it to the AccountTheme field. +func (o *RealmRepresentation) SetAccountTheme(v string) { + o.AccountTheme = &v +} + +// GetAdminTheme returns the AdminTheme field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAdminTheme() string { + if o == nil || IsNil(o.AdminTheme) { + var ret string + return ret + } + return *o.AdminTheme +} + +// GetAdminThemeOk returns a tuple with the AdminTheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAdminThemeOk() (*string, bool) { + if o == nil || IsNil(o.AdminTheme) { + return nil, false + } + return o.AdminTheme, true +} + +// HasAdminTheme returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAdminTheme() bool { + if o != nil && !IsNil(o.AdminTheme) { + return true + } + + return false +} + +// SetAdminTheme gets a reference to the given string and assigns it to the AdminTheme field. +func (o *RealmRepresentation) SetAdminTheme(v string) { + o.AdminTheme = &v +} + +// GetEmailTheme returns the EmailTheme field value if set, zero value otherwise. +func (o *RealmRepresentation) GetEmailTheme() string { + if o == nil || IsNil(o.EmailTheme) { + var ret string + return ret + } + return *o.EmailTheme +} + +// GetEmailThemeOk returns a tuple with the EmailTheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetEmailThemeOk() (*string, bool) { + if o == nil || IsNil(o.EmailTheme) { + return nil, false + } + return o.EmailTheme, true +} + +// HasEmailTheme returns a boolean if a field has been set. +func (o *RealmRepresentation) HasEmailTheme() bool { + if o != nil && !IsNil(o.EmailTheme) { + return true + } + + return false +} + +// SetEmailTheme gets a reference to the given string and assigns it to the EmailTheme field. +func (o *RealmRepresentation) SetEmailTheme(v string) { + o.EmailTheme = &v +} + +// GetEventsEnabled returns the EventsEnabled field value if set, zero value otherwise. +func (o *RealmRepresentation) GetEventsEnabled() bool { + if o == nil || IsNil(o.EventsEnabled) { + var ret bool + return ret + } + return *o.EventsEnabled +} + +// GetEventsEnabledOk returns a tuple with the EventsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetEventsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.EventsEnabled) { + return nil, false + } + return o.EventsEnabled, true +} + +// HasEventsEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasEventsEnabled() bool { + if o != nil && !IsNil(o.EventsEnabled) { + return true + } + + return false +} + +// SetEventsEnabled gets a reference to the given bool and assigns it to the EventsEnabled field. +func (o *RealmRepresentation) SetEventsEnabled(v bool) { + o.EventsEnabled = &v +} + +// GetEventsExpiration returns the EventsExpiration field value if set, zero value otherwise. +func (o *RealmRepresentation) GetEventsExpiration() int64 { + if o == nil || IsNil(o.EventsExpiration) { + var ret int64 + return ret + } + return *o.EventsExpiration +} + +// GetEventsExpirationOk returns a tuple with the EventsExpiration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetEventsExpirationOk() (*int64, bool) { + if o == nil || IsNil(o.EventsExpiration) { + return nil, false + } + return o.EventsExpiration, true +} + +// HasEventsExpiration returns a boolean if a field has been set. +func (o *RealmRepresentation) HasEventsExpiration() bool { + if o != nil && !IsNil(o.EventsExpiration) { + return true + } + + return false +} + +// SetEventsExpiration gets a reference to the given int64 and assigns it to the EventsExpiration field. +func (o *RealmRepresentation) SetEventsExpiration(v int64) { + o.EventsExpiration = &v +} + +// GetEventsListeners returns the EventsListeners field value if set, zero value otherwise. +func (o *RealmRepresentation) GetEventsListeners() []string { + if o == nil || IsNil(o.EventsListeners) { + var ret []string + return ret + } + return o.EventsListeners +} + +// GetEventsListenersOk returns a tuple with the EventsListeners field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetEventsListenersOk() ([]string, bool) { + if o == nil || IsNil(o.EventsListeners) { + return nil, false + } + return o.EventsListeners, true +} + +// HasEventsListeners returns a boolean if a field has been set. +func (o *RealmRepresentation) HasEventsListeners() bool { + if o != nil && !IsNil(o.EventsListeners) { + return true + } + + return false +} + +// SetEventsListeners gets a reference to the given []string and assigns it to the EventsListeners field. +func (o *RealmRepresentation) SetEventsListeners(v []string) { + o.EventsListeners = v +} + +// GetEnabledEventTypes returns the EnabledEventTypes field value if set, zero value otherwise. +func (o *RealmRepresentation) GetEnabledEventTypes() []string { + if o == nil || IsNil(o.EnabledEventTypes) { + var ret []string + return ret + } + return o.EnabledEventTypes +} + +// GetEnabledEventTypesOk returns a tuple with the EnabledEventTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetEnabledEventTypesOk() ([]string, bool) { + if o == nil || IsNil(o.EnabledEventTypes) { + return nil, false + } + return o.EnabledEventTypes, true +} + +// HasEnabledEventTypes returns a boolean if a field has been set. +func (o *RealmRepresentation) HasEnabledEventTypes() bool { + if o != nil && !IsNil(o.EnabledEventTypes) { + return true + } + + return false +} + +// SetEnabledEventTypes gets a reference to the given []string and assigns it to the EnabledEventTypes field. +func (o *RealmRepresentation) SetEnabledEventTypes(v []string) { + o.EnabledEventTypes = v +} + +// GetAdminEventsEnabled returns the AdminEventsEnabled field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAdminEventsEnabled() bool { + if o == nil || IsNil(o.AdminEventsEnabled) { + var ret bool + return ret + } + return *o.AdminEventsEnabled +} + +// GetAdminEventsEnabledOk returns a tuple with the AdminEventsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAdminEventsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AdminEventsEnabled) { + return nil, false + } + return o.AdminEventsEnabled, true +} + +// HasAdminEventsEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAdminEventsEnabled() bool { + if o != nil && !IsNil(o.AdminEventsEnabled) { + return true + } + + return false +} + +// SetAdminEventsEnabled gets a reference to the given bool and assigns it to the AdminEventsEnabled field. +func (o *RealmRepresentation) SetAdminEventsEnabled(v bool) { + o.AdminEventsEnabled = &v +} + +// GetAdminEventsDetailsEnabled returns the AdminEventsDetailsEnabled field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAdminEventsDetailsEnabled() bool { + if o == nil || IsNil(o.AdminEventsDetailsEnabled) { + var ret bool + return ret + } + return *o.AdminEventsDetailsEnabled +} + +// GetAdminEventsDetailsEnabledOk returns a tuple with the AdminEventsDetailsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAdminEventsDetailsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AdminEventsDetailsEnabled) { + return nil, false + } + return o.AdminEventsDetailsEnabled, true +} + +// HasAdminEventsDetailsEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAdminEventsDetailsEnabled() bool { + if o != nil && !IsNil(o.AdminEventsDetailsEnabled) { + return true + } + + return false +} + +// SetAdminEventsDetailsEnabled gets a reference to the given bool and assigns it to the AdminEventsDetailsEnabled field. +func (o *RealmRepresentation) SetAdminEventsDetailsEnabled(v bool) { + o.AdminEventsDetailsEnabled = &v +} + +// GetIdentityProviders returns the IdentityProviders field value if set, zero value otherwise. +func (o *RealmRepresentation) GetIdentityProviders() []IdentityProviderRepresentation { + if o == nil || IsNil(o.IdentityProviders) { + var ret []IdentityProviderRepresentation + return ret + } + return o.IdentityProviders +} + +// GetIdentityProvidersOk returns a tuple with the IdentityProviders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetIdentityProvidersOk() ([]IdentityProviderRepresentation, bool) { + if o == nil || IsNil(o.IdentityProviders) { + return nil, false + } + return o.IdentityProviders, true +} + +// HasIdentityProviders returns a boolean if a field has been set. +func (o *RealmRepresentation) HasIdentityProviders() bool { + if o != nil && !IsNil(o.IdentityProviders) { + return true + } + + return false +} + +// SetIdentityProviders gets a reference to the given []IdentityProviderRepresentation and assigns it to the IdentityProviders field. +func (o *RealmRepresentation) SetIdentityProviders(v []IdentityProviderRepresentation) { + o.IdentityProviders = v +} + +// GetIdentityProviderMappers returns the IdentityProviderMappers field value if set, zero value otherwise. +func (o *RealmRepresentation) GetIdentityProviderMappers() []IdentityProviderMapperRepresentation { + if o == nil || IsNil(o.IdentityProviderMappers) { + var ret []IdentityProviderMapperRepresentation + return ret + } + return o.IdentityProviderMappers +} + +// GetIdentityProviderMappersOk returns a tuple with the IdentityProviderMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetIdentityProviderMappersOk() ([]IdentityProviderMapperRepresentation, bool) { + if o == nil || IsNil(o.IdentityProviderMappers) { + return nil, false + } + return o.IdentityProviderMappers, true +} + +// HasIdentityProviderMappers returns a boolean if a field has been set. +func (o *RealmRepresentation) HasIdentityProviderMappers() bool { + if o != nil && !IsNil(o.IdentityProviderMappers) { + return true + } + + return false +} + +// SetIdentityProviderMappers gets a reference to the given []IdentityProviderMapperRepresentation and assigns it to the IdentityProviderMappers field. +func (o *RealmRepresentation) SetIdentityProviderMappers(v []IdentityProviderMapperRepresentation) { + o.IdentityProviderMappers = v +} + +// GetProtocolMappers returns the ProtocolMappers field value if set, zero value otherwise. +func (o *RealmRepresentation) GetProtocolMappers() []ProtocolMapperRepresentation { + if o == nil || IsNil(o.ProtocolMappers) { + var ret []ProtocolMapperRepresentation + return ret + } + return o.ProtocolMappers +} + +// GetProtocolMappersOk returns a tuple with the ProtocolMappers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetProtocolMappersOk() ([]ProtocolMapperRepresentation, bool) { + if o == nil || IsNil(o.ProtocolMappers) { + return nil, false + } + return o.ProtocolMappers, true +} + +// HasProtocolMappers returns a boolean if a field has been set. +func (o *RealmRepresentation) HasProtocolMappers() bool { + if o != nil && !IsNil(o.ProtocolMappers) { + return true + } + + return false +} + +// SetProtocolMappers gets a reference to the given []ProtocolMapperRepresentation and assigns it to the ProtocolMappers field. +func (o *RealmRepresentation) SetProtocolMappers(v []ProtocolMapperRepresentation) { + o.ProtocolMappers = v +} + +// GetComponents returns the Components field value if set, zero value otherwise. +func (o *RealmRepresentation) GetComponents() map[string][]ComponentExportRepresentation { + if o == nil || IsNil(o.Components) { + var ret map[string][]ComponentExportRepresentation + return ret + } + return *o.Components +} + +// GetComponentsOk returns a tuple with the Components field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetComponentsOk() (*map[string][]ComponentExportRepresentation, bool) { + if o == nil || IsNil(o.Components) { + return nil, false + } + return o.Components, true +} + +// HasComponents returns a boolean if a field has been set. +func (o *RealmRepresentation) HasComponents() bool { + if o != nil && !IsNil(o.Components) { + return true + } + + return false +} + +// SetComponents gets a reference to the given map[string][]ComponentExportRepresentation and assigns it to the Components field. +func (o *RealmRepresentation) SetComponents(v map[string][]ComponentExportRepresentation) { + o.Components = &v +} + +// GetInternationalizationEnabled returns the InternationalizationEnabled field value if set, zero value otherwise. +func (o *RealmRepresentation) GetInternationalizationEnabled() bool { + if o == nil || IsNil(o.InternationalizationEnabled) { + var ret bool + return ret + } + return *o.InternationalizationEnabled +} + +// GetInternationalizationEnabledOk returns a tuple with the InternationalizationEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetInternationalizationEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.InternationalizationEnabled) { + return nil, false + } + return o.InternationalizationEnabled, true +} + +// HasInternationalizationEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasInternationalizationEnabled() bool { + if o != nil && !IsNil(o.InternationalizationEnabled) { + return true + } + + return false +} + +// SetInternationalizationEnabled gets a reference to the given bool and assigns it to the InternationalizationEnabled field. +func (o *RealmRepresentation) SetInternationalizationEnabled(v bool) { + o.InternationalizationEnabled = &v +} + +// GetSupportedLocales returns the SupportedLocales field value if set, zero value otherwise. +func (o *RealmRepresentation) GetSupportedLocales() []string { + if o == nil || IsNil(o.SupportedLocales) { + var ret []string + return ret + } + return o.SupportedLocales +} + +// GetSupportedLocalesOk returns a tuple with the SupportedLocales field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetSupportedLocalesOk() ([]string, bool) { + if o == nil || IsNil(o.SupportedLocales) { + return nil, false + } + return o.SupportedLocales, true +} + +// HasSupportedLocales returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSupportedLocales() bool { + if o != nil && !IsNil(o.SupportedLocales) { + return true + } + + return false +} + +// SetSupportedLocales gets a reference to the given []string and assigns it to the SupportedLocales field. +func (o *RealmRepresentation) SetSupportedLocales(v []string) { + o.SupportedLocales = v +} + +// GetDefaultLocale returns the DefaultLocale field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDefaultLocale() string { + if o == nil || IsNil(o.DefaultLocale) { + var ret string + return ret + } + return *o.DefaultLocale +} + +// GetDefaultLocaleOk returns a tuple with the DefaultLocale field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDefaultLocaleOk() (*string, bool) { + if o == nil || IsNil(o.DefaultLocale) { + return nil, false + } + return o.DefaultLocale, true +} + +// HasDefaultLocale returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDefaultLocale() bool { + if o != nil && !IsNil(o.DefaultLocale) { + return true + } + + return false +} + +// SetDefaultLocale gets a reference to the given string and assigns it to the DefaultLocale field. +func (o *RealmRepresentation) SetDefaultLocale(v string) { + o.DefaultLocale = &v +} + +// GetAuthenticationFlows returns the AuthenticationFlows field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAuthenticationFlows() []AuthenticationFlowRepresentation { + if o == nil || IsNil(o.AuthenticationFlows) { + var ret []AuthenticationFlowRepresentation + return ret + } + return o.AuthenticationFlows +} + +// GetAuthenticationFlowsOk returns a tuple with the AuthenticationFlows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAuthenticationFlowsOk() ([]AuthenticationFlowRepresentation, bool) { + if o == nil || IsNil(o.AuthenticationFlows) { + return nil, false + } + return o.AuthenticationFlows, true +} + +// HasAuthenticationFlows returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAuthenticationFlows() bool { + if o != nil && !IsNil(o.AuthenticationFlows) { + return true + } + + return false +} + +// SetAuthenticationFlows gets a reference to the given []AuthenticationFlowRepresentation and assigns it to the AuthenticationFlows field. +func (o *RealmRepresentation) SetAuthenticationFlows(v []AuthenticationFlowRepresentation) { + o.AuthenticationFlows = v +} + +// GetAuthenticatorConfig returns the AuthenticatorConfig field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAuthenticatorConfig() []AuthenticatorConfigRepresentation { + if o == nil || IsNil(o.AuthenticatorConfig) { + var ret []AuthenticatorConfigRepresentation + return ret + } + return o.AuthenticatorConfig +} + +// GetAuthenticatorConfigOk returns a tuple with the AuthenticatorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAuthenticatorConfigOk() ([]AuthenticatorConfigRepresentation, bool) { + if o == nil || IsNil(o.AuthenticatorConfig) { + return nil, false + } + return o.AuthenticatorConfig, true +} + +// HasAuthenticatorConfig returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAuthenticatorConfig() bool { + if o != nil && !IsNil(o.AuthenticatorConfig) { + return true + } + + return false +} + +// SetAuthenticatorConfig gets a reference to the given []AuthenticatorConfigRepresentation and assigns it to the AuthenticatorConfig field. +func (o *RealmRepresentation) SetAuthenticatorConfig(v []AuthenticatorConfigRepresentation) { + o.AuthenticatorConfig = v +} + +// GetRequiredActions returns the RequiredActions field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRequiredActions() []RequiredActionProviderRepresentation { + if o == nil || IsNil(o.RequiredActions) { + var ret []RequiredActionProviderRepresentation + return ret + } + return o.RequiredActions +} + +// GetRequiredActionsOk returns a tuple with the RequiredActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRequiredActionsOk() ([]RequiredActionProviderRepresentation, bool) { + if o == nil || IsNil(o.RequiredActions) { + return nil, false + } + return o.RequiredActions, true +} + +// HasRequiredActions returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRequiredActions() bool { + if o != nil && !IsNil(o.RequiredActions) { + return true + } + + return false +} + +// SetRequiredActions gets a reference to the given []RequiredActionProviderRepresentation and assigns it to the RequiredActions field. +func (o *RealmRepresentation) SetRequiredActions(v []RequiredActionProviderRepresentation) { + o.RequiredActions = v +} + +// GetBrowserFlow returns the BrowserFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetBrowserFlow() string { + if o == nil || IsNil(o.BrowserFlow) { + var ret string + return ret + } + return *o.BrowserFlow +} + +// GetBrowserFlowOk returns a tuple with the BrowserFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetBrowserFlowOk() (*string, bool) { + if o == nil || IsNil(o.BrowserFlow) { + return nil, false + } + return o.BrowserFlow, true +} + +// HasBrowserFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasBrowserFlow() bool { + if o != nil && !IsNil(o.BrowserFlow) { + return true + } + + return false +} + +// SetBrowserFlow gets a reference to the given string and assigns it to the BrowserFlow field. +func (o *RealmRepresentation) SetBrowserFlow(v string) { + o.BrowserFlow = &v +} + +// GetRegistrationFlow returns the RegistrationFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetRegistrationFlow() string { + if o == nil || IsNil(o.RegistrationFlow) { + var ret string + return ret + } + return *o.RegistrationFlow +} + +// GetRegistrationFlowOk returns a tuple with the RegistrationFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetRegistrationFlowOk() (*string, bool) { + if o == nil || IsNil(o.RegistrationFlow) { + return nil, false + } + return o.RegistrationFlow, true +} + +// HasRegistrationFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasRegistrationFlow() bool { + if o != nil && !IsNil(o.RegistrationFlow) { + return true + } + + return false +} + +// SetRegistrationFlow gets a reference to the given string and assigns it to the RegistrationFlow field. +func (o *RealmRepresentation) SetRegistrationFlow(v string) { + o.RegistrationFlow = &v +} + +// GetDirectGrantFlow returns the DirectGrantFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDirectGrantFlow() string { + if o == nil || IsNil(o.DirectGrantFlow) { + var ret string + return ret + } + return *o.DirectGrantFlow +} + +// GetDirectGrantFlowOk returns a tuple with the DirectGrantFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDirectGrantFlowOk() (*string, bool) { + if o == nil || IsNil(o.DirectGrantFlow) { + return nil, false + } + return o.DirectGrantFlow, true +} + +// HasDirectGrantFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDirectGrantFlow() bool { + if o != nil && !IsNil(o.DirectGrantFlow) { + return true + } + + return false +} + +// SetDirectGrantFlow gets a reference to the given string and assigns it to the DirectGrantFlow field. +func (o *RealmRepresentation) SetDirectGrantFlow(v string) { + o.DirectGrantFlow = &v +} + +// GetResetCredentialsFlow returns the ResetCredentialsFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetResetCredentialsFlow() string { + if o == nil || IsNil(o.ResetCredentialsFlow) { + var ret string + return ret + } + return *o.ResetCredentialsFlow +} + +// GetResetCredentialsFlowOk returns a tuple with the ResetCredentialsFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetResetCredentialsFlowOk() (*string, bool) { + if o == nil || IsNil(o.ResetCredentialsFlow) { + return nil, false + } + return o.ResetCredentialsFlow, true +} + +// HasResetCredentialsFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasResetCredentialsFlow() bool { + if o != nil && !IsNil(o.ResetCredentialsFlow) { + return true + } + + return false +} + +// SetResetCredentialsFlow gets a reference to the given string and assigns it to the ResetCredentialsFlow field. +func (o *RealmRepresentation) SetResetCredentialsFlow(v string) { + o.ResetCredentialsFlow = &v +} + +// GetClientAuthenticationFlow returns the ClientAuthenticationFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetClientAuthenticationFlow() string { + if o == nil || IsNil(o.ClientAuthenticationFlow) { + var ret string + return ret + } + return *o.ClientAuthenticationFlow +} + +// GetClientAuthenticationFlowOk returns a tuple with the ClientAuthenticationFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetClientAuthenticationFlowOk() (*string, bool) { + if o == nil || IsNil(o.ClientAuthenticationFlow) { + return nil, false + } + return o.ClientAuthenticationFlow, true +} + +// HasClientAuthenticationFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientAuthenticationFlow() bool { + if o != nil && !IsNil(o.ClientAuthenticationFlow) { + return true + } + + return false +} + +// SetClientAuthenticationFlow gets a reference to the given string and assigns it to the ClientAuthenticationFlow field. +func (o *RealmRepresentation) SetClientAuthenticationFlow(v string) { + o.ClientAuthenticationFlow = &v +} + +// GetDockerAuthenticationFlow returns the DockerAuthenticationFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetDockerAuthenticationFlow() string { + if o == nil || IsNil(o.DockerAuthenticationFlow) { + var ret string + return ret + } + return *o.DockerAuthenticationFlow +} + +// GetDockerAuthenticationFlowOk returns a tuple with the DockerAuthenticationFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetDockerAuthenticationFlowOk() (*string, bool) { + if o == nil || IsNil(o.DockerAuthenticationFlow) { + return nil, false + } + return o.DockerAuthenticationFlow, true +} + +// HasDockerAuthenticationFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasDockerAuthenticationFlow() bool { + if o != nil && !IsNil(o.DockerAuthenticationFlow) { + return true + } + + return false +} + +// SetDockerAuthenticationFlow gets a reference to the given string and assigns it to the DockerAuthenticationFlow field. +func (o *RealmRepresentation) SetDockerAuthenticationFlow(v string) { + o.DockerAuthenticationFlow = &v +} + +// GetFirstBrokerLoginFlow returns the FirstBrokerLoginFlow field value if set, zero value otherwise. +func (o *RealmRepresentation) GetFirstBrokerLoginFlow() string { + if o == nil || IsNil(o.FirstBrokerLoginFlow) { + var ret string + return ret + } + return *o.FirstBrokerLoginFlow +} + +// GetFirstBrokerLoginFlowOk returns a tuple with the FirstBrokerLoginFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetFirstBrokerLoginFlowOk() (*string, bool) { + if o == nil || IsNil(o.FirstBrokerLoginFlow) { + return nil, false + } + return o.FirstBrokerLoginFlow, true +} + +// HasFirstBrokerLoginFlow returns a boolean if a field has been set. +func (o *RealmRepresentation) HasFirstBrokerLoginFlow() bool { + if o != nil && !IsNil(o.FirstBrokerLoginFlow) { + return true + } + + return false +} + +// SetFirstBrokerLoginFlow gets a reference to the given string and assigns it to the FirstBrokerLoginFlow field. +func (o *RealmRepresentation) SetFirstBrokerLoginFlow(v string) { + o.FirstBrokerLoginFlow = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *RealmRepresentation) GetAttributes() map[string]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetAttributesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *RealmRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. +func (o *RealmRepresentation) SetAttributes(v map[string]string) { + o.Attributes = &v +} + +// GetKeycloakVersion returns the KeycloakVersion field value if set, zero value otherwise. +func (o *RealmRepresentation) GetKeycloakVersion() string { + if o == nil || IsNil(o.KeycloakVersion) { + var ret string + return ret + } + return *o.KeycloakVersion +} + +// GetKeycloakVersionOk returns a tuple with the KeycloakVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetKeycloakVersionOk() (*string, bool) { + if o == nil || IsNil(o.KeycloakVersion) { + return nil, false + } + return o.KeycloakVersion, true +} + +// HasKeycloakVersion returns a boolean if a field has been set. +func (o *RealmRepresentation) HasKeycloakVersion() bool { + if o != nil && !IsNil(o.KeycloakVersion) { + return true + } + + return false +} + +// SetKeycloakVersion gets a reference to the given string and assigns it to the KeycloakVersion field. +func (o *RealmRepresentation) SetKeycloakVersion(v string) { + o.KeycloakVersion = &v +} + +// GetUserManagedAccessAllowed returns the UserManagedAccessAllowed field value if set, zero value otherwise. +func (o *RealmRepresentation) GetUserManagedAccessAllowed() bool { + if o == nil || IsNil(o.UserManagedAccessAllowed) { + var ret bool + return ret + } + return *o.UserManagedAccessAllowed +} + +// GetUserManagedAccessAllowedOk returns a tuple with the UserManagedAccessAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetUserManagedAccessAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.UserManagedAccessAllowed) { + return nil, false + } + return o.UserManagedAccessAllowed, true +} + +// HasUserManagedAccessAllowed returns a boolean if a field has been set. +func (o *RealmRepresentation) HasUserManagedAccessAllowed() bool { + if o != nil && !IsNil(o.UserManagedAccessAllowed) { + return true + } + + return false +} + +// SetUserManagedAccessAllowed gets a reference to the given bool and assigns it to the UserManagedAccessAllowed field. +func (o *RealmRepresentation) SetUserManagedAccessAllowed(v bool) { + o.UserManagedAccessAllowed = &v +} + +// GetOrganizationsEnabled returns the OrganizationsEnabled field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOrganizationsEnabled() bool { + if o == nil || IsNil(o.OrganizationsEnabled) { + var ret bool + return ret + } + return *o.OrganizationsEnabled +} + +// GetOrganizationsEnabledOk returns a tuple with the OrganizationsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOrganizationsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.OrganizationsEnabled) { + return nil, false + } + return o.OrganizationsEnabled, true +} + +// HasOrganizationsEnabled returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOrganizationsEnabled() bool { + if o != nil && !IsNil(o.OrganizationsEnabled) { + return true + } + + return false +} + +// SetOrganizationsEnabled gets a reference to the given bool and assigns it to the OrganizationsEnabled field. +func (o *RealmRepresentation) SetOrganizationsEnabled(v bool) { + o.OrganizationsEnabled = &v +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOrganizations() []OrganizationRepresentation { + if o == nil || IsNil(o.Organizations) { + var ret []OrganizationRepresentation + return ret + } + return o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOrganizationsOk() ([]OrganizationRepresentation, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given []OrganizationRepresentation and assigns it to the Organizations field. +func (o *RealmRepresentation) SetOrganizations(v []OrganizationRepresentation) { + o.Organizations = v +} + +// GetSocial returns the Social field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetSocial() bool { + if o == nil || IsNil(o.Social) { + var ret bool + return ret + } + return *o.Social +} + +// GetSocialOk returns a tuple with the Social field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetSocialOk() (*bool, bool) { + if o == nil || IsNil(o.Social) { + return nil, false + } + return o.Social, true +} + +// HasSocial returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSocial() bool { + if o != nil && !IsNil(o.Social) { + return true + } + + return false +} + +// SetSocial gets a reference to the given bool and assigns it to the Social field. +// Deprecated +func (o *RealmRepresentation) SetSocial(v bool) { + o.Social = &v +} + +// GetUpdateProfileOnInitialSocialLogin returns the UpdateProfileOnInitialSocialLogin field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetUpdateProfileOnInitialSocialLogin() bool { + if o == nil || IsNil(o.UpdateProfileOnInitialSocialLogin) { + var ret bool + return ret + } + return *o.UpdateProfileOnInitialSocialLogin +} + +// GetUpdateProfileOnInitialSocialLoginOk returns a tuple with the UpdateProfileOnInitialSocialLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetUpdateProfileOnInitialSocialLoginOk() (*bool, bool) { + if o == nil || IsNil(o.UpdateProfileOnInitialSocialLogin) { + return nil, false + } + return o.UpdateProfileOnInitialSocialLogin, true +} + +// HasUpdateProfileOnInitialSocialLogin returns a boolean if a field has been set. +func (o *RealmRepresentation) HasUpdateProfileOnInitialSocialLogin() bool { + if o != nil && !IsNil(o.UpdateProfileOnInitialSocialLogin) { + return true + } + + return false +} + +// SetUpdateProfileOnInitialSocialLogin gets a reference to the given bool and assigns it to the UpdateProfileOnInitialSocialLogin field. +// Deprecated +func (o *RealmRepresentation) SetUpdateProfileOnInitialSocialLogin(v bool) { + o.UpdateProfileOnInitialSocialLogin = &v +} + +// GetSocialProviders returns the SocialProviders field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetSocialProviders() map[string]string { + if o == nil || IsNil(o.SocialProviders) { + var ret map[string]string + return ret + } + return *o.SocialProviders +} + +// GetSocialProvidersOk returns a tuple with the SocialProviders field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetSocialProvidersOk() (*map[string]string, bool) { + if o == nil || IsNil(o.SocialProviders) { + return nil, false + } + return o.SocialProviders, true +} + +// HasSocialProviders returns a boolean if a field has been set. +func (o *RealmRepresentation) HasSocialProviders() bool { + if o != nil && !IsNil(o.SocialProviders) { + return true + } + + return false +} + +// SetSocialProviders gets a reference to the given map[string]string and assigns it to the SocialProviders field. +// Deprecated +func (o *RealmRepresentation) SetSocialProviders(v map[string]string) { + o.SocialProviders = &v +} + +// GetApplicationScopeMappings returns the ApplicationScopeMappings field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetApplicationScopeMappings() map[string][]ScopeMappingRepresentation { + if o == nil || IsNil(o.ApplicationScopeMappings) { + var ret map[string][]ScopeMappingRepresentation + return ret + } + return *o.ApplicationScopeMappings +} + +// GetApplicationScopeMappingsOk returns a tuple with the ApplicationScopeMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetApplicationScopeMappingsOk() (*map[string][]ScopeMappingRepresentation, bool) { + if o == nil || IsNil(o.ApplicationScopeMappings) { + return nil, false + } + return o.ApplicationScopeMappings, true +} + +// HasApplicationScopeMappings returns a boolean if a field has been set. +func (o *RealmRepresentation) HasApplicationScopeMappings() bool { + if o != nil && !IsNil(o.ApplicationScopeMappings) { + return true + } + + return false +} + +// SetApplicationScopeMappings gets a reference to the given map[string][]ScopeMappingRepresentation and assigns it to the ApplicationScopeMappings field. +// Deprecated +func (o *RealmRepresentation) SetApplicationScopeMappings(v map[string][]ScopeMappingRepresentation) { + o.ApplicationScopeMappings = &v +} + +// GetApplications returns the Applications field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetApplications() []ApplicationRepresentation { + if o == nil || IsNil(o.Applications) { + var ret []ApplicationRepresentation + return ret + } + return o.Applications +} + +// GetApplicationsOk returns a tuple with the Applications field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetApplicationsOk() ([]ApplicationRepresentation, bool) { + if o == nil || IsNil(o.Applications) { + return nil, false + } + return o.Applications, true +} + +// HasApplications returns a boolean if a field has been set. +func (o *RealmRepresentation) HasApplications() bool { + if o != nil && !IsNil(o.Applications) { + return true + } + + return false +} + +// SetApplications gets a reference to the given []ApplicationRepresentation and assigns it to the Applications field. +// Deprecated +func (o *RealmRepresentation) SetApplications(v []ApplicationRepresentation) { + o.Applications = v +} + +// GetOauthClients returns the OauthClients field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetOauthClients() []OAuthClientRepresentation { + if o == nil || IsNil(o.OauthClients) { + var ret []OAuthClientRepresentation + return ret + } + return o.OauthClients +} + +// GetOauthClientsOk returns a tuple with the OauthClients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetOauthClientsOk() ([]OAuthClientRepresentation, bool) { + if o == nil || IsNil(o.OauthClients) { + return nil, false + } + return o.OauthClients, true +} + +// HasOauthClients returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOauthClients() bool { + if o != nil && !IsNil(o.OauthClients) { + return true + } + + return false +} + +// SetOauthClients gets a reference to the given []OAuthClientRepresentation and assigns it to the OauthClients field. +// Deprecated +func (o *RealmRepresentation) SetOauthClients(v []OAuthClientRepresentation) { + o.OauthClients = v +} + +// GetClientTemplates returns the ClientTemplates field value if set, zero value otherwise. +// Deprecated +func (o *RealmRepresentation) GetClientTemplates() []ClientTemplateRepresentation { + if o == nil || IsNil(o.ClientTemplates) { + var ret []ClientTemplateRepresentation + return ret + } + return o.ClientTemplates +} + +// GetClientTemplatesOk returns a tuple with the ClientTemplates field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealmRepresentation) GetClientTemplatesOk() ([]ClientTemplateRepresentation, bool) { + if o == nil || IsNil(o.ClientTemplates) { + return nil, false + } + return o.ClientTemplates, true +} + +// HasClientTemplates returns a boolean if a field has been set. +func (o *RealmRepresentation) HasClientTemplates() bool { + if o != nil && !IsNil(o.ClientTemplates) { + return true + } + + return false +} + +// SetClientTemplates gets a reference to the given []ClientTemplateRepresentation and assigns it to the ClientTemplates field. +// Deprecated +func (o *RealmRepresentation) SetClientTemplates(v []ClientTemplateRepresentation) { + o.ClientTemplates = v +} + +// GetOAuth2DeviceCodeLifespan returns the OAuth2DeviceCodeLifespan field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOAuth2DeviceCodeLifespan() int32 { + if o == nil || IsNil(o.OAuth2DeviceCodeLifespan) { + var ret int32 + return ret + } + return *o.OAuth2DeviceCodeLifespan +} + +// GetOAuth2DeviceCodeLifespanOk returns a tuple with the OAuth2DeviceCodeLifespan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOAuth2DeviceCodeLifespanOk() (*int32, bool) { + if o == nil || IsNil(o.OAuth2DeviceCodeLifespan) { + return nil, false + } + return o.OAuth2DeviceCodeLifespan, true +} + +// HasOAuth2DeviceCodeLifespan returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOAuth2DeviceCodeLifespan() bool { + if o != nil && !IsNil(o.OAuth2DeviceCodeLifespan) { + return true + } + + return false +} + +// SetOAuth2DeviceCodeLifespan gets a reference to the given int32 and assigns it to the OAuth2DeviceCodeLifespan field. +func (o *RealmRepresentation) SetOAuth2DeviceCodeLifespan(v int32) { + o.OAuth2DeviceCodeLifespan = &v +} + +// GetOAuth2DevicePollingInterval returns the OAuth2DevicePollingInterval field value if set, zero value otherwise. +func (o *RealmRepresentation) GetOAuth2DevicePollingInterval() int32 { + if o == nil || IsNil(o.OAuth2DevicePollingInterval) { + var ret int32 + return ret + } + return *o.OAuth2DevicePollingInterval +} + +// GetOAuth2DevicePollingIntervalOk returns a tuple with the OAuth2DevicePollingInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealmRepresentation) GetOAuth2DevicePollingIntervalOk() (*int32, bool) { + if o == nil || IsNil(o.OAuth2DevicePollingInterval) { + return nil, false + } + return o.OAuth2DevicePollingInterval, true +} + +// HasOAuth2DevicePollingInterval returns a boolean if a field has been set. +func (o *RealmRepresentation) HasOAuth2DevicePollingInterval() bool { + if o != nil && !IsNil(o.OAuth2DevicePollingInterval) { + return true + } + + return false +} + +// SetOAuth2DevicePollingInterval gets a reference to the given int32 and assigns it to the OAuth2DevicePollingInterval field. +func (o *RealmRepresentation) SetOAuth2DevicePollingInterval(v int32) { + o.OAuth2DevicePollingInterval = &v +} + +func (o RealmRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RealmRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Realm) { + toSerialize["realm"] = o.Realm + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.DisplayNameHtml) { + toSerialize["displayNameHtml"] = o.DisplayNameHtml + } + if !IsNil(o.NotBefore) { + toSerialize["notBefore"] = o.NotBefore + } + if !IsNil(o.DefaultSignatureAlgorithm) { + toSerialize["defaultSignatureAlgorithm"] = o.DefaultSignatureAlgorithm + } + if !IsNil(o.RevokeRefreshToken) { + toSerialize["revokeRefreshToken"] = o.RevokeRefreshToken + } + if !IsNil(o.RefreshTokenMaxReuse) { + toSerialize["refreshTokenMaxReuse"] = o.RefreshTokenMaxReuse + } + if !IsNil(o.AccessTokenLifespan) { + toSerialize["accessTokenLifespan"] = o.AccessTokenLifespan + } + if !IsNil(o.AccessTokenLifespanForImplicitFlow) { + toSerialize["accessTokenLifespanForImplicitFlow"] = o.AccessTokenLifespanForImplicitFlow + } + if !IsNil(o.SsoSessionIdleTimeout) { + toSerialize["ssoSessionIdleTimeout"] = o.SsoSessionIdleTimeout + } + if !IsNil(o.SsoSessionMaxLifespan) { + toSerialize["ssoSessionMaxLifespan"] = o.SsoSessionMaxLifespan + } + if !IsNil(o.SsoSessionIdleTimeoutRememberMe) { + toSerialize["ssoSessionIdleTimeoutRememberMe"] = o.SsoSessionIdleTimeoutRememberMe + } + if !IsNil(o.SsoSessionMaxLifespanRememberMe) { + toSerialize["ssoSessionMaxLifespanRememberMe"] = o.SsoSessionMaxLifespanRememberMe + } + if !IsNil(o.OfflineSessionIdleTimeout) { + toSerialize["offlineSessionIdleTimeout"] = o.OfflineSessionIdleTimeout + } + if !IsNil(o.OfflineSessionMaxLifespanEnabled) { + toSerialize["offlineSessionMaxLifespanEnabled"] = o.OfflineSessionMaxLifespanEnabled + } + if !IsNil(o.OfflineSessionMaxLifespan) { + toSerialize["offlineSessionMaxLifespan"] = o.OfflineSessionMaxLifespan + } + if !IsNil(o.ClientSessionIdleTimeout) { + toSerialize["clientSessionIdleTimeout"] = o.ClientSessionIdleTimeout + } + if !IsNil(o.ClientSessionMaxLifespan) { + toSerialize["clientSessionMaxLifespan"] = o.ClientSessionMaxLifespan + } + if !IsNil(o.ClientOfflineSessionIdleTimeout) { + toSerialize["clientOfflineSessionIdleTimeout"] = o.ClientOfflineSessionIdleTimeout + } + if !IsNil(o.ClientOfflineSessionMaxLifespan) { + toSerialize["clientOfflineSessionMaxLifespan"] = o.ClientOfflineSessionMaxLifespan + } + if !IsNil(o.AccessCodeLifespan) { + toSerialize["accessCodeLifespan"] = o.AccessCodeLifespan + } + if !IsNil(o.AccessCodeLifespanUserAction) { + toSerialize["accessCodeLifespanUserAction"] = o.AccessCodeLifespanUserAction + } + if !IsNil(o.AccessCodeLifespanLogin) { + toSerialize["accessCodeLifespanLogin"] = o.AccessCodeLifespanLogin + } + if !IsNil(o.ActionTokenGeneratedByAdminLifespan) { + toSerialize["actionTokenGeneratedByAdminLifespan"] = o.ActionTokenGeneratedByAdminLifespan + } + if !IsNil(o.ActionTokenGeneratedByUserLifespan) { + toSerialize["actionTokenGeneratedByUserLifespan"] = o.ActionTokenGeneratedByUserLifespan + } + if !IsNil(o.Oauth2DeviceCodeLifespan) { + toSerialize["oauth2DeviceCodeLifespan"] = o.Oauth2DeviceCodeLifespan + } + if !IsNil(o.Oauth2DevicePollingInterval) { + toSerialize["oauth2DevicePollingInterval"] = o.Oauth2DevicePollingInterval + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.SslRequired) { + toSerialize["sslRequired"] = o.SslRequired + } + if !IsNil(o.PasswordCredentialGrantAllowed) { + toSerialize["passwordCredentialGrantAllowed"] = o.PasswordCredentialGrantAllowed + } + if !IsNil(o.RegistrationAllowed) { + toSerialize["registrationAllowed"] = o.RegistrationAllowed + } + if !IsNil(o.RegistrationEmailAsUsername) { + toSerialize["registrationEmailAsUsername"] = o.RegistrationEmailAsUsername + } + if !IsNil(o.RememberMe) { + toSerialize["rememberMe"] = o.RememberMe + } + if !IsNil(o.VerifyEmail) { + toSerialize["verifyEmail"] = o.VerifyEmail + } + if !IsNil(o.LoginWithEmailAllowed) { + toSerialize["loginWithEmailAllowed"] = o.LoginWithEmailAllowed + } + if !IsNil(o.DuplicateEmailsAllowed) { + toSerialize["duplicateEmailsAllowed"] = o.DuplicateEmailsAllowed + } + if !IsNil(o.ResetPasswordAllowed) { + toSerialize["resetPasswordAllowed"] = o.ResetPasswordAllowed + } + if !IsNil(o.EditUsernameAllowed) { + toSerialize["editUsernameAllowed"] = o.EditUsernameAllowed + } + if !IsNil(o.UserCacheEnabled) { + toSerialize["userCacheEnabled"] = o.UserCacheEnabled + } + if !IsNil(o.RealmCacheEnabled) { + toSerialize["realmCacheEnabled"] = o.RealmCacheEnabled + } + if !IsNil(o.BruteForceProtected) { + toSerialize["bruteForceProtected"] = o.BruteForceProtected + } + if !IsNil(o.PermanentLockout) { + toSerialize["permanentLockout"] = o.PermanentLockout + } + if !IsNil(o.MaxTemporaryLockouts) { + toSerialize["maxTemporaryLockouts"] = o.MaxTemporaryLockouts + } + if !IsNil(o.BruteForceStrategy) { + toSerialize["bruteForceStrategy"] = o.BruteForceStrategy + } + if !IsNil(o.MaxFailureWaitSeconds) { + toSerialize["maxFailureWaitSeconds"] = o.MaxFailureWaitSeconds + } + if !IsNil(o.MinimumQuickLoginWaitSeconds) { + toSerialize["minimumQuickLoginWaitSeconds"] = o.MinimumQuickLoginWaitSeconds + } + if !IsNil(o.WaitIncrementSeconds) { + toSerialize["waitIncrementSeconds"] = o.WaitIncrementSeconds + } + if !IsNil(o.QuickLoginCheckMilliSeconds) { + toSerialize["quickLoginCheckMilliSeconds"] = o.QuickLoginCheckMilliSeconds + } + if !IsNil(o.MaxDeltaTimeSeconds) { + toSerialize["maxDeltaTimeSeconds"] = o.MaxDeltaTimeSeconds + } + if !IsNil(o.FailureFactor) { + toSerialize["failureFactor"] = o.FailureFactor + } + if !IsNil(o.PrivateKey) { + toSerialize["privateKey"] = o.PrivateKey + } + if !IsNil(o.PublicKey) { + toSerialize["publicKey"] = o.PublicKey + } + if !IsNil(o.Certificate) { + toSerialize["certificate"] = o.Certificate + } + if !IsNil(o.CodeSecret) { + toSerialize["codeSecret"] = o.CodeSecret + } + if !IsNil(o.Roles) { + toSerialize["roles"] = o.Roles + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.DefaultRoles) { + toSerialize["defaultRoles"] = o.DefaultRoles + } + if !IsNil(o.DefaultRole) { + toSerialize["defaultRole"] = o.DefaultRole + } + if !IsNil(o.DefaultGroups) { + toSerialize["defaultGroups"] = o.DefaultGroups + } + if !IsNil(o.RequiredCredentials) { + toSerialize["requiredCredentials"] = o.RequiredCredentials + } + if !IsNil(o.PasswordPolicy) { + toSerialize["passwordPolicy"] = o.PasswordPolicy + } + if !IsNil(o.OtpPolicyType) { + toSerialize["otpPolicyType"] = o.OtpPolicyType + } + if !IsNil(o.OtpPolicyAlgorithm) { + toSerialize["otpPolicyAlgorithm"] = o.OtpPolicyAlgorithm + } + if !IsNil(o.OtpPolicyInitialCounter) { + toSerialize["otpPolicyInitialCounter"] = o.OtpPolicyInitialCounter + } + if !IsNil(o.OtpPolicyDigits) { + toSerialize["otpPolicyDigits"] = o.OtpPolicyDigits + } + if !IsNil(o.OtpPolicyLookAheadWindow) { + toSerialize["otpPolicyLookAheadWindow"] = o.OtpPolicyLookAheadWindow + } + if !IsNil(o.OtpPolicyPeriod) { + toSerialize["otpPolicyPeriod"] = o.OtpPolicyPeriod + } + if !IsNil(o.OtpPolicyCodeReusable) { + toSerialize["otpPolicyCodeReusable"] = o.OtpPolicyCodeReusable + } + if !IsNil(o.OtpSupportedApplications) { + toSerialize["otpSupportedApplications"] = o.OtpSupportedApplications + } + if !IsNil(o.LocalizationTexts) { + toSerialize["localizationTexts"] = o.LocalizationTexts + } + if !IsNil(o.WebAuthnPolicyRpEntityName) { + toSerialize["webAuthnPolicyRpEntityName"] = o.WebAuthnPolicyRpEntityName + } + if !IsNil(o.WebAuthnPolicySignatureAlgorithms) { + toSerialize["webAuthnPolicySignatureAlgorithms"] = o.WebAuthnPolicySignatureAlgorithms + } + if !IsNil(o.WebAuthnPolicyRpId) { + toSerialize["webAuthnPolicyRpId"] = o.WebAuthnPolicyRpId + } + if !IsNil(o.WebAuthnPolicyAttestationConveyancePreference) { + toSerialize["webAuthnPolicyAttestationConveyancePreference"] = o.WebAuthnPolicyAttestationConveyancePreference + } + if !IsNil(o.WebAuthnPolicyAuthenticatorAttachment) { + toSerialize["webAuthnPolicyAuthenticatorAttachment"] = o.WebAuthnPolicyAuthenticatorAttachment + } + if !IsNil(o.WebAuthnPolicyRequireResidentKey) { + toSerialize["webAuthnPolicyRequireResidentKey"] = o.WebAuthnPolicyRequireResidentKey + } + if !IsNil(o.WebAuthnPolicyUserVerificationRequirement) { + toSerialize["webAuthnPolicyUserVerificationRequirement"] = o.WebAuthnPolicyUserVerificationRequirement + } + if !IsNil(o.WebAuthnPolicyCreateTimeout) { + toSerialize["webAuthnPolicyCreateTimeout"] = o.WebAuthnPolicyCreateTimeout + } + if !IsNil(o.WebAuthnPolicyAvoidSameAuthenticatorRegister) { + toSerialize["webAuthnPolicyAvoidSameAuthenticatorRegister"] = o.WebAuthnPolicyAvoidSameAuthenticatorRegister + } + if !IsNil(o.WebAuthnPolicyAcceptableAaguids) { + toSerialize["webAuthnPolicyAcceptableAaguids"] = o.WebAuthnPolicyAcceptableAaguids + } + if !IsNil(o.WebAuthnPolicyExtraOrigins) { + toSerialize["webAuthnPolicyExtraOrigins"] = o.WebAuthnPolicyExtraOrigins + } + if !IsNil(o.WebAuthnPolicyPasswordlessRpEntityName) { + toSerialize["webAuthnPolicyPasswordlessRpEntityName"] = o.WebAuthnPolicyPasswordlessRpEntityName + } + if !IsNil(o.WebAuthnPolicyPasswordlessSignatureAlgorithms) { + toSerialize["webAuthnPolicyPasswordlessSignatureAlgorithms"] = o.WebAuthnPolicyPasswordlessSignatureAlgorithms + } + if !IsNil(o.WebAuthnPolicyPasswordlessRpId) { + toSerialize["webAuthnPolicyPasswordlessRpId"] = o.WebAuthnPolicyPasswordlessRpId + } + if !IsNil(o.WebAuthnPolicyPasswordlessAttestationConveyancePreference) { + toSerialize["webAuthnPolicyPasswordlessAttestationConveyancePreference"] = o.WebAuthnPolicyPasswordlessAttestationConveyancePreference + } + if !IsNil(o.WebAuthnPolicyPasswordlessAuthenticatorAttachment) { + toSerialize["webAuthnPolicyPasswordlessAuthenticatorAttachment"] = o.WebAuthnPolicyPasswordlessAuthenticatorAttachment + } + if !IsNil(o.WebAuthnPolicyPasswordlessRequireResidentKey) { + toSerialize["webAuthnPolicyPasswordlessRequireResidentKey"] = o.WebAuthnPolicyPasswordlessRequireResidentKey + } + if !IsNil(o.WebAuthnPolicyPasswordlessUserVerificationRequirement) { + toSerialize["webAuthnPolicyPasswordlessUserVerificationRequirement"] = o.WebAuthnPolicyPasswordlessUserVerificationRequirement + } + if !IsNil(o.WebAuthnPolicyPasswordlessCreateTimeout) { + toSerialize["webAuthnPolicyPasswordlessCreateTimeout"] = o.WebAuthnPolicyPasswordlessCreateTimeout + } + if !IsNil(o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister) { + toSerialize["webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister"] = o.WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister + } + if !IsNil(o.WebAuthnPolicyPasswordlessAcceptableAaguids) { + toSerialize["webAuthnPolicyPasswordlessAcceptableAaguids"] = o.WebAuthnPolicyPasswordlessAcceptableAaguids + } + if !IsNil(o.WebAuthnPolicyPasswordlessExtraOrigins) { + toSerialize["webAuthnPolicyPasswordlessExtraOrigins"] = o.WebAuthnPolicyPasswordlessExtraOrigins + } + if !IsNil(o.ClientProfiles) { + toSerialize["clientProfiles"] = o.ClientProfiles + } + if !IsNil(o.ClientPolicies) { + toSerialize["clientPolicies"] = o.ClientPolicies + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + if !IsNil(o.FederatedUsers) { + toSerialize["federatedUsers"] = o.FederatedUsers + } + if !IsNil(o.ScopeMappings) { + toSerialize["scopeMappings"] = o.ScopeMappings + } + if !IsNil(o.ClientScopeMappings) { + toSerialize["clientScopeMappings"] = o.ClientScopeMappings + } + if !IsNil(o.Clients) { + toSerialize["clients"] = o.Clients + } + if !IsNil(o.ClientScopes) { + toSerialize["clientScopes"] = o.ClientScopes + } + if !IsNil(o.DefaultDefaultClientScopes) { + toSerialize["defaultDefaultClientScopes"] = o.DefaultDefaultClientScopes + } + if !IsNil(o.DefaultOptionalClientScopes) { + toSerialize["defaultOptionalClientScopes"] = o.DefaultOptionalClientScopes + } + if !IsNil(o.BrowserSecurityHeaders) { + toSerialize["browserSecurityHeaders"] = o.BrowserSecurityHeaders + } + if !IsNil(o.SmtpServer) { + toSerialize["smtpServer"] = o.SmtpServer + } + if !IsNil(o.UserFederationProviders) { + toSerialize["userFederationProviders"] = o.UserFederationProviders + } + if !IsNil(o.UserFederationMappers) { + toSerialize["userFederationMappers"] = o.UserFederationMappers + } + if !IsNil(o.LoginTheme) { + toSerialize["loginTheme"] = o.LoginTheme + } + if !IsNil(o.AccountTheme) { + toSerialize["accountTheme"] = o.AccountTheme + } + if !IsNil(o.AdminTheme) { + toSerialize["adminTheme"] = o.AdminTheme + } + if !IsNil(o.EmailTheme) { + toSerialize["emailTheme"] = o.EmailTheme + } + if !IsNil(o.EventsEnabled) { + toSerialize["eventsEnabled"] = o.EventsEnabled + } + if !IsNil(o.EventsExpiration) { + toSerialize["eventsExpiration"] = o.EventsExpiration + } + if !IsNil(o.EventsListeners) { + toSerialize["eventsListeners"] = o.EventsListeners + } + if !IsNil(o.EnabledEventTypes) { + toSerialize["enabledEventTypes"] = o.EnabledEventTypes + } + if !IsNil(o.AdminEventsEnabled) { + toSerialize["adminEventsEnabled"] = o.AdminEventsEnabled + } + if !IsNil(o.AdminEventsDetailsEnabled) { + toSerialize["adminEventsDetailsEnabled"] = o.AdminEventsDetailsEnabled + } + if !IsNil(o.IdentityProviders) { + toSerialize["identityProviders"] = o.IdentityProviders + } + if !IsNil(o.IdentityProviderMappers) { + toSerialize["identityProviderMappers"] = o.IdentityProviderMappers + } + if !IsNil(o.ProtocolMappers) { + toSerialize["protocolMappers"] = o.ProtocolMappers + } + if !IsNil(o.Components) { + toSerialize["components"] = o.Components + } + if !IsNil(o.InternationalizationEnabled) { + toSerialize["internationalizationEnabled"] = o.InternationalizationEnabled + } + if !IsNil(o.SupportedLocales) { + toSerialize["supportedLocales"] = o.SupportedLocales + } + if !IsNil(o.DefaultLocale) { + toSerialize["defaultLocale"] = o.DefaultLocale + } + if !IsNil(o.AuthenticationFlows) { + toSerialize["authenticationFlows"] = o.AuthenticationFlows + } + if !IsNil(o.AuthenticatorConfig) { + toSerialize["authenticatorConfig"] = o.AuthenticatorConfig + } + if !IsNil(o.RequiredActions) { + toSerialize["requiredActions"] = o.RequiredActions + } + if !IsNil(o.BrowserFlow) { + toSerialize["browserFlow"] = o.BrowserFlow + } + if !IsNil(o.RegistrationFlow) { + toSerialize["registrationFlow"] = o.RegistrationFlow + } + if !IsNil(o.DirectGrantFlow) { + toSerialize["directGrantFlow"] = o.DirectGrantFlow + } + if !IsNil(o.ResetCredentialsFlow) { + toSerialize["resetCredentialsFlow"] = o.ResetCredentialsFlow + } + if !IsNil(o.ClientAuthenticationFlow) { + toSerialize["clientAuthenticationFlow"] = o.ClientAuthenticationFlow + } + if !IsNil(o.DockerAuthenticationFlow) { + toSerialize["dockerAuthenticationFlow"] = o.DockerAuthenticationFlow + } + if !IsNil(o.FirstBrokerLoginFlow) { + toSerialize["firstBrokerLoginFlow"] = o.FirstBrokerLoginFlow + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.KeycloakVersion) { + toSerialize["keycloakVersion"] = o.KeycloakVersion + } + if !IsNil(o.UserManagedAccessAllowed) { + toSerialize["userManagedAccessAllowed"] = o.UserManagedAccessAllowed + } + if !IsNil(o.OrganizationsEnabled) { + toSerialize["organizationsEnabled"] = o.OrganizationsEnabled + } + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + if !IsNil(o.Social) { + toSerialize["social"] = o.Social + } + if !IsNil(o.UpdateProfileOnInitialSocialLogin) { + toSerialize["updateProfileOnInitialSocialLogin"] = o.UpdateProfileOnInitialSocialLogin + } + if !IsNil(o.SocialProviders) { + toSerialize["socialProviders"] = o.SocialProviders + } + if !IsNil(o.ApplicationScopeMappings) { + toSerialize["applicationScopeMappings"] = o.ApplicationScopeMappings + } + if !IsNil(o.Applications) { + toSerialize["applications"] = o.Applications + } + if !IsNil(o.OauthClients) { + toSerialize["oauthClients"] = o.OauthClients + } + if !IsNil(o.ClientTemplates) { + toSerialize["clientTemplates"] = o.ClientTemplates + } + if !IsNil(o.OAuth2DeviceCodeLifespan) { + toSerialize["oAuth2DeviceCodeLifespan"] = o.OAuth2DeviceCodeLifespan + } + if !IsNil(o.OAuth2DevicePollingInterval) { + toSerialize["oAuth2DevicePollingInterval"] = o.OAuth2DevicePollingInterval + } + return toSerialize, nil +} + +type NullableRealmRepresentation struct { + value *RealmRepresentation + isSet bool +} + +func (v NullableRealmRepresentation) Get() *RealmRepresentation { + return v.value +} + +func (v *NullableRealmRepresentation) Set(val *RealmRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRealmRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRealmRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRealmRepresentation(val *RealmRepresentation) *NullableRealmRepresentation { + return &NullableRealmRepresentation{value: val, isSet: true} +} + +func (v NullableRealmRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRealmRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_required_action_config_info_representation.go b/model_required_action_config_info_representation.go new file mode 100644 index 0000000..c72372e --- /dev/null +++ b/model_required_action_config_info_representation.go @@ -0,0 +1,124 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the RequiredActionConfigInfoRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequiredActionConfigInfoRepresentation{} + +// RequiredActionConfigInfoRepresentation struct for RequiredActionConfigInfoRepresentation +type RequiredActionConfigInfoRepresentation struct { + Properties []ConfigPropertyRepresentation `json:"properties,omitempty"` +} + +// NewRequiredActionConfigInfoRepresentation instantiates a new RequiredActionConfigInfoRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRequiredActionConfigInfoRepresentation() *RequiredActionConfigInfoRepresentation { + this := RequiredActionConfigInfoRepresentation{} + return &this +} + +// NewRequiredActionConfigInfoRepresentationWithDefaults instantiates a new RequiredActionConfigInfoRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRequiredActionConfigInfoRepresentationWithDefaults() *RequiredActionConfigInfoRepresentation { + this := RequiredActionConfigInfoRepresentation{} + return &this +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *RequiredActionConfigInfoRepresentation) GetProperties() []ConfigPropertyRepresentation { + if o == nil || IsNil(o.Properties) { + var ret []ConfigPropertyRepresentation + 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 *RequiredActionConfigInfoRepresentation) GetPropertiesOk() ([]ConfigPropertyRepresentation, 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 *RequiredActionConfigInfoRepresentation) HasProperties() bool { + if o != nil && !IsNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []ConfigPropertyRepresentation and assigns it to the Properties field. +func (o *RequiredActionConfigInfoRepresentation) SetProperties(v []ConfigPropertyRepresentation) { + o.Properties = v +} + +func (o RequiredActionConfigInfoRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequiredActionConfigInfoRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Properties) { + toSerialize["properties"] = o.Properties + } + return toSerialize, nil +} + +type NullableRequiredActionConfigInfoRepresentation struct { + value *RequiredActionConfigInfoRepresentation + isSet bool +} + +func (v NullableRequiredActionConfigInfoRepresentation) Get() *RequiredActionConfigInfoRepresentation { + return v.value +} + +func (v *NullableRequiredActionConfigInfoRepresentation) Set(val *RequiredActionConfigInfoRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRequiredActionConfigInfoRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRequiredActionConfigInfoRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequiredActionConfigInfoRepresentation(val *RequiredActionConfigInfoRepresentation) *NullableRequiredActionConfigInfoRepresentation { + return &NullableRequiredActionConfigInfoRepresentation{value: val, isSet: true} +} + +func (v NullableRequiredActionConfigInfoRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequiredActionConfigInfoRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_required_action_config_representation.go b/model_required_action_config_representation.go new file mode 100644 index 0000000..f91aef8 --- /dev/null +++ b/model_required_action_config_representation.go @@ -0,0 +1,124 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the RequiredActionConfigRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequiredActionConfigRepresentation{} + +// RequiredActionConfigRepresentation struct for RequiredActionConfigRepresentation +type RequiredActionConfigRepresentation struct { + Config *map[string]string `json:"config,omitempty"` +} + +// NewRequiredActionConfigRepresentation instantiates a new RequiredActionConfigRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRequiredActionConfigRepresentation() *RequiredActionConfigRepresentation { + this := RequiredActionConfigRepresentation{} + return &this +} + +// NewRequiredActionConfigRepresentationWithDefaults instantiates a new RequiredActionConfigRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRequiredActionConfigRepresentationWithDefaults() *RequiredActionConfigRepresentation { + this := RequiredActionConfigRepresentation{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *RequiredActionConfigRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequiredActionConfigRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *RequiredActionConfigRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *RequiredActionConfigRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +func (o RequiredActionConfigRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequiredActionConfigRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableRequiredActionConfigRepresentation struct { + value *RequiredActionConfigRepresentation + isSet bool +} + +func (v NullableRequiredActionConfigRepresentation) Get() *RequiredActionConfigRepresentation { + return v.value +} + +func (v *NullableRequiredActionConfigRepresentation) Set(val *RequiredActionConfigRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRequiredActionConfigRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRequiredActionConfigRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequiredActionConfigRepresentation(val *RequiredActionConfigRepresentation) *NullableRequiredActionConfigRepresentation { + return &NullableRequiredActionConfigRepresentation{value: val, isSet: true} +} + +func (v NullableRequiredActionConfigRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequiredActionConfigRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_required_action_provider_representation.go b/model_required_action_provider_representation.go new file mode 100644 index 0000000..6705a67 --- /dev/null +++ b/model_required_action_provider_representation.go @@ -0,0 +1,340 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the RequiredActionProviderRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequiredActionProviderRepresentation{} + +// RequiredActionProviderRepresentation struct for RequiredActionProviderRepresentation +type RequiredActionProviderRepresentation struct { + Alias *string `json:"alias,omitempty"` + Name *string `json:"name,omitempty"` + ProviderId *string `json:"providerId,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + DefaultAction *bool `json:"defaultAction,omitempty"` + Priority *int32 `json:"priority,omitempty"` + Config *map[string]string `json:"config,omitempty"` +} + +// NewRequiredActionProviderRepresentation instantiates a new RequiredActionProviderRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRequiredActionProviderRepresentation() *RequiredActionProviderRepresentation { + this := RequiredActionProviderRepresentation{} + return &this +} + +// NewRequiredActionProviderRepresentationWithDefaults instantiates a new RequiredActionProviderRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRequiredActionProviderRepresentationWithDefaults() *RequiredActionProviderRepresentation { + this := RequiredActionProviderRepresentation{} + return &this +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) SetAlias(v string) { + o.Alias = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) SetName(v string) { + o.Name = &v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *RequiredActionProviderRepresentation) GetProviderId() string { + if o == nil || IsNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequiredActionProviderRepresentation) GetProviderIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *RequiredActionProviderRepresentation) HasProviderId() bool { + if o != nil && !IsNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *RequiredActionProviderRepresentation) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) 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 *RequiredActionProviderRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDefaultAction returns the DefaultAction field value if set, zero value otherwise. +func (o *RequiredActionProviderRepresentation) GetDefaultAction() bool { + if o == nil || IsNil(o.DefaultAction) { + var ret bool + return ret + } + return *o.DefaultAction +} + +// GetDefaultActionOk returns a tuple with the DefaultAction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequiredActionProviderRepresentation) GetDefaultActionOk() (*bool, bool) { + if o == nil || IsNil(o.DefaultAction) { + return nil, false + } + return o.DefaultAction, true +} + +// HasDefaultAction returns a boolean if a field has been set. +func (o *RequiredActionProviderRepresentation) HasDefaultAction() bool { + if o != nil && !IsNil(o.DefaultAction) { + return true + } + + return false +} + +// SetDefaultAction gets a reference to the given bool and assigns it to the DefaultAction field. +func (o *RequiredActionProviderRepresentation) SetDefaultAction(v bool) { + o.DefaultAction = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *RequiredActionProviderRepresentation) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequiredActionProviderRepresentation) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *RequiredActionProviderRepresentation) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *RequiredActionProviderRepresentation) SetPriority(v int32) { + o.Priority = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *RequiredActionProviderRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequiredActionProviderRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *RequiredActionProviderRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *RequiredActionProviderRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +func (o RequiredActionProviderRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequiredActionProviderRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.ProviderId) { + toSerialize["providerId"] = o.ProviderId + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.DefaultAction) { + toSerialize["defaultAction"] = o.DefaultAction + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableRequiredActionProviderRepresentation struct { + value *RequiredActionProviderRepresentation + isSet bool +} + +func (v NullableRequiredActionProviderRepresentation) Get() *RequiredActionProviderRepresentation { + return v.value +} + +func (v *NullableRequiredActionProviderRepresentation) Set(val *RequiredActionProviderRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRequiredActionProviderRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRequiredActionProviderRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequiredActionProviderRepresentation(val *RequiredActionProviderRepresentation) *NullableRequiredActionProviderRepresentation { + return &NullableRequiredActionProviderRepresentation{value: val, isSet: true} +} + +func (v NullableRequiredActionProviderRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequiredActionProviderRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_resource_owner_representation.go b/model_resource_owner_representation.go new file mode 100644 index 0000000..0c6c3ff --- /dev/null +++ b/model_resource_owner_representation.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ResourceOwnerRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceOwnerRepresentation{} + +// ResourceOwnerRepresentation struct for ResourceOwnerRepresentation +type ResourceOwnerRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewResourceOwnerRepresentation instantiates a new ResourceOwnerRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceOwnerRepresentation() *ResourceOwnerRepresentation { + this := ResourceOwnerRepresentation{} + return &this +} + +// NewResourceOwnerRepresentationWithDefaults instantiates a new ResourceOwnerRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceOwnerRepresentationWithDefaults() *ResourceOwnerRepresentation { + this := ResourceOwnerRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) 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 *ResourceOwnerRepresentation) SetName(v string) { + o.Name = &v +} + +func (o ResourceOwnerRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceOwnerRepresentation) 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 + } + return toSerialize, nil +} + +type NullableResourceOwnerRepresentation struct { + value *ResourceOwnerRepresentation + isSet bool +} + +func (v NullableResourceOwnerRepresentation) Get() *ResourceOwnerRepresentation { + return v.value +} + +func (v *NullableResourceOwnerRepresentation) Set(val *ResourceOwnerRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableResourceOwnerRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceOwnerRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceOwnerRepresentation(val *ResourceOwnerRepresentation) *NullableResourceOwnerRepresentation { + return &NullableResourceOwnerRepresentation{value: val, isSet: true} +} + +func (v NullableResourceOwnerRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceOwnerRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_resource_representation.go b/model_resource_representation.go new file mode 100644 index 0000000..a652298 --- /dev/null +++ b/model_resource_representation.go @@ -0,0 +1,524 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ResourceRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRepresentation{} + +// ResourceRepresentation struct for ResourceRepresentation +type ResourceRepresentation struct { + Id *string `json:"_id,omitempty"` + Name *string `json:"name,omitempty"` + Uris []string `json:"uris,omitempty"` + Type *string `json:"type,omitempty"` + Scopes []ScopeRepresentation `json:"scopes,omitempty"` + IconUri *string `json:"icon_uri,omitempty"` + Owner *ResourceOwnerRepresentation `json:"owner,omitempty"` + OwnerManagedAccess *bool `json:"ownerManagedAccess,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Attributes *map[string][]string `json:"attributes,omitempty"` + // Deprecated + Uri *string `json:"uri,omitempty"` + ScopesUma []ScopeRepresentation `json:"scopesUma,omitempty"` +} + +// NewResourceRepresentation instantiates a new ResourceRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceRepresentation() *ResourceRepresentation { + this := ResourceRepresentation{} + return &this +} + +// NewResourceRepresentationWithDefaults instantiates a new ResourceRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceRepresentationWithDefaults() *ResourceRepresentation { + this := ResourceRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) SetName(v string) { + o.Name = &v +} + +// GetUris returns the Uris field value if set, zero value otherwise. +func (o *ResourceRepresentation) GetUris() []string { + if o == nil || IsNil(o.Uris) { + var ret []string + return ret + } + return o.Uris +} + +// GetUrisOk returns a tuple with the Uris field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRepresentation) GetUrisOk() ([]string, bool) { + if o == nil || IsNil(o.Uris) { + return nil, false + } + return o.Uris, true +} + +// HasUris returns a boolean if a field has been set. +func (o *ResourceRepresentation) HasUris() bool { + if o != nil && !IsNil(o.Uris) { + return true + } + + return false +} + +// SetUris gets a reference to the given []string and assigns it to the Uris field. +func (o *ResourceRepresentation) SetUris(v []string) { + o.Uris = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) SetType(v string) { + o.Type = &v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *ResourceRepresentation) GetScopes() []ScopeRepresentation { + if o == nil || IsNil(o.Scopes) { + var ret []ScopeRepresentation + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRepresentation) GetScopesOk() ([]ScopeRepresentation, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *ResourceRepresentation) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []ScopeRepresentation and assigns it to the Scopes field. +func (o *ResourceRepresentation) SetScopes(v []ScopeRepresentation) { + o.Scopes = v +} + +// GetIconUri returns the IconUri field value if set, zero value otherwise. +func (o *ResourceRepresentation) GetIconUri() string { + if o == nil || IsNil(o.IconUri) { + var ret string + return ret + } + return *o.IconUri +} + +// GetIconUriOk returns a tuple with the IconUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRepresentation) GetIconUriOk() (*string, bool) { + if o == nil || IsNil(o.IconUri) { + return nil, false + } + return o.IconUri, true +} + +// HasIconUri returns a boolean if a field has been set. +func (o *ResourceRepresentation) HasIconUri() bool { + if o != nil && !IsNil(o.IconUri) { + return true + } + + return false +} + +// SetIconUri gets a reference to the given string and assigns it to the IconUri field. +func (o *ResourceRepresentation) SetIconUri(v string) { + o.IconUri = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ResourceRepresentation) GetOwner() ResourceOwnerRepresentation { + if o == nil || IsNil(o.Owner) { + var ret ResourceOwnerRepresentation + 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 *ResourceRepresentation) GetOwnerOk() (*ResourceOwnerRepresentation, 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 *ResourceRepresentation) HasOwner() bool { + if o != nil && !IsNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given ResourceOwnerRepresentation and assigns it to the Owner field. +func (o *ResourceRepresentation) SetOwner(v ResourceOwnerRepresentation) { + o.Owner = &v +} + +// GetOwnerManagedAccess returns the OwnerManagedAccess field value if set, zero value otherwise. +func (o *ResourceRepresentation) GetOwnerManagedAccess() bool { + if o == nil || IsNil(o.OwnerManagedAccess) { + var ret bool + return ret + } + return *o.OwnerManagedAccess +} + +// GetOwnerManagedAccessOk returns a tuple with the OwnerManagedAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRepresentation) GetOwnerManagedAccessOk() (*bool, bool) { + if o == nil || IsNil(o.OwnerManagedAccess) { + return nil, false + } + return o.OwnerManagedAccess, true +} + +// HasOwnerManagedAccess returns a boolean if a field has been set. +func (o *ResourceRepresentation) HasOwnerManagedAccess() bool { + if o != nil && !IsNil(o.OwnerManagedAccess) { + return true + } + + return false +} + +// SetOwnerManagedAccess gets a reference to the given bool and assigns it to the OwnerManagedAccess field. +func (o *ResourceRepresentation) SetOwnerManagedAccess(v bool) { + o.OwnerManagedAccess = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) 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 *ResourceRepresentation) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *ResourceRepresentation) GetAttributes() map[string][]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string][]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRepresentation) GetAttributesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *ResourceRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string][]string and assigns it to the Attributes field. +func (o *ResourceRepresentation) SetAttributes(v map[string][]string) { + o.Attributes = &v +} + +// GetUri returns the Uri field value if set, zero value otherwise. +// Deprecated +func (o *ResourceRepresentation) GetUri() string { + if o == nil || IsNil(o.Uri) { + var ret string + return ret + } + return *o.Uri +} + +// GetUriOk returns a tuple with the Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ResourceRepresentation) GetUriOk() (*string, bool) { + if o == nil || IsNil(o.Uri) { + return nil, false + } + return o.Uri, true +} + +// HasUri returns a boolean if a field has been set. +func (o *ResourceRepresentation) HasUri() bool { + if o != nil && !IsNil(o.Uri) { + return true + } + + return false +} + +// SetUri gets a reference to the given string and assigns it to the Uri field. +// Deprecated +func (o *ResourceRepresentation) SetUri(v string) { + o.Uri = &v +} + +// GetScopesUma returns the ScopesUma field value if set, zero value otherwise. +func (o *ResourceRepresentation) GetScopesUma() []ScopeRepresentation { + if o == nil || IsNil(o.ScopesUma) { + var ret []ScopeRepresentation + return ret + } + return o.ScopesUma +} + +// GetScopesUmaOk returns a tuple with the ScopesUma field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRepresentation) GetScopesUmaOk() ([]ScopeRepresentation, bool) { + if o == nil || IsNil(o.ScopesUma) { + return nil, false + } + return o.ScopesUma, true +} + +// HasScopesUma returns a boolean if a field has been set. +func (o *ResourceRepresentation) HasScopesUma() bool { + if o != nil && !IsNil(o.ScopesUma) { + return true + } + + return false +} + +// SetScopesUma gets a reference to the given []ScopeRepresentation and assigns it to the ScopesUma field. +func (o *ResourceRepresentation) SetScopesUma(v []ScopeRepresentation) { + o.ScopesUma = v +} + +func (o ResourceRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRepresentation) 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.Uris) { + toSerialize["uris"] = o.Uris + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.IconUri) { + toSerialize["icon_uri"] = o.IconUri + } + if !IsNil(o.Owner) { + toSerialize["owner"] = o.Owner + } + if !IsNil(o.OwnerManagedAccess) { + toSerialize["ownerManagedAccess"] = o.OwnerManagedAccess + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Uri) { + toSerialize["uri"] = o.Uri + } + if !IsNil(o.ScopesUma) { + toSerialize["scopesUma"] = o.ScopesUma + } + return toSerialize, nil +} + +type NullableResourceRepresentation struct { + value *ResourceRepresentation + isSet bool +} + +func (v NullableResourceRepresentation) Get() *ResourceRepresentation { + return v.value +} + +func (v *NullableResourceRepresentation) Set(val *ResourceRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRepresentation(val *ResourceRepresentation) *NullableResourceRepresentation { + return &NullableResourceRepresentation{value: val, isSet: true} +} + +func (v NullableResourceRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_resource_server_representation.go b/model_resource_server_representation.go new file mode 100644 index 0000000..2fda137 --- /dev/null +++ b/model_resource_server_representation.go @@ -0,0 +1,412 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ResourceServerRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceServerRepresentation{} + +// ResourceServerRepresentation struct for ResourceServerRepresentation +type ResourceServerRepresentation struct { + Id *string `json:"id,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Name *string `json:"name,omitempty"` + AllowRemoteResourceManagement *bool `json:"allowRemoteResourceManagement,omitempty"` + PolicyEnforcementMode *PolicyEnforcementMode `json:"policyEnforcementMode,omitempty"` + Resources []ResourceRepresentation `json:"resources,omitempty"` + Policies []PolicyRepresentation `json:"policies,omitempty"` + Scopes []ScopeRepresentation `json:"scopes,omitempty"` + DecisionStrategy *DecisionStrategy `json:"decisionStrategy,omitempty"` +} + +// NewResourceServerRepresentation instantiates a new ResourceServerRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceServerRepresentation() *ResourceServerRepresentation { + this := ResourceServerRepresentation{} + return &this +} + +// NewResourceServerRepresentationWithDefaults instantiates a new ResourceServerRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceServerRepresentationWithDefaults() *ResourceServerRepresentation { + this := ResourceServerRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) 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 *ResourceServerRepresentation) 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 *ResourceServerRepresentation) 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 *ResourceServerRepresentation) SetId(v string) { + o.Id = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceServerRepresentation) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ResourceServerRepresentation) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ResourceServerRepresentation) SetClientId(v string) { + o.ClientId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) 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 *ResourceServerRepresentation) 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 *ResourceServerRepresentation) 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 *ResourceServerRepresentation) SetName(v string) { + o.Name = &v +} + +// GetAllowRemoteResourceManagement returns the AllowRemoteResourceManagement field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) GetAllowRemoteResourceManagement() bool { + if o == nil || IsNil(o.AllowRemoteResourceManagement) { + var ret bool + return ret + } + return *o.AllowRemoteResourceManagement +} + +// GetAllowRemoteResourceManagementOk returns a tuple with the AllowRemoteResourceManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceServerRepresentation) GetAllowRemoteResourceManagementOk() (*bool, bool) { + if o == nil || IsNil(o.AllowRemoteResourceManagement) { + return nil, false + } + return o.AllowRemoteResourceManagement, true +} + +// HasAllowRemoteResourceManagement returns a boolean if a field has been set. +func (o *ResourceServerRepresentation) HasAllowRemoteResourceManagement() bool { + if o != nil && !IsNil(o.AllowRemoteResourceManagement) { + return true + } + + return false +} + +// SetAllowRemoteResourceManagement gets a reference to the given bool and assigns it to the AllowRemoteResourceManagement field. +func (o *ResourceServerRepresentation) SetAllowRemoteResourceManagement(v bool) { + o.AllowRemoteResourceManagement = &v +} + +// GetPolicyEnforcementMode returns the PolicyEnforcementMode field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) GetPolicyEnforcementMode() PolicyEnforcementMode { + if o == nil || IsNil(o.PolicyEnforcementMode) { + var ret PolicyEnforcementMode + return ret + } + return *o.PolicyEnforcementMode +} + +// GetPolicyEnforcementModeOk returns a tuple with the PolicyEnforcementMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceServerRepresentation) GetPolicyEnforcementModeOk() (*PolicyEnforcementMode, bool) { + if o == nil || IsNil(o.PolicyEnforcementMode) { + return nil, false + } + return o.PolicyEnforcementMode, true +} + +// HasPolicyEnforcementMode returns a boolean if a field has been set. +func (o *ResourceServerRepresentation) HasPolicyEnforcementMode() bool { + if o != nil && !IsNil(o.PolicyEnforcementMode) { + return true + } + + return false +} + +// SetPolicyEnforcementMode gets a reference to the given PolicyEnforcementMode and assigns it to the PolicyEnforcementMode field. +func (o *ResourceServerRepresentation) SetPolicyEnforcementMode(v PolicyEnforcementMode) { + o.PolicyEnforcementMode = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) GetResources() []ResourceRepresentation { + if o == nil || IsNil(o.Resources) { + var ret []ResourceRepresentation + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceServerRepresentation) GetResourcesOk() ([]ResourceRepresentation, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ResourceServerRepresentation) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ResourceRepresentation and assigns it to the Resources field. +func (o *ResourceServerRepresentation) SetResources(v []ResourceRepresentation) { + o.Resources = v +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) GetPolicies() []PolicyRepresentation { + if o == nil || IsNil(o.Policies) { + var ret []PolicyRepresentation + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceServerRepresentation) GetPoliciesOk() ([]PolicyRepresentation, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *ResourceServerRepresentation) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []PolicyRepresentation and assigns it to the Policies field. +func (o *ResourceServerRepresentation) SetPolicies(v []PolicyRepresentation) { + o.Policies = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) GetScopes() []ScopeRepresentation { + if o == nil || IsNil(o.Scopes) { + var ret []ScopeRepresentation + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceServerRepresentation) GetScopesOk() ([]ScopeRepresentation, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *ResourceServerRepresentation) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []ScopeRepresentation and assigns it to the Scopes field. +func (o *ResourceServerRepresentation) SetScopes(v []ScopeRepresentation) { + o.Scopes = v +} + +// GetDecisionStrategy returns the DecisionStrategy field value if set, zero value otherwise. +func (o *ResourceServerRepresentation) GetDecisionStrategy() DecisionStrategy { + if o == nil || IsNil(o.DecisionStrategy) { + var ret DecisionStrategy + return ret + } + return *o.DecisionStrategy +} + +// GetDecisionStrategyOk returns a tuple with the DecisionStrategy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceServerRepresentation) GetDecisionStrategyOk() (*DecisionStrategy, bool) { + if o == nil || IsNil(o.DecisionStrategy) { + return nil, false + } + return o.DecisionStrategy, true +} + +// HasDecisionStrategy returns a boolean if a field has been set. +func (o *ResourceServerRepresentation) HasDecisionStrategy() bool { + if o != nil && !IsNil(o.DecisionStrategy) { + return true + } + + return false +} + +// SetDecisionStrategy gets a reference to the given DecisionStrategy and assigns it to the DecisionStrategy field. +func (o *ResourceServerRepresentation) SetDecisionStrategy(v DecisionStrategy) { + o.DecisionStrategy = &v +} + +func (o ResourceServerRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceServerRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.AllowRemoteResourceManagement) { + toSerialize["allowRemoteResourceManagement"] = o.AllowRemoteResourceManagement + } + if !IsNil(o.PolicyEnforcementMode) { + toSerialize["policyEnforcementMode"] = o.PolicyEnforcementMode + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.DecisionStrategy) { + toSerialize["decisionStrategy"] = o.DecisionStrategy + } + return toSerialize, nil +} + +type NullableResourceServerRepresentation struct { + value *ResourceServerRepresentation + isSet bool +} + +func (v NullableResourceServerRepresentation) Get() *ResourceServerRepresentation { + return v.value +} + +func (v *NullableResourceServerRepresentation) Set(val *ResourceServerRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableResourceServerRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceServerRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceServerRepresentation(val *ResourceServerRepresentation) *NullableResourceServerRepresentation { + return &NullableResourceServerRepresentation{value: val, isSet: true} +} + +func (v NullableResourceServerRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceServerRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_role_representation.go b/model_role_representation.go new file mode 100644 index 0000000..d968178 --- /dev/null +++ b/model_role_representation.go @@ -0,0 +1,416 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the RoleRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleRepresentation{} + +// RoleRepresentation struct for RoleRepresentation +type RoleRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + // Deprecated + ScopeParamRequired *bool `json:"scopeParamRequired,omitempty"` + Composite *bool `json:"composite,omitempty"` + Composites *Composites `json:"composites,omitempty"` + ClientRole *bool `json:"clientRole,omitempty"` + ContainerId *string `json:"containerId,omitempty"` + Attributes *map[string][]string `json:"attributes,omitempty"` +} + +// NewRoleRepresentation instantiates a new RoleRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleRepresentation() *RoleRepresentation { + this := RoleRepresentation{} + return &this +} + +// NewRoleRepresentationWithDefaults instantiates a new RoleRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleRepresentationWithDefaults() *RoleRepresentation { + this := RoleRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *RoleRepresentation) 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 *RoleRepresentation) 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 *RoleRepresentation) 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 *RoleRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RoleRepresentation) 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 *RoleRepresentation) 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 *RoleRepresentation) 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 *RoleRepresentation) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RoleRepresentation) 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 *RoleRepresentation) 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 *RoleRepresentation) 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 *RoleRepresentation) SetDescription(v string) { + o.Description = &v +} + +// GetScopeParamRequired returns the ScopeParamRequired field value if set, zero value otherwise. +// Deprecated +func (o *RoleRepresentation) GetScopeParamRequired() bool { + if o == nil || IsNil(o.ScopeParamRequired) { + var ret bool + return ret + } + return *o.ScopeParamRequired +} + +// GetScopeParamRequiredOk returns a tuple with the ScopeParamRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RoleRepresentation) GetScopeParamRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.ScopeParamRequired) { + return nil, false + } + return o.ScopeParamRequired, true +} + +// HasScopeParamRequired returns a boolean if a field has been set. +func (o *RoleRepresentation) HasScopeParamRequired() bool { + if o != nil && !IsNil(o.ScopeParamRequired) { + return true + } + + return false +} + +// SetScopeParamRequired gets a reference to the given bool and assigns it to the ScopeParamRequired field. +// Deprecated +func (o *RoleRepresentation) SetScopeParamRequired(v bool) { + o.ScopeParamRequired = &v +} + +// GetComposite returns the Composite field value if set, zero value otherwise. +func (o *RoleRepresentation) GetComposite() bool { + if o == nil || IsNil(o.Composite) { + var ret bool + return ret + } + return *o.Composite +} + +// GetCompositeOk returns a tuple with the Composite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRepresentation) GetCompositeOk() (*bool, bool) { + if o == nil || IsNil(o.Composite) { + return nil, false + } + return o.Composite, true +} + +// HasComposite returns a boolean if a field has been set. +func (o *RoleRepresentation) HasComposite() bool { + if o != nil && !IsNil(o.Composite) { + return true + } + + return false +} + +// SetComposite gets a reference to the given bool and assigns it to the Composite field. +func (o *RoleRepresentation) SetComposite(v bool) { + o.Composite = &v +} + +// GetComposites returns the Composites field value if set, zero value otherwise. +func (o *RoleRepresentation) GetComposites() Composites { + if o == nil || IsNil(o.Composites) { + var ret Composites + return ret + } + return *o.Composites +} + +// GetCompositesOk returns a tuple with the Composites field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRepresentation) GetCompositesOk() (*Composites, bool) { + if o == nil || IsNil(o.Composites) { + return nil, false + } + return o.Composites, true +} + +// HasComposites returns a boolean if a field has been set. +func (o *RoleRepresentation) HasComposites() bool { + if o != nil && !IsNil(o.Composites) { + return true + } + + return false +} + +// SetComposites gets a reference to the given Composites and assigns it to the Composites field. +func (o *RoleRepresentation) SetComposites(v Composites) { + o.Composites = &v +} + +// GetClientRole returns the ClientRole field value if set, zero value otherwise. +func (o *RoleRepresentation) GetClientRole() bool { + if o == nil || IsNil(o.ClientRole) { + var ret bool + return ret + } + return *o.ClientRole +} + +// GetClientRoleOk returns a tuple with the ClientRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRepresentation) GetClientRoleOk() (*bool, bool) { + if o == nil || IsNil(o.ClientRole) { + return nil, false + } + return o.ClientRole, true +} + +// HasClientRole returns a boolean if a field has been set. +func (o *RoleRepresentation) HasClientRole() bool { + if o != nil && !IsNil(o.ClientRole) { + return true + } + + return false +} + +// SetClientRole gets a reference to the given bool and assigns it to the ClientRole field. +func (o *RoleRepresentation) SetClientRole(v bool) { + o.ClientRole = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *RoleRepresentation) GetContainerId() string { + if o == nil || IsNil(o.ContainerId) { + var ret string + 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 *RoleRepresentation) GetContainerIdOk() (*string, 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 *RoleRepresentation) HasContainerId() bool { + if o != nil && !IsNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given string and assigns it to the ContainerId field. +func (o *RoleRepresentation) SetContainerId(v string) { + o.ContainerId = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *RoleRepresentation) GetAttributes() map[string][]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string][]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRepresentation) GetAttributesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *RoleRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string][]string and assigns it to the Attributes field. +func (o *RoleRepresentation) SetAttributes(v map[string][]string) { + o.Attributes = &v +} + +func (o RoleRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleRepresentation) 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.ScopeParamRequired) { + toSerialize["scopeParamRequired"] = o.ScopeParamRequired + } + if !IsNil(o.Composite) { + toSerialize["composite"] = o.Composite + } + if !IsNil(o.Composites) { + toSerialize["composites"] = o.Composites + } + if !IsNil(o.ClientRole) { + toSerialize["clientRole"] = o.ClientRole + } + if !IsNil(o.ContainerId) { + toSerialize["containerId"] = o.ContainerId + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + return toSerialize, nil +} + +type NullableRoleRepresentation struct { + value *RoleRepresentation + isSet bool +} + +func (v NullableRoleRepresentation) Get() *RoleRepresentation { + return v.value +} + +func (v *NullableRoleRepresentation) Set(val *RoleRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRoleRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleRepresentation(val *RoleRepresentation) *NullableRoleRepresentation { + return &NullableRoleRepresentation{value: val, isSet: true} +} + +func (v NullableRoleRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_roles_representation.go b/model_roles_representation.go new file mode 100644 index 0000000..9618ca1 --- /dev/null +++ b/model_roles_representation.go @@ -0,0 +1,200 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the RolesRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolesRepresentation{} + +// RolesRepresentation struct for RolesRepresentation +type RolesRepresentation struct { + Realm []RoleRepresentation `json:"realm,omitempty"` + Client *map[string][]RoleRepresentation `json:"client,omitempty"` + // Deprecated + Application *map[string][]RoleRepresentation `json:"application,omitempty"` +} + +// NewRolesRepresentation instantiates a new RolesRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolesRepresentation() *RolesRepresentation { + this := RolesRepresentation{} + return &this +} + +// NewRolesRepresentationWithDefaults instantiates a new RolesRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolesRepresentationWithDefaults() *RolesRepresentation { + this := RolesRepresentation{} + return &this +} + +// GetRealm returns the Realm field value if set, zero value otherwise. +func (o *RolesRepresentation) GetRealm() []RoleRepresentation { + if o == nil || IsNil(o.Realm) { + var ret []RoleRepresentation + return ret + } + return o.Realm +} + +// GetRealmOk returns a tuple with the Realm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolesRepresentation) GetRealmOk() ([]RoleRepresentation, bool) { + if o == nil || IsNil(o.Realm) { + return nil, false + } + return o.Realm, true +} + +// HasRealm returns a boolean if a field has been set. +func (o *RolesRepresentation) HasRealm() bool { + if o != nil && !IsNil(o.Realm) { + return true + } + + return false +} + +// SetRealm gets a reference to the given []RoleRepresentation and assigns it to the Realm field. +func (o *RolesRepresentation) SetRealm(v []RoleRepresentation) { + o.Realm = v +} + +// GetClient returns the Client field value if set, zero value otherwise. +func (o *RolesRepresentation) GetClient() map[string][]RoleRepresentation { + if o == nil || IsNil(o.Client) { + var ret map[string][]RoleRepresentation + return ret + } + return *o.Client +} + +// GetClientOk returns a tuple with the Client field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolesRepresentation) GetClientOk() (*map[string][]RoleRepresentation, bool) { + if o == nil || IsNil(o.Client) { + return nil, false + } + return o.Client, true +} + +// HasClient returns a boolean if a field has been set. +func (o *RolesRepresentation) HasClient() bool { + if o != nil && !IsNil(o.Client) { + return true + } + + return false +} + +// SetClient gets a reference to the given map[string][]RoleRepresentation and assigns it to the Client field. +func (o *RolesRepresentation) SetClient(v map[string][]RoleRepresentation) { + o.Client = &v +} + +// GetApplication returns the Application field value if set, zero value otherwise. +// Deprecated +func (o *RolesRepresentation) GetApplication() map[string][]RoleRepresentation { + if o == nil || IsNil(o.Application) { + var ret map[string][]RoleRepresentation + return ret + } + return *o.Application +} + +// GetApplicationOk returns a tuple with the Application field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RolesRepresentation) GetApplicationOk() (*map[string][]RoleRepresentation, bool) { + if o == nil || IsNil(o.Application) { + return nil, false + } + return o.Application, true +} + +// HasApplication returns a boolean if a field has been set. +func (o *RolesRepresentation) HasApplication() bool { + if o != nil && !IsNil(o.Application) { + return true + } + + return false +} + +// SetApplication gets a reference to the given map[string][]RoleRepresentation and assigns it to the Application field. +// Deprecated +func (o *RolesRepresentation) SetApplication(v map[string][]RoleRepresentation) { + o.Application = &v +} + +func (o RolesRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolesRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Realm) { + toSerialize["realm"] = o.Realm + } + if !IsNil(o.Client) { + toSerialize["client"] = o.Client + } + if !IsNil(o.Application) { + toSerialize["application"] = o.Application + } + return toSerialize, nil +} + +type NullableRolesRepresentation struct { + value *RolesRepresentation + isSet bool +} + +func (v NullableRolesRepresentation) Get() *RolesRepresentation { + return v.value +} + +func (v *NullableRolesRepresentation) Set(val *RolesRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRolesRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRolesRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolesRepresentation(val *RolesRepresentation) *NullableRolesRepresentation { + return &NullableRolesRepresentation{value: val, isSet: true} +} + +func (v NullableRolesRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolesRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_scope_enforcement_mode.go b/model_scope_enforcement_mode.go new file mode 100644 index 0000000..0441dbd --- /dev/null +++ b/model_scope_enforcement_mode.go @@ -0,0 +1,112 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// ScopeEnforcementMode the model 'ScopeEnforcementMode' +type ScopeEnforcementMode string + +// List of ScopeEnforcementMode +const ( + SCOPE_ALL ScopeEnforcementMode = "ALL" + SCOPE_ANY ScopeEnforcementMode = "ANY" + SCOPE_DISABLED ScopeEnforcementMode = "DISABLED" +) + +// All allowed values of ScopeEnforcementMode enum +var AllowedScopeEnforcementModeEnumValues = []ScopeEnforcementMode{ + "ALL", + "ANY", + "DISABLED", +} + +func (v *ScopeEnforcementMode) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ScopeEnforcementMode(value) + for _, existing := range AllowedScopeEnforcementModeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ScopeEnforcementMode", value) +} + +// NewScopeEnforcementModeFromValue returns a pointer to a valid ScopeEnforcementMode +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewScopeEnforcementModeFromValue(v string) (*ScopeEnforcementMode, error) { + ev := ScopeEnforcementMode(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ScopeEnforcementMode: valid values are %v", v, AllowedScopeEnforcementModeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ScopeEnforcementMode) IsValid() bool { + for _, existing := range AllowedScopeEnforcementModeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ScopeEnforcementMode value +func (v ScopeEnforcementMode) Ptr() *ScopeEnforcementMode { + return &v +} + +type NullableScopeEnforcementMode struct { + value *ScopeEnforcementMode + isSet bool +} + +func (v NullableScopeEnforcementMode) Get() *ScopeEnforcementMode { + return v.value +} + +func (v *NullableScopeEnforcementMode) Set(val *ScopeEnforcementMode) { + v.value = val + v.isSet = true +} + +func (v NullableScopeEnforcementMode) IsSet() bool { + return v.isSet +} + +func (v *NullableScopeEnforcementMode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScopeEnforcementMode(val *ScopeEnforcementMode) *NullableScopeEnforcementMode { + return &NullableScopeEnforcementMode{value: val, isSet: true} +} + +func (v NullableScopeEnforcementMode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScopeEnforcementMode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_scope_mapping_representation.go b/model_scope_mapping_representation.go new file mode 100644 index 0000000..524d2ac --- /dev/null +++ b/model_scope_mapping_representation.go @@ -0,0 +1,272 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ScopeMappingRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScopeMappingRepresentation{} + +// ScopeMappingRepresentation struct for ScopeMappingRepresentation +type ScopeMappingRepresentation struct { + Self *string `json:"self,omitempty"` + Client *string `json:"client,omitempty"` + // Deprecated + ClientTemplate *string `json:"clientTemplate,omitempty"` + ClientScope *string `json:"clientScope,omitempty"` + Roles []string `json:"roles,omitempty"` +} + +// NewScopeMappingRepresentation instantiates a new ScopeMappingRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScopeMappingRepresentation() *ScopeMappingRepresentation { + this := ScopeMappingRepresentation{} + return &this +} + +// NewScopeMappingRepresentationWithDefaults instantiates a new ScopeMappingRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScopeMappingRepresentationWithDefaults() *ScopeMappingRepresentation { + this := ScopeMappingRepresentation{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ScopeMappingRepresentation) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScopeMappingRepresentation) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ScopeMappingRepresentation) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *ScopeMappingRepresentation) SetSelf(v string) { + o.Self = &v +} + +// GetClient returns the Client field value if set, zero value otherwise. +func (o *ScopeMappingRepresentation) GetClient() string { + if o == nil || IsNil(o.Client) { + var ret string + return ret + } + return *o.Client +} + +// GetClientOk returns a tuple with the Client field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScopeMappingRepresentation) GetClientOk() (*string, bool) { + if o == nil || IsNil(o.Client) { + return nil, false + } + return o.Client, true +} + +// HasClient returns a boolean if a field has been set. +func (o *ScopeMappingRepresentation) HasClient() bool { + if o != nil && !IsNil(o.Client) { + return true + } + + return false +} + +// SetClient gets a reference to the given string and assigns it to the Client field. +func (o *ScopeMappingRepresentation) SetClient(v string) { + o.Client = &v +} + +// GetClientTemplate returns the ClientTemplate field value if set, zero value otherwise. +// Deprecated +func (o *ScopeMappingRepresentation) GetClientTemplate() string { + if o == nil || IsNil(o.ClientTemplate) { + var ret string + return ret + } + return *o.ClientTemplate +} + +// GetClientTemplateOk returns a tuple with the ClientTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *ScopeMappingRepresentation) GetClientTemplateOk() (*string, bool) { + if o == nil || IsNil(o.ClientTemplate) { + return nil, false + } + return o.ClientTemplate, true +} + +// HasClientTemplate returns a boolean if a field has been set. +func (o *ScopeMappingRepresentation) HasClientTemplate() bool { + if o != nil && !IsNil(o.ClientTemplate) { + return true + } + + return false +} + +// SetClientTemplate gets a reference to the given string and assigns it to the ClientTemplate field. +// Deprecated +func (o *ScopeMappingRepresentation) SetClientTemplate(v string) { + o.ClientTemplate = &v +} + +// GetClientScope returns the ClientScope field value if set, zero value otherwise. +func (o *ScopeMappingRepresentation) GetClientScope() string { + if o == nil || IsNil(o.ClientScope) { + var ret string + return ret + } + return *o.ClientScope +} + +// GetClientScopeOk returns a tuple with the ClientScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScopeMappingRepresentation) GetClientScopeOk() (*string, bool) { + if o == nil || IsNil(o.ClientScope) { + return nil, false + } + return o.ClientScope, true +} + +// HasClientScope returns a boolean if a field has been set. +func (o *ScopeMappingRepresentation) HasClientScope() bool { + if o != nil && !IsNil(o.ClientScope) { + return true + } + + return false +} + +// SetClientScope gets a reference to the given string and assigns it to the ClientScope field. +func (o *ScopeMappingRepresentation) SetClientScope(v string) { + o.ClientScope = &v +} + +// GetRoles returns the Roles field value if set, zero value otherwise. +func (o *ScopeMappingRepresentation) GetRoles() []string { + if o == nil || IsNil(o.Roles) { + var ret []string + 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 *ScopeMappingRepresentation) GetRolesOk() ([]string, 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 *ScopeMappingRepresentation) HasRoles() bool { + if o != nil && !IsNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []string and assigns it to the Roles field. +func (o *ScopeMappingRepresentation) SetRoles(v []string) { + o.Roles = v +} + +func (o ScopeMappingRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScopeMappingRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Client) { + toSerialize["client"] = o.Client + } + if !IsNil(o.ClientTemplate) { + toSerialize["clientTemplate"] = o.ClientTemplate + } + if !IsNil(o.ClientScope) { + toSerialize["clientScope"] = o.ClientScope + } + if !IsNil(o.Roles) { + toSerialize["roles"] = o.Roles + } + return toSerialize, nil +} + +type NullableScopeMappingRepresentation struct { + value *ScopeMappingRepresentation + isSet bool +} + +func (v NullableScopeMappingRepresentation) Get() *ScopeMappingRepresentation { + return v.value +} + +func (v *NullableScopeMappingRepresentation) Set(val *ScopeMappingRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableScopeMappingRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableScopeMappingRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScopeMappingRepresentation(val *ScopeMappingRepresentation) *NullableScopeMappingRepresentation { + return &NullableScopeMappingRepresentation{value: val, isSet: true} +} + +func (v NullableScopeMappingRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScopeMappingRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_scope_representation.go b/model_scope_representation.go new file mode 100644 index 0000000..cedac7b --- /dev/null +++ b/model_scope_representation.go @@ -0,0 +1,304 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the ScopeRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScopeRepresentation{} + +// ScopeRepresentation struct for ScopeRepresentation +type ScopeRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + IconUri *string `json:"iconUri,omitempty"` + Policies []PolicyRepresentation `json:"policies,omitempty"` + Resources []ResourceRepresentation `json:"resources,omitempty"` + DisplayName *string `json:"displayName,omitempty"` +} + +// NewScopeRepresentation instantiates a new ScopeRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScopeRepresentation() *ScopeRepresentation { + this := ScopeRepresentation{} + return &this +} + +// NewScopeRepresentationWithDefaults instantiates a new ScopeRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScopeRepresentationWithDefaults() *ScopeRepresentation { + this := ScopeRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ScopeRepresentation) 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 *ScopeRepresentation) 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 *ScopeRepresentation) 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 *ScopeRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ScopeRepresentation) 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 *ScopeRepresentation) 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 *ScopeRepresentation) 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 *ScopeRepresentation) SetName(v string) { + o.Name = &v +} + +// GetIconUri returns the IconUri field value if set, zero value otherwise. +func (o *ScopeRepresentation) GetIconUri() string { + if o == nil || IsNil(o.IconUri) { + var ret string + return ret + } + return *o.IconUri +} + +// GetIconUriOk returns a tuple with the IconUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScopeRepresentation) GetIconUriOk() (*string, bool) { + if o == nil || IsNil(o.IconUri) { + return nil, false + } + return o.IconUri, true +} + +// HasIconUri returns a boolean if a field has been set. +func (o *ScopeRepresentation) HasIconUri() bool { + if o != nil && !IsNil(o.IconUri) { + return true + } + + return false +} + +// SetIconUri gets a reference to the given string and assigns it to the IconUri field. +func (o *ScopeRepresentation) SetIconUri(v string) { + o.IconUri = &v +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *ScopeRepresentation) GetPolicies() []PolicyRepresentation { + if o == nil || IsNil(o.Policies) { + var ret []PolicyRepresentation + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScopeRepresentation) GetPoliciesOk() ([]PolicyRepresentation, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *ScopeRepresentation) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []PolicyRepresentation and assigns it to the Policies field. +func (o *ScopeRepresentation) SetPolicies(v []PolicyRepresentation) { + o.Policies = v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ScopeRepresentation) GetResources() []ResourceRepresentation { + if o == nil || IsNil(o.Resources) { + var ret []ResourceRepresentation + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScopeRepresentation) GetResourcesOk() ([]ResourceRepresentation, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ScopeRepresentation) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ResourceRepresentation and assigns it to the Resources field. +func (o *ScopeRepresentation) SetResources(v []ResourceRepresentation) { + o.Resources = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ScopeRepresentation) 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 *ScopeRepresentation) 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 *ScopeRepresentation) 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 *ScopeRepresentation) SetDisplayName(v string) { + o.DisplayName = &v +} + +func (o ScopeRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScopeRepresentation) 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.IconUri) { + toSerialize["iconUri"] = o.IconUri + } + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + return toSerialize, nil +} + +type NullableScopeRepresentation struct { + value *ScopeRepresentation + isSet bool +} + +func (v NullableScopeRepresentation) Get() *ScopeRepresentation { + return v.value +} + +func (v *NullableScopeRepresentation) Set(val *ScopeRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableScopeRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableScopeRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScopeRepresentation(val *ScopeRepresentation) *NullableScopeRepresentation { + return &NullableScopeRepresentation{value: val, isSet: true} +} + +func (v NullableScopeRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScopeRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_social_link_representation.go b/model_social_link_representation.go new file mode 100644 index 0000000..8dec8c4 --- /dev/null +++ b/model_social_link_representation.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the SocialLinkRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SocialLinkRepresentation{} + +// SocialLinkRepresentation struct for SocialLinkRepresentation +type SocialLinkRepresentation struct { + SocialProvider *string `json:"socialProvider,omitempty"` + SocialUserId *string `json:"socialUserId,omitempty"` + SocialUsername *string `json:"socialUsername,omitempty"` +} + +// NewSocialLinkRepresentation instantiates a new SocialLinkRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSocialLinkRepresentation() *SocialLinkRepresentation { + this := SocialLinkRepresentation{} + return &this +} + +// NewSocialLinkRepresentationWithDefaults instantiates a new SocialLinkRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSocialLinkRepresentationWithDefaults() *SocialLinkRepresentation { + this := SocialLinkRepresentation{} + return &this +} + +// GetSocialProvider returns the SocialProvider field value if set, zero value otherwise. +func (o *SocialLinkRepresentation) GetSocialProvider() string { + if o == nil || IsNil(o.SocialProvider) { + var ret string + return ret + } + return *o.SocialProvider +} + +// GetSocialProviderOk returns a tuple with the SocialProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SocialLinkRepresentation) GetSocialProviderOk() (*string, bool) { + if o == nil || IsNil(o.SocialProvider) { + return nil, false + } + return o.SocialProvider, true +} + +// HasSocialProvider returns a boolean if a field has been set. +func (o *SocialLinkRepresentation) HasSocialProvider() bool { + if o != nil && !IsNil(o.SocialProvider) { + return true + } + + return false +} + +// SetSocialProvider gets a reference to the given string and assigns it to the SocialProvider field. +func (o *SocialLinkRepresentation) SetSocialProvider(v string) { + o.SocialProvider = &v +} + +// GetSocialUserId returns the SocialUserId field value if set, zero value otherwise. +func (o *SocialLinkRepresentation) GetSocialUserId() string { + if o == nil || IsNil(o.SocialUserId) { + var ret string + return ret + } + return *o.SocialUserId +} + +// GetSocialUserIdOk returns a tuple with the SocialUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SocialLinkRepresentation) GetSocialUserIdOk() (*string, bool) { + if o == nil || IsNil(o.SocialUserId) { + return nil, false + } + return o.SocialUserId, true +} + +// HasSocialUserId returns a boolean if a field has been set. +func (o *SocialLinkRepresentation) HasSocialUserId() bool { + if o != nil && !IsNil(o.SocialUserId) { + return true + } + + return false +} + +// SetSocialUserId gets a reference to the given string and assigns it to the SocialUserId field. +func (o *SocialLinkRepresentation) SetSocialUserId(v string) { + o.SocialUserId = &v +} + +// GetSocialUsername returns the SocialUsername field value if set, zero value otherwise. +func (o *SocialLinkRepresentation) GetSocialUsername() string { + if o == nil || IsNil(o.SocialUsername) { + var ret string + return ret + } + return *o.SocialUsername +} + +// GetSocialUsernameOk returns a tuple with the SocialUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SocialLinkRepresentation) GetSocialUsernameOk() (*string, bool) { + if o == nil || IsNil(o.SocialUsername) { + return nil, false + } + return o.SocialUsername, true +} + +// HasSocialUsername returns a boolean if a field has been set. +func (o *SocialLinkRepresentation) HasSocialUsername() bool { + if o != nil && !IsNil(o.SocialUsername) { + return true + } + + return false +} + +// SetSocialUsername gets a reference to the given string and assigns it to the SocialUsername field. +func (o *SocialLinkRepresentation) SetSocialUsername(v string) { + o.SocialUsername = &v +} + +func (o SocialLinkRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SocialLinkRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SocialProvider) { + toSerialize["socialProvider"] = o.SocialProvider + } + if !IsNil(o.SocialUserId) { + toSerialize["socialUserId"] = o.SocialUserId + } + if !IsNil(o.SocialUsername) { + toSerialize["socialUsername"] = o.SocialUsername + } + return toSerialize, nil +} + +type NullableSocialLinkRepresentation struct { + value *SocialLinkRepresentation + isSet bool +} + +func (v NullableSocialLinkRepresentation) Get() *SocialLinkRepresentation { + return v.value +} + +func (v *NullableSocialLinkRepresentation) Set(val *SocialLinkRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableSocialLinkRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableSocialLinkRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSocialLinkRepresentation(val *SocialLinkRepresentation) *NullableSocialLinkRepresentation { + return &NullableSocialLinkRepresentation{value: val, isSet: true} +} + +func (v NullableSocialLinkRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSocialLinkRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_unmanaged_attribute_policy.go b/model_unmanaged_attribute_policy.go new file mode 100644 index 0000000..df83f85 --- /dev/null +++ b/model_unmanaged_attribute_policy.go @@ -0,0 +1,112 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" + "fmt" +) + +// UnmanagedAttributePolicy the model 'UnmanagedAttributePolicy' +type UnmanagedAttributePolicy string + +// List of UnmanagedAttributePolicy +const ( + ENABLED UnmanagedAttributePolicy = "ENABLED" + ADMIN_VIEW UnmanagedAttributePolicy = "ADMIN_VIEW" + ADMIN_EDIT UnmanagedAttributePolicy = "ADMIN_EDIT" +) + +// All allowed values of UnmanagedAttributePolicy enum +var AllowedUnmanagedAttributePolicyEnumValues = []UnmanagedAttributePolicy{ + "ENABLED", + "ADMIN_VIEW", + "ADMIN_EDIT", +} + +func (v *UnmanagedAttributePolicy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := UnmanagedAttributePolicy(value) + for _, existing := range AllowedUnmanagedAttributePolicyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid UnmanagedAttributePolicy", value) +} + +// NewUnmanagedAttributePolicyFromValue returns a pointer to a valid UnmanagedAttributePolicy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewUnmanagedAttributePolicyFromValue(v string) (*UnmanagedAttributePolicy, error) { + ev := UnmanagedAttributePolicy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for UnmanagedAttributePolicy: valid values are %v", v, AllowedUnmanagedAttributePolicyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v UnmanagedAttributePolicy) IsValid() bool { + for _, existing := range AllowedUnmanagedAttributePolicyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to UnmanagedAttributePolicy value +func (v UnmanagedAttributePolicy) Ptr() *UnmanagedAttributePolicy { + return &v +} + +type NullableUnmanagedAttributePolicy struct { + value *UnmanagedAttributePolicy + isSet bool +} + +func (v NullableUnmanagedAttributePolicy) Get() *UnmanagedAttributePolicy { + return v.value +} + +func (v *NullableUnmanagedAttributePolicy) Set(val *UnmanagedAttributePolicy) { + v.value = val + v.isSet = true +} + +func (v NullableUnmanagedAttributePolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableUnmanagedAttributePolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUnmanagedAttributePolicy(val *UnmanagedAttributePolicy) *NullableUnmanagedAttributePolicy { + return &NullableUnmanagedAttributePolicy{value: val, isSet: true} +} + +func (v NullableUnmanagedAttributePolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUnmanagedAttributePolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_up_attribute.go b/model_up_attribute.go new file mode 100644 index 0000000..9b49a5d --- /dev/null +++ b/model_up_attribute.go @@ -0,0 +1,412 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UPAttribute type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UPAttribute{} + +// UPAttribute struct for UPAttribute +type UPAttribute struct { + Name *string `json:"name,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Validations *map[string]map[string]interface{} `json:"validations,omitempty"` + Annotations map[string]interface{} `json:"annotations,omitempty"` + Required *UPAttributeRequired `json:"required,omitempty"` + Permissions *UPAttributePermissions `json:"permissions,omitempty"` + Selector *UPAttributeSelector `json:"selector,omitempty"` + Group *string `json:"group,omitempty"` + Multivalued *bool `json:"multivalued,omitempty"` +} + +// NewUPAttribute instantiates a new UPAttribute object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUPAttribute() *UPAttribute { + this := UPAttribute{} + return &this +} + +// NewUPAttributeWithDefaults instantiates a new UPAttribute object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUPAttributeWithDefaults() *UPAttribute { + this := UPAttribute{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UPAttribute) 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 *UPAttribute) 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 *UPAttribute) 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 *UPAttribute) SetName(v string) { + o.Name = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *UPAttribute) 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 *UPAttribute) 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 *UPAttribute) 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 *UPAttribute) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetValidations returns the Validations field value if set, zero value otherwise. +func (o *UPAttribute) GetValidations() map[string]map[string]interface{} { + if o == nil || IsNil(o.Validations) { + var ret map[string]map[string]interface{} + return ret + } + return *o.Validations +} + +// GetValidationsOk returns a tuple with the Validations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttribute) GetValidationsOk() (*map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.Validations) { + return nil, false + } + return o.Validations, true +} + +// HasValidations returns a boolean if a field has been set. +func (o *UPAttribute) HasValidations() bool { + if o != nil && !IsNil(o.Validations) { + return true + } + + return false +} + +// SetValidations gets a reference to the given map[string]map[string]interface{} and assigns it to the Validations field. +func (o *UPAttribute) SetValidations(v map[string]map[string]interface{}) { + o.Validations = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UPAttribute) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttribute) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UPAttribute) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UPAttribute) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *UPAttribute) GetRequired() UPAttributeRequired { + if o == nil || IsNil(o.Required) { + var ret UPAttributeRequired + 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 *UPAttribute) GetRequiredOk() (*UPAttributeRequired, 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 *UPAttribute) HasRequired() bool { + if o != nil && !IsNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given UPAttributeRequired and assigns it to the Required field. +func (o *UPAttribute) SetRequired(v UPAttributeRequired) { + o.Required = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *UPAttribute) GetPermissions() UPAttributePermissions { + if o == nil || IsNil(o.Permissions) { + var ret UPAttributePermissions + 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 *UPAttribute) GetPermissionsOk() (*UPAttributePermissions, 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 *UPAttribute) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given UPAttributePermissions and assigns it to the Permissions field. +func (o *UPAttribute) SetPermissions(v UPAttributePermissions) { + o.Permissions = &v +} + +// GetSelector returns the Selector field value if set, zero value otherwise. +func (o *UPAttribute) GetSelector() UPAttributeSelector { + if o == nil || IsNil(o.Selector) { + var ret UPAttributeSelector + return ret + } + return *o.Selector +} + +// GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttribute) GetSelectorOk() (*UPAttributeSelector, bool) { + if o == nil || IsNil(o.Selector) { + return nil, false + } + return o.Selector, true +} + +// HasSelector returns a boolean if a field has been set. +func (o *UPAttribute) HasSelector() bool { + if o != nil && !IsNil(o.Selector) { + return true + } + + return false +} + +// SetSelector gets a reference to the given UPAttributeSelector and assigns it to the Selector field. +func (o *UPAttribute) SetSelector(v UPAttributeSelector) { + o.Selector = &v +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *UPAttribute) GetGroup() string { + if o == nil || IsNil(o.Group) { + var ret string + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttribute) GetGroupOk() (*string, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *UPAttribute) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given string and assigns it to the Group field. +func (o *UPAttribute) SetGroup(v string) { + o.Group = &v +} + +// GetMultivalued returns the Multivalued field value if set, zero value otherwise. +func (o *UPAttribute) GetMultivalued() bool { + if o == nil || IsNil(o.Multivalued) { + var ret bool + return ret + } + return *o.Multivalued +} + +// GetMultivaluedOk returns a tuple with the Multivalued field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttribute) GetMultivaluedOk() (*bool, bool) { + if o == nil || IsNil(o.Multivalued) { + return nil, false + } + return o.Multivalued, true +} + +// HasMultivalued returns a boolean if a field has been set. +func (o *UPAttribute) HasMultivalued() bool { + if o != nil && !IsNil(o.Multivalued) { + return true + } + + return false +} + +// SetMultivalued gets a reference to the given bool and assigns it to the Multivalued field. +func (o *UPAttribute) SetMultivalued(v bool) { + o.Multivalued = &v +} + +func (o UPAttribute) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UPAttribute) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.Validations) { + toSerialize["validations"] = o.Validations + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Required) { + toSerialize["required"] = o.Required + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } + if !IsNil(o.Selector) { + toSerialize["selector"] = o.Selector + } + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.Multivalued) { + toSerialize["multivalued"] = o.Multivalued + } + return toSerialize, nil +} + +type NullableUPAttribute struct { + value *UPAttribute + isSet bool +} + +func (v NullableUPAttribute) Get() *UPAttribute { + return v.value +} + +func (v *NullableUPAttribute) Set(val *UPAttribute) { + v.value = val + v.isSet = true +} + +func (v NullableUPAttribute) IsSet() bool { + return v.isSet +} + +func (v *NullableUPAttribute) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUPAttribute(val *UPAttribute) *NullableUPAttribute { + return &NullableUPAttribute{value: val, isSet: true} +} + +func (v NullableUPAttribute) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUPAttribute) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_up_attribute_permissions.go b/model_up_attribute_permissions.go new file mode 100644 index 0000000..b7abc5d --- /dev/null +++ b/model_up_attribute_permissions.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UPAttributePermissions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UPAttributePermissions{} + +// UPAttributePermissions struct for UPAttributePermissions +type UPAttributePermissions struct { + View []string `json:"view,omitempty"` + Edit []string `json:"edit,omitempty"` +} + +// NewUPAttributePermissions instantiates a new UPAttributePermissions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUPAttributePermissions() *UPAttributePermissions { + this := UPAttributePermissions{} + return &this +} + +// NewUPAttributePermissionsWithDefaults instantiates a new UPAttributePermissions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUPAttributePermissionsWithDefaults() *UPAttributePermissions { + this := UPAttributePermissions{} + return &this +} + +// GetView returns the View field value if set, zero value otherwise. +func (o *UPAttributePermissions) GetView() []string { + if o == nil || IsNil(o.View) { + var ret []string + return ret + } + return o.View +} + +// GetViewOk returns a tuple with the View field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttributePermissions) GetViewOk() ([]string, bool) { + if o == nil || IsNil(o.View) { + return nil, false + } + return o.View, true +} + +// HasView returns a boolean if a field has been set. +func (o *UPAttributePermissions) HasView() bool { + if o != nil && !IsNil(o.View) { + return true + } + + return false +} + +// SetView gets a reference to the given []string and assigns it to the View field. +func (o *UPAttributePermissions) SetView(v []string) { + o.View = v +} + +// GetEdit returns the Edit field value if set, zero value otherwise. +func (o *UPAttributePermissions) GetEdit() []string { + if o == nil || IsNil(o.Edit) { + var ret []string + return ret + } + return o.Edit +} + +// GetEditOk returns a tuple with the Edit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttributePermissions) GetEditOk() ([]string, bool) { + if o == nil || IsNil(o.Edit) { + return nil, false + } + return o.Edit, true +} + +// HasEdit returns a boolean if a field has been set. +func (o *UPAttributePermissions) HasEdit() bool { + if o != nil && !IsNil(o.Edit) { + return true + } + + return false +} + +// SetEdit gets a reference to the given []string and assigns it to the Edit field. +func (o *UPAttributePermissions) SetEdit(v []string) { + o.Edit = v +} + +func (o UPAttributePermissions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UPAttributePermissions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.View) { + toSerialize["view"] = o.View + } + if !IsNil(o.Edit) { + toSerialize["edit"] = o.Edit + } + return toSerialize, nil +} + +type NullableUPAttributePermissions struct { + value *UPAttributePermissions + isSet bool +} + +func (v NullableUPAttributePermissions) Get() *UPAttributePermissions { + return v.value +} + +func (v *NullableUPAttributePermissions) Set(val *UPAttributePermissions) { + v.value = val + v.isSet = true +} + +func (v NullableUPAttributePermissions) IsSet() bool { + return v.isSet +} + +func (v *NullableUPAttributePermissions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUPAttributePermissions(val *UPAttributePermissions) *NullableUPAttributePermissions { + return &NullableUPAttributePermissions{value: val, isSet: true} +} + +func (v NullableUPAttributePermissions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUPAttributePermissions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_up_attribute_required.go b/model_up_attribute_required.go new file mode 100644 index 0000000..1c2bc5a --- /dev/null +++ b/model_up_attribute_required.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UPAttributeRequired type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UPAttributeRequired{} + +// UPAttributeRequired struct for UPAttributeRequired +type UPAttributeRequired struct { + Roles []string `json:"roles,omitempty"` + Scopes []string `json:"scopes,omitempty"` +} + +// NewUPAttributeRequired instantiates a new UPAttributeRequired object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUPAttributeRequired() *UPAttributeRequired { + this := UPAttributeRequired{} + return &this +} + +// NewUPAttributeRequiredWithDefaults instantiates a new UPAttributeRequired object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUPAttributeRequiredWithDefaults() *UPAttributeRequired { + this := UPAttributeRequired{} + return &this +} + +// GetRoles returns the Roles field value if set, zero value otherwise. +func (o *UPAttributeRequired) GetRoles() []string { + if o == nil || IsNil(o.Roles) { + var ret []string + 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 *UPAttributeRequired) GetRolesOk() ([]string, 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 *UPAttributeRequired) HasRoles() bool { + if o != nil && !IsNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []string and assigns it to the Roles field. +func (o *UPAttributeRequired) SetRoles(v []string) { + o.Roles = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *UPAttributeRequired) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttributeRequired) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *UPAttributeRequired) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *UPAttributeRequired) SetScopes(v []string) { + o.Scopes = v +} + +func (o UPAttributeRequired) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UPAttributeRequired) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Roles) { + toSerialize["roles"] = o.Roles + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + return toSerialize, nil +} + +type NullableUPAttributeRequired struct { + value *UPAttributeRequired + isSet bool +} + +func (v NullableUPAttributeRequired) Get() *UPAttributeRequired { + return v.value +} + +func (v *NullableUPAttributeRequired) Set(val *UPAttributeRequired) { + v.value = val + v.isSet = true +} + +func (v NullableUPAttributeRequired) IsSet() bool { + return v.isSet +} + +func (v *NullableUPAttributeRequired) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUPAttributeRequired(val *UPAttributeRequired) *NullableUPAttributeRequired { + return &NullableUPAttributeRequired{value: val, isSet: true} +} + +func (v NullableUPAttributeRequired) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUPAttributeRequired) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_up_attribute_selector.go b/model_up_attribute_selector.go new file mode 100644 index 0000000..d0845c5 --- /dev/null +++ b/model_up_attribute_selector.go @@ -0,0 +1,124 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UPAttributeSelector type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UPAttributeSelector{} + +// UPAttributeSelector struct for UPAttributeSelector +type UPAttributeSelector struct { + Scopes []string `json:"scopes,omitempty"` +} + +// NewUPAttributeSelector instantiates a new UPAttributeSelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUPAttributeSelector() *UPAttributeSelector { + this := UPAttributeSelector{} + return &this +} + +// NewUPAttributeSelectorWithDefaults instantiates a new UPAttributeSelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUPAttributeSelectorWithDefaults() *UPAttributeSelector { + this := UPAttributeSelector{} + return &this +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *UPAttributeSelector) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPAttributeSelector) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *UPAttributeSelector) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *UPAttributeSelector) SetScopes(v []string) { + o.Scopes = v +} + +func (o UPAttributeSelector) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UPAttributeSelector) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + return toSerialize, nil +} + +type NullableUPAttributeSelector struct { + value *UPAttributeSelector + isSet bool +} + +func (v NullableUPAttributeSelector) Get() *UPAttributeSelector { + return v.value +} + +func (v *NullableUPAttributeSelector) Set(val *UPAttributeSelector) { + v.value = val + v.isSet = true +} + +func (v NullableUPAttributeSelector) IsSet() bool { + return v.isSet +} + +func (v *NullableUPAttributeSelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUPAttributeSelector(val *UPAttributeSelector) *NullableUPAttributeSelector { + return &NullableUPAttributeSelector{value: val, isSet: true} +} + +func (v NullableUPAttributeSelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUPAttributeSelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_up_config.go b/model_up_config.go new file mode 100644 index 0000000..176d44a --- /dev/null +++ b/model_up_config.go @@ -0,0 +1,196 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UPConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UPConfig{} + +// UPConfig struct for UPConfig +type UPConfig struct { + Attributes []UPAttribute `json:"attributes,omitempty"` + Groups []UPGroup `json:"groups,omitempty"` + UnmanagedAttributePolicy *UnmanagedAttributePolicy `json:"unmanagedAttributePolicy,omitempty"` +} + +// NewUPConfig instantiates a new UPConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUPConfig() *UPConfig { + this := UPConfig{} + return &this +} + +// NewUPConfigWithDefaults instantiates a new UPConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUPConfigWithDefaults() *UPConfig { + this := UPConfig{} + return &this +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *UPConfig) GetAttributes() []UPAttribute { + if o == nil || IsNil(o.Attributes) { + var ret []UPAttribute + return ret + } + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPConfig) GetAttributesOk() ([]UPAttribute, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *UPConfig) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given []UPAttribute and assigns it to the Attributes field. +func (o *UPConfig) SetAttributes(v []UPAttribute) { + o.Attributes = v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *UPConfig) GetGroups() []UPGroup { + if o == nil || IsNil(o.Groups) { + var ret []UPGroup + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPConfig) GetGroupsOk() ([]UPGroup, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *UPConfig) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []UPGroup and assigns it to the Groups field. +func (o *UPConfig) SetGroups(v []UPGroup) { + o.Groups = v +} + +// GetUnmanagedAttributePolicy returns the UnmanagedAttributePolicy field value if set, zero value otherwise. +func (o *UPConfig) GetUnmanagedAttributePolicy() UnmanagedAttributePolicy { + if o == nil || IsNil(o.UnmanagedAttributePolicy) { + var ret UnmanagedAttributePolicy + return ret + } + return *o.UnmanagedAttributePolicy +} + +// GetUnmanagedAttributePolicyOk returns a tuple with the UnmanagedAttributePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPConfig) GetUnmanagedAttributePolicyOk() (*UnmanagedAttributePolicy, bool) { + if o == nil || IsNil(o.UnmanagedAttributePolicy) { + return nil, false + } + return o.UnmanagedAttributePolicy, true +} + +// HasUnmanagedAttributePolicy returns a boolean if a field has been set. +func (o *UPConfig) HasUnmanagedAttributePolicy() bool { + if o != nil && !IsNil(o.UnmanagedAttributePolicy) { + return true + } + + return false +} + +// SetUnmanagedAttributePolicy gets a reference to the given UnmanagedAttributePolicy and assigns it to the UnmanagedAttributePolicy field. +func (o *UPConfig) SetUnmanagedAttributePolicy(v UnmanagedAttributePolicy) { + o.UnmanagedAttributePolicy = &v +} + +func (o UPConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UPConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.UnmanagedAttributePolicy) { + toSerialize["unmanagedAttributePolicy"] = o.UnmanagedAttributePolicy + } + return toSerialize, nil +} + +type NullableUPConfig struct { + value *UPConfig + isSet bool +} + +func (v NullableUPConfig) Get() *UPConfig { + return v.value +} + +func (v *NullableUPConfig) Set(val *UPConfig) { + v.value = val + v.isSet = true +} + +func (v NullableUPConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableUPConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUPConfig(val *UPConfig) *NullableUPConfig { + return &NullableUPConfig{value: val, isSet: true} +} + +func (v NullableUPConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUPConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_up_group.go b/model_up_group.go new file mode 100644 index 0000000..c860a75 --- /dev/null +++ b/model_up_group.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UPGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UPGroup{} + +// UPGroup struct for UPGroup +type UPGroup struct { + Name *string `json:"name,omitempty"` + DisplayHeader *string `json:"displayHeader,omitempty"` + DisplayDescription *string `json:"displayDescription,omitempty"` + Annotations map[string]interface{} `json:"annotations,omitempty"` +} + +// NewUPGroup instantiates a new UPGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUPGroup() *UPGroup { + this := UPGroup{} + return &this +} + +// NewUPGroupWithDefaults instantiates a new UPGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUPGroupWithDefaults() *UPGroup { + this := UPGroup{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UPGroup) 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 *UPGroup) 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 *UPGroup) 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 *UPGroup) SetName(v string) { + o.Name = &v +} + +// GetDisplayHeader returns the DisplayHeader field value if set, zero value otherwise. +func (o *UPGroup) GetDisplayHeader() string { + if o == nil || IsNil(o.DisplayHeader) { + var ret string + return ret + } + return *o.DisplayHeader +} + +// GetDisplayHeaderOk returns a tuple with the DisplayHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPGroup) GetDisplayHeaderOk() (*string, bool) { + if o == nil || IsNil(o.DisplayHeader) { + return nil, false + } + return o.DisplayHeader, true +} + +// HasDisplayHeader returns a boolean if a field has been set. +func (o *UPGroup) HasDisplayHeader() bool { + if o != nil && !IsNil(o.DisplayHeader) { + return true + } + + return false +} + +// SetDisplayHeader gets a reference to the given string and assigns it to the DisplayHeader field. +func (o *UPGroup) SetDisplayHeader(v string) { + o.DisplayHeader = &v +} + +// GetDisplayDescription returns the DisplayDescription field value if set, zero value otherwise. +func (o *UPGroup) GetDisplayDescription() string { + if o == nil || IsNil(o.DisplayDescription) { + var ret string + return ret + } + return *o.DisplayDescription +} + +// GetDisplayDescriptionOk returns a tuple with the DisplayDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPGroup) GetDisplayDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.DisplayDescription) { + return nil, false + } + return o.DisplayDescription, true +} + +// HasDisplayDescription returns a boolean if a field has been set. +func (o *UPGroup) HasDisplayDescription() bool { + if o != nil && !IsNil(o.DisplayDescription) { + return true + } + + return false +} + +// SetDisplayDescription gets a reference to the given string and assigns it to the DisplayDescription field. +func (o *UPGroup) SetDisplayDescription(v string) { + o.DisplayDescription = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UPGroup) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UPGroup) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UPGroup) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UPGroup) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +func (o UPGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UPGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.DisplayHeader) { + toSerialize["displayHeader"] = o.DisplayHeader + } + if !IsNil(o.DisplayDescription) { + toSerialize["displayDescription"] = o.DisplayDescription + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + return toSerialize, nil +} + +type NullableUPGroup struct { + value *UPGroup + isSet bool +} + +func (v NullableUPGroup) Get() *UPGroup { + return v.value +} + +func (v *NullableUPGroup) Set(val *UPGroup) { + v.value = val + v.isSet = true +} + +func (v NullableUPGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableUPGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUPGroup(val *UPGroup) *NullableUPGroup { + return &NullableUPGroup{value: val, isSet: true} +} + +func (v NullableUPGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUPGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_consent_representation.go b/model_user_consent_representation.go new file mode 100644 index 0000000..7fbc5dc --- /dev/null +++ b/model_user_consent_representation.go @@ -0,0 +1,272 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserConsentRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserConsentRepresentation{} + +// UserConsentRepresentation struct for UserConsentRepresentation +type UserConsentRepresentation struct { + ClientId *string `json:"clientId,omitempty"` + GrantedClientScopes []string `json:"grantedClientScopes,omitempty"` + CreatedDate *int64 `json:"createdDate,omitempty"` + LastUpdatedDate *int64 `json:"lastUpdatedDate,omitempty"` + // Deprecated + GrantedRealmRoles []string `json:"grantedRealmRoles,omitempty"` +} + +// NewUserConsentRepresentation instantiates a new UserConsentRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserConsentRepresentation() *UserConsentRepresentation { + this := UserConsentRepresentation{} + return &this +} + +// NewUserConsentRepresentationWithDefaults instantiates a new UserConsentRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserConsentRepresentationWithDefaults() *UserConsentRepresentation { + this := UserConsentRepresentation{} + return &this +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *UserConsentRepresentation) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserConsentRepresentation) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *UserConsentRepresentation) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *UserConsentRepresentation) SetClientId(v string) { + o.ClientId = &v +} + +// GetGrantedClientScopes returns the GrantedClientScopes field value if set, zero value otherwise. +func (o *UserConsentRepresentation) GetGrantedClientScopes() []string { + if o == nil || IsNil(o.GrantedClientScopes) { + var ret []string + return ret + } + return o.GrantedClientScopes +} + +// GetGrantedClientScopesOk returns a tuple with the GrantedClientScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserConsentRepresentation) GetGrantedClientScopesOk() ([]string, bool) { + if o == nil || IsNil(o.GrantedClientScopes) { + return nil, false + } + return o.GrantedClientScopes, true +} + +// HasGrantedClientScopes returns a boolean if a field has been set. +func (o *UserConsentRepresentation) HasGrantedClientScopes() bool { + if o != nil && !IsNil(o.GrantedClientScopes) { + return true + } + + return false +} + +// SetGrantedClientScopes gets a reference to the given []string and assigns it to the GrantedClientScopes field. +func (o *UserConsentRepresentation) SetGrantedClientScopes(v []string) { + o.GrantedClientScopes = v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *UserConsentRepresentation) GetCreatedDate() int64 { + if o == nil || IsNil(o.CreatedDate) { + var ret int64 + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserConsentRepresentation) GetCreatedDateOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *UserConsentRepresentation) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given int64 and assigns it to the CreatedDate field. +func (o *UserConsentRepresentation) SetCreatedDate(v int64) { + o.CreatedDate = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *UserConsentRepresentation) GetLastUpdatedDate() int64 { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret int64 + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserConsentRepresentation) GetLastUpdatedDateOk() (*int64, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *UserConsentRepresentation) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given int64 and assigns it to the LastUpdatedDate field. +func (o *UserConsentRepresentation) SetLastUpdatedDate(v int64) { + o.LastUpdatedDate = &v +} + +// GetGrantedRealmRoles returns the GrantedRealmRoles field value if set, zero value otherwise. +// Deprecated +func (o *UserConsentRepresentation) GetGrantedRealmRoles() []string { + if o == nil || IsNil(o.GrantedRealmRoles) { + var ret []string + return ret + } + return o.GrantedRealmRoles +} + +// GetGrantedRealmRolesOk returns a tuple with the GrantedRealmRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UserConsentRepresentation) GetGrantedRealmRolesOk() ([]string, bool) { + if o == nil || IsNil(o.GrantedRealmRoles) { + return nil, false + } + return o.GrantedRealmRoles, true +} + +// HasGrantedRealmRoles returns a boolean if a field has been set. +func (o *UserConsentRepresentation) HasGrantedRealmRoles() bool { + if o != nil && !IsNil(o.GrantedRealmRoles) { + return true + } + + return false +} + +// SetGrantedRealmRoles gets a reference to the given []string and assigns it to the GrantedRealmRoles field. +// Deprecated +func (o *UserConsentRepresentation) SetGrantedRealmRoles(v []string) { + o.GrantedRealmRoles = v +} + +func (o UserConsentRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserConsentRepresentation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.GrantedClientScopes) { + toSerialize["grantedClientScopes"] = o.GrantedClientScopes + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.GrantedRealmRoles) { + toSerialize["grantedRealmRoles"] = o.GrantedRealmRoles + } + return toSerialize, nil +} + +type NullableUserConsentRepresentation struct { + value *UserConsentRepresentation + isSet bool +} + +func (v NullableUserConsentRepresentation) Get() *UserConsentRepresentation { + return v.value +} + +func (v *NullableUserConsentRepresentation) Set(val *UserConsentRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableUserConsentRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableUserConsentRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserConsentRepresentation(val *UserConsentRepresentation) *NullableUserConsentRepresentation { + return &NullableUserConsentRepresentation{value: val, isSet: true} +} + +func (v NullableUserConsentRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserConsentRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_federation_mapper_representation.go b/model_user_federation_mapper_representation.go new file mode 100644 index 0000000..6d26aa4 --- /dev/null +++ b/model_user_federation_mapper_representation.go @@ -0,0 +1,268 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserFederationMapperRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserFederationMapperRepresentation{} + +// UserFederationMapperRepresentation struct for UserFederationMapperRepresentation +type UserFederationMapperRepresentation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + FederationProviderDisplayName *string `json:"federationProviderDisplayName,omitempty"` + FederationMapperType *string `json:"federationMapperType,omitempty"` + Config *map[string]string `json:"config,omitempty"` +} + +// NewUserFederationMapperRepresentation instantiates a new UserFederationMapperRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserFederationMapperRepresentation() *UserFederationMapperRepresentation { + this := UserFederationMapperRepresentation{} + return &this +} + +// NewUserFederationMapperRepresentationWithDefaults instantiates a new UserFederationMapperRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserFederationMapperRepresentationWithDefaults() *UserFederationMapperRepresentation { + this := UserFederationMapperRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) 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 *UserFederationMapperRepresentation) SetName(v string) { + o.Name = &v +} + +// GetFederationProviderDisplayName returns the FederationProviderDisplayName field value if set, zero value otherwise. +func (o *UserFederationMapperRepresentation) GetFederationProviderDisplayName() string { + if o == nil || IsNil(o.FederationProviderDisplayName) { + var ret string + return ret + } + return *o.FederationProviderDisplayName +} + +// GetFederationProviderDisplayNameOk returns a tuple with the FederationProviderDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationMapperRepresentation) GetFederationProviderDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.FederationProviderDisplayName) { + return nil, false + } + return o.FederationProviderDisplayName, true +} + +// HasFederationProviderDisplayName returns a boolean if a field has been set. +func (o *UserFederationMapperRepresentation) HasFederationProviderDisplayName() bool { + if o != nil && !IsNil(o.FederationProviderDisplayName) { + return true + } + + return false +} + +// SetFederationProviderDisplayName gets a reference to the given string and assigns it to the FederationProviderDisplayName field. +func (o *UserFederationMapperRepresentation) SetFederationProviderDisplayName(v string) { + o.FederationProviderDisplayName = &v +} + +// GetFederationMapperType returns the FederationMapperType field value if set, zero value otherwise. +func (o *UserFederationMapperRepresentation) GetFederationMapperType() string { + if o == nil || IsNil(o.FederationMapperType) { + var ret string + return ret + } + return *o.FederationMapperType +} + +// GetFederationMapperTypeOk returns a tuple with the FederationMapperType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationMapperRepresentation) GetFederationMapperTypeOk() (*string, bool) { + if o == nil || IsNil(o.FederationMapperType) { + return nil, false + } + return o.FederationMapperType, true +} + +// HasFederationMapperType returns a boolean if a field has been set. +func (o *UserFederationMapperRepresentation) HasFederationMapperType() bool { + if o != nil && !IsNil(o.FederationMapperType) { + return true + } + + return false +} + +// SetFederationMapperType gets a reference to the given string and assigns it to the FederationMapperType field. +func (o *UserFederationMapperRepresentation) SetFederationMapperType(v string) { + o.FederationMapperType = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *UserFederationMapperRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationMapperRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *UserFederationMapperRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *UserFederationMapperRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +func (o UserFederationMapperRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserFederationMapperRepresentation) 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.FederationProviderDisplayName) { + toSerialize["federationProviderDisplayName"] = o.FederationProviderDisplayName + } + if !IsNil(o.FederationMapperType) { + toSerialize["federationMapperType"] = o.FederationMapperType + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableUserFederationMapperRepresentation struct { + value *UserFederationMapperRepresentation + isSet bool +} + +func (v NullableUserFederationMapperRepresentation) Get() *UserFederationMapperRepresentation { + return v.value +} + +func (v *NullableUserFederationMapperRepresentation) Set(val *UserFederationMapperRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableUserFederationMapperRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableUserFederationMapperRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserFederationMapperRepresentation(val *UserFederationMapperRepresentation) *NullableUserFederationMapperRepresentation { + return &NullableUserFederationMapperRepresentation{value: val, isSet: true} +} + +func (v NullableUserFederationMapperRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserFederationMapperRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_federation_provider_representation.go b/model_user_federation_provider_representation.go new file mode 100644 index 0000000..b6dcd37 --- /dev/null +++ b/model_user_federation_provider_representation.go @@ -0,0 +1,376 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserFederationProviderRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserFederationProviderRepresentation{} + +// UserFederationProviderRepresentation struct for UserFederationProviderRepresentation +type UserFederationProviderRepresentation struct { + Id *string `json:"id,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + ProviderName *string `json:"providerName,omitempty"` + Config *map[string]string `json:"config,omitempty"` + Priority *int32 `json:"priority,omitempty"` + FullSyncPeriod *int32 `json:"fullSyncPeriod,omitempty"` + ChangedSyncPeriod *int32 `json:"changedSyncPeriod,omitempty"` + LastSync *int32 `json:"lastSync,omitempty"` +} + +// NewUserFederationProviderRepresentation instantiates a new UserFederationProviderRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserFederationProviderRepresentation() *UserFederationProviderRepresentation { + this := UserFederationProviderRepresentation{} + return &this +} + +// NewUserFederationProviderRepresentationWithDefaults instantiates a new UserFederationProviderRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserFederationProviderRepresentationWithDefaults() *UserFederationProviderRepresentation { + this := UserFederationProviderRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) 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 *UserFederationProviderRepresentation) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetProviderName returns the ProviderName field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) GetProviderName() string { + if o == nil || IsNil(o.ProviderName) { + var ret string + return ret + } + return *o.ProviderName +} + +// GetProviderNameOk returns a tuple with the ProviderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationProviderRepresentation) GetProviderNameOk() (*string, bool) { + if o == nil || IsNil(o.ProviderName) { + return nil, false + } + return o.ProviderName, true +} + +// HasProviderName returns a boolean if a field has been set. +func (o *UserFederationProviderRepresentation) HasProviderName() bool { + if o != nil && !IsNil(o.ProviderName) { + return true + } + + return false +} + +// SetProviderName gets a reference to the given string and assigns it to the ProviderName field. +func (o *UserFederationProviderRepresentation) SetProviderName(v string) { + o.ProviderName = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationProviderRepresentation) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *UserFederationProviderRepresentation) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *UserFederationProviderRepresentation) SetConfig(v map[string]string) { + o.Config = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationProviderRepresentation) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *UserFederationProviderRepresentation) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *UserFederationProviderRepresentation) SetPriority(v int32) { + o.Priority = &v +} + +// GetFullSyncPeriod returns the FullSyncPeriod field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) GetFullSyncPeriod() int32 { + if o == nil || IsNil(o.FullSyncPeriod) { + var ret int32 + return ret + } + return *o.FullSyncPeriod +} + +// GetFullSyncPeriodOk returns a tuple with the FullSyncPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationProviderRepresentation) GetFullSyncPeriodOk() (*int32, bool) { + if o == nil || IsNil(o.FullSyncPeriod) { + return nil, false + } + return o.FullSyncPeriod, true +} + +// HasFullSyncPeriod returns a boolean if a field has been set. +func (o *UserFederationProviderRepresentation) HasFullSyncPeriod() bool { + if o != nil && !IsNil(o.FullSyncPeriod) { + return true + } + + return false +} + +// SetFullSyncPeriod gets a reference to the given int32 and assigns it to the FullSyncPeriod field. +func (o *UserFederationProviderRepresentation) SetFullSyncPeriod(v int32) { + o.FullSyncPeriod = &v +} + +// GetChangedSyncPeriod returns the ChangedSyncPeriod field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) GetChangedSyncPeriod() int32 { + if o == nil || IsNil(o.ChangedSyncPeriod) { + var ret int32 + return ret + } + return *o.ChangedSyncPeriod +} + +// GetChangedSyncPeriodOk returns a tuple with the ChangedSyncPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationProviderRepresentation) GetChangedSyncPeriodOk() (*int32, bool) { + if o == nil || IsNil(o.ChangedSyncPeriod) { + return nil, false + } + return o.ChangedSyncPeriod, true +} + +// HasChangedSyncPeriod returns a boolean if a field has been set. +func (o *UserFederationProviderRepresentation) HasChangedSyncPeriod() bool { + if o != nil && !IsNil(o.ChangedSyncPeriod) { + return true + } + + return false +} + +// SetChangedSyncPeriod gets a reference to the given int32 and assigns it to the ChangedSyncPeriod field. +func (o *UserFederationProviderRepresentation) SetChangedSyncPeriod(v int32) { + o.ChangedSyncPeriod = &v +} + +// GetLastSync returns the LastSync field value if set, zero value otherwise. +func (o *UserFederationProviderRepresentation) GetLastSync() int32 { + if o == nil || IsNil(o.LastSync) { + var ret int32 + return ret + } + return *o.LastSync +} + +// GetLastSyncOk returns a tuple with the LastSync field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserFederationProviderRepresentation) GetLastSyncOk() (*int32, bool) { + if o == nil || IsNil(o.LastSync) { + return nil, false + } + return o.LastSync, true +} + +// HasLastSync returns a boolean if a field has been set. +func (o *UserFederationProviderRepresentation) HasLastSync() bool { + if o != nil && !IsNil(o.LastSync) { + return true + } + + return false +} + +// SetLastSync gets a reference to the given int32 and assigns it to the LastSync field. +func (o *UserFederationProviderRepresentation) SetLastSync(v int32) { + o.LastSync = &v +} + +func (o UserFederationProviderRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserFederationProviderRepresentation) 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.ProviderName) { + toSerialize["providerName"] = o.ProviderName + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.FullSyncPeriod) { + toSerialize["fullSyncPeriod"] = o.FullSyncPeriod + } + if !IsNil(o.ChangedSyncPeriod) { + toSerialize["changedSyncPeriod"] = o.ChangedSyncPeriod + } + if !IsNil(o.LastSync) { + toSerialize["lastSync"] = o.LastSync + } + return toSerialize, nil +} + +type NullableUserFederationProviderRepresentation struct { + value *UserFederationProviderRepresentation + isSet bool +} + +func (v NullableUserFederationProviderRepresentation) Get() *UserFederationProviderRepresentation { + return v.value +} + +func (v *NullableUserFederationProviderRepresentation) Set(val *UserFederationProviderRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableUserFederationProviderRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableUserFederationProviderRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserFederationProviderRepresentation(val *UserFederationProviderRepresentation) *NullableUserFederationProviderRepresentation { + return &NullableUserFederationProviderRepresentation{value: val, isSet: true} +} + +func (v NullableUserFederationProviderRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserFederationProviderRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_profile_attribute_group_metadata.go b/model_user_profile_attribute_group_metadata.go new file mode 100644 index 0000000..78a1a7c --- /dev/null +++ b/model_user_profile_attribute_group_metadata.go @@ -0,0 +1,232 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserProfileAttributeGroupMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserProfileAttributeGroupMetadata{} + +// UserProfileAttributeGroupMetadata struct for UserProfileAttributeGroupMetadata +type UserProfileAttributeGroupMetadata struct { + Name *string `json:"name,omitempty"` + DisplayHeader *string `json:"displayHeader,omitempty"` + DisplayDescription *string `json:"displayDescription,omitempty"` + Annotations map[string]interface{} `json:"annotations,omitempty"` +} + +// NewUserProfileAttributeGroupMetadata instantiates a new UserProfileAttributeGroupMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserProfileAttributeGroupMetadata() *UserProfileAttributeGroupMetadata { + this := UserProfileAttributeGroupMetadata{} + return &this +} + +// NewUserProfileAttributeGroupMetadataWithDefaults instantiates a new UserProfileAttributeGroupMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserProfileAttributeGroupMetadataWithDefaults() *UserProfileAttributeGroupMetadata { + this := UserProfileAttributeGroupMetadata{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UserProfileAttributeGroupMetadata) 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 *UserProfileAttributeGroupMetadata) 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 *UserProfileAttributeGroupMetadata) 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 *UserProfileAttributeGroupMetadata) SetName(v string) { + o.Name = &v +} + +// GetDisplayHeader returns the DisplayHeader field value if set, zero value otherwise. +func (o *UserProfileAttributeGroupMetadata) GetDisplayHeader() string { + if o == nil || IsNil(o.DisplayHeader) { + var ret string + return ret + } + return *o.DisplayHeader +} + +// GetDisplayHeaderOk returns a tuple with the DisplayHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeGroupMetadata) GetDisplayHeaderOk() (*string, bool) { + if o == nil || IsNil(o.DisplayHeader) { + return nil, false + } + return o.DisplayHeader, true +} + +// HasDisplayHeader returns a boolean if a field has been set. +func (o *UserProfileAttributeGroupMetadata) HasDisplayHeader() bool { + if o != nil && !IsNil(o.DisplayHeader) { + return true + } + + return false +} + +// SetDisplayHeader gets a reference to the given string and assigns it to the DisplayHeader field. +func (o *UserProfileAttributeGroupMetadata) SetDisplayHeader(v string) { + o.DisplayHeader = &v +} + +// GetDisplayDescription returns the DisplayDescription field value if set, zero value otherwise. +func (o *UserProfileAttributeGroupMetadata) GetDisplayDescription() string { + if o == nil || IsNil(o.DisplayDescription) { + var ret string + return ret + } + return *o.DisplayDescription +} + +// GetDisplayDescriptionOk returns a tuple with the DisplayDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeGroupMetadata) GetDisplayDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.DisplayDescription) { + return nil, false + } + return o.DisplayDescription, true +} + +// HasDisplayDescription returns a boolean if a field has been set. +func (o *UserProfileAttributeGroupMetadata) HasDisplayDescription() bool { + if o != nil && !IsNil(o.DisplayDescription) { + return true + } + + return false +} + +// SetDisplayDescription gets a reference to the given string and assigns it to the DisplayDescription field. +func (o *UserProfileAttributeGroupMetadata) SetDisplayDescription(v string) { + o.DisplayDescription = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UserProfileAttributeGroupMetadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeGroupMetadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UserProfileAttributeGroupMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UserProfileAttributeGroupMetadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +func (o UserProfileAttributeGroupMetadata) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserProfileAttributeGroupMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.DisplayHeader) { + toSerialize["displayHeader"] = o.DisplayHeader + } + if !IsNil(o.DisplayDescription) { + toSerialize["displayDescription"] = o.DisplayDescription + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + return toSerialize, nil +} + +type NullableUserProfileAttributeGroupMetadata struct { + value *UserProfileAttributeGroupMetadata + isSet bool +} + +func (v NullableUserProfileAttributeGroupMetadata) Get() *UserProfileAttributeGroupMetadata { + return v.value +} + +func (v *NullableUserProfileAttributeGroupMetadata) Set(val *UserProfileAttributeGroupMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableUserProfileAttributeGroupMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableUserProfileAttributeGroupMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserProfileAttributeGroupMetadata(val *UserProfileAttributeGroupMetadata) *NullableUserProfileAttributeGroupMetadata { + return &NullableUserProfileAttributeGroupMetadata{value: val, isSet: true} +} + +func (v NullableUserProfileAttributeGroupMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserProfileAttributeGroupMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_profile_attribute_metadata.go b/model_user_profile_attribute_metadata.go new file mode 100644 index 0000000..bfd36cb --- /dev/null +++ b/model_user_profile_attribute_metadata.go @@ -0,0 +1,376 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserProfileAttributeMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserProfileAttributeMetadata{} + +// UserProfileAttributeMetadata struct for UserProfileAttributeMetadata +type UserProfileAttributeMetadata struct { + Name *string `json:"name,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Required *bool `json:"required,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Annotations map[string]interface{} `json:"annotations,omitempty"` + Validators *map[string]map[string]interface{} `json:"validators,omitempty"` + Group *string `json:"group,omitempty"` + Multivalued *bool `json:"multivalued,omitempty"` +} + +// NewUserProfileAttributeMetadata instantiates a new UserProfileAttributeMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserProfileAttributeMetadata() *UserProfileAttributeMetadata { + this := UserProfileAttributeMetadata{} + return &this +} + +// NewUserProfileAttributeMetadataWithDefaults instantiates a new UserProfileAttributeMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserProfileAttributeMetadataWithDefaults() *UserProfileAttributeMetadata { + this := UserProfileAttributeMetadata{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) SetName(v string) { + o.Name = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) 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 *UserProfileAttributeMetadata) SetRequired(v bool) { + o.Required = &v +} + +// GetReadOnly returns the ReadOnly field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) GetReadOnly() bool { + if o == nil || IsNil(o.ReadOnly) { + var ret bool + return ret + } + return *o.ReadOnly +} + +// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeMetadata) GetReadOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.ReadOnly) { + return nil, false + } + return o.ReadOnly, true +} + +// HasReadOnly returns a boolean if a field has been set. +func (o *UserProfileAttributeMetadata) HasReadOnly() bool { + if o != nil && !IsNil(o.ReadOnly) { + return true + } + + return false +} + +// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field. +func (o *UserProfileAttributeMetadata) SetReadOnly(v bool) { + o.ReadOnly = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeMetadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UserProfileAttributeMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UserProfileAttributeMetadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetValidators returns the Validators field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) GetValidators() map[string]map[string]interface{} { + if o == nil || IsNil(o.Validators) { + var ret map[string]map[string]interface{} + return ret + } + return *o.Validators +} + +// GetValidatorsOk returns a tuple with the Validators field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeMetadata) GetValidatorsOk() (*map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.Validators) { + return nil, false + } + return o.Validators, true +} + +// HasValidators returns a boolean if a field has been set. +func (o *UserProfileAttributeMetadata) HasValidators() bool { + if o != nil && !IsNil(o.Validators) { + return true + } + + return false +} + +// SetValidators gets a reference to the given map[string]map[string]interface{} and assigns it to the Validators field. +func (o *UserProfileAttributeMetadata) SetValidators(v map[string]map[string]interface{}) { + o.Validators = &v +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) GetGroup() string { + if o == nil || IsNil(o.Group) { + var ret string + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeMetadata) GetGroupOk() (*string, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *UserProfileAttributeMetadata) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given string and assigns it to the Group field. +func (o *UserProfileAttributeMetadata) SetGroup(v string) { + o.Group = &v +} + +// GetMultivalued returns the Multivalued field value if set, zero value otherwise. +func (o *UserProfileAttributeMetadata) GetMultivalued() bool { + if o == nil || IsNil(o.Multivalued) { + var ret bool + return ret + } + return *o.Multivalued +} + +// GetMultivaluedOk returns a tuple with the Multivalued field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileAttributeMetadata) GetMultivaluedOk() (*bool, bool) { + if o == nil || IsNil(o.Multivalued) { + return nil, false + } + return o.Multivalued, true +} + +// HasMultivalued returns a boolean if a field has been set. +func (o *UserProfileAttributeMetadata) HasMultivalued() bool { + if o != nil && !IsNil(o.Multivalued) { + return true + } + + return false +} + +// SetMultivalued gets a reference to the given bool and assigns it to the Multivalued field. +func (o *UserProfileAttributeMetadata) SetMultivalued(v bool) { + o.Multivalued = &v +} + +func (o UserProfileAttributeMetadata) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserProfileAttributeMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.Required) { + toSerialize["required"] = o.Required + } + if !IsNil(o.ReadOnly) { + toSerialize["readOnly"] = o.ReadOnly + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Validators) { + toSerialize["validators"] = o.Validators + } + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.Multivalued) { + toSerialize["multivalued"] = o.Multivalued + } + return toSerialize, nil +} + +type NullableUserProfileAttributeMetadata struct { + value *UserProfileAttributeMetadata + isSet bool +} + +func (v NullableUserProfileAttributeMetadata) Get() *UserProfileAttributeMetadata { + return v.value +} + +func (v *NullableUserProfileAttributeMetadata) Set(val *UserProfileAttributeMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableUserProfileAttributeMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableUserProfileAttributeMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserProfileAttributeMetadata(val *UserProfileAttributeMetadata) *NullableUserProfileAttributeMetadata { + return &NullableUserProfileAttributeMetadata{value: val, isSet: true} +} + +func (v NullableUserProfileAttributeMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserProfileAttributeMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_profile_metadata.go b/model_user_profile_metadata.go new file mode 100644 index 0000000..2d6edee --- /dev/null +++ b/model_user_profile_metadata.go @@ -0,0 +1,160 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserProfileMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserProfileMetadata{} + +// UserProfileMetadata struct for UserProfileMetadata +type UserProfileMetadata struct { + Attributes []UserProfileAttributeMetadata `json:"attributes,omitempty"` + Groups []UserProfileAttributeGroupMetadata `json:"groups,omitempty"` +} + +// NewUserProfileMetadata instantiates a new UserProfileMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserProfileMetadata() *UserProfileMetadata { + this := UserProfileMetadata{} + return &this +} + +// NewUserProfileMetadataWithDefaults instantiates a new UserProfileMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserProfileMetadataWithDefaults() *UserProfileMetadata { + this := UserProfileMetadata{} + return &this +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *UserProfileMetadata) GetAttributes() []UserProfileAttributeMetadata { + if o == nil || IsNil(o.Attributes) { + var ret []UserProfileAttributeMetadata + return ret + } + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileMetadata) GetAttributesOk() ([]UserProfileAttributeMetadata, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *UserProfileMetadata) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given []UserProfileAttributeMetadata and assigns it to the Attributes field. +func (o *UserProfileMetadata) SetAttributes(v []UserProfileAttributeMetadata) { + o.Attributes = v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *UserProfileMetadata) GetGroups() []UserProfileAttributeGroupMetadata { + if o == nil || IsNil(o.Groups) { + var ret []UserProfileAttributeGroupMetadata + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProfileMetadata) GetGroupsOk() ([]UserProfileAttributeGroupMetadata, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *UserProfileMetadata) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []UserProfileAttributeGroupMetadata and assigns it to the Groups field. +func (o *UserProfileMetadata) SetGroups(v []UserProfileAttributeGroupMetadata) { + o.Groups = v +} + +func (o UserProfileMetadata) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserProfileMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + return toSerialize, nil +} + +type NullableUserProfileMetadata struct { + value *UserProfileMetadata + isSet bool +} + +func (v NullableUserProfileMetadata) Get() *UserProfileMetadata { + return v.value +} + +func (v *NullableUserProfileMetadata) Set(val *UserProfileMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableUserProfileMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableUserProfileMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserProfileMetadata(val *UserProfileMetadata) *NullableUserProfileMetadata { + return &NullableUserProfileMetadata{value: val, isSet: true} +} + +func (v NullableUserProfileMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserProfileMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_representation.go b/model_user_representation.go new file mode 100644 index 0000000..629fb99 --- /dev/null +++ b/model_user_representation.go @@ -0,0 +1,1068 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserRepresentation{} + +// UserRepresentation struct for UserRepresentation +type UserRepresentation struct { + Id *string `json:"id,omitempty"` + Username *string `json:"username,omitempty"` + FirstName *string `json:"firstName,omitempty"` + LastName *string `json:"lastName,omitempty"` + Email *string `json:"email,omitempty"` + EmailVerified *bool `json:"emailVerified,omitempty"` + Attributes *map[string][]string `json:"attributes,omitempty"` + UserProfileMetadata *UserProfileMetadata `json:"userProfileMetadata,omitempty"` + Self *string `json:"self,omitempty"` + Origin *string `json:"origin,omitempty"` + CreatedTimestamp *int64 `json:"createdTimestamp,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Totp *bool `json:"totp,omitempty"` + FederationLink *string `json:"federationLink,omitempty"` + ServiceAccountClientId *string `json:"serviceAccountClientId,omitempty"` + Credentials []CredentialRepresentation `json:"credentials,omitempty"` + DisableableCredentialTypes []string `json:"disableableCredentialTypes,omitempty"` + RequiredActions []string `json:"requiredActions,omitempty"` + FederatedIdentities []FederatedIdentityRepresentation `json:"federatedIdentities,omitempty"` + RealmRoles []string `json:"realmRoles,omitempty"` + ClientRoles *map[string][]string `json:"clientRoles,omitempty"` + ClientConsents []UserConsentRepresentation `json:"clientConsents,omitempty"` + NotBefore *int32 `json:"notBefore,omitempty"` + // Deprecated + ApplicationRoles *map[string][]string `json:"applicationRoles,omitempty"` + // Deprecated + SocialLinks []SocialLinkRepresentation `json:"socialLinks,omitempty"` + Groups []string `json:"groups,omitempty"` + Access *map[string]bool `json:"access,omitempty"` +} + +// NewUserRepresentation instantiates a new UserRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserRepresentation() *UserRepresentation { + this := UserRepresentation{} + return &this +} + +// NewUserRepresentationWithDefaults instantiates a new UserRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserRepresentationWithDefaults() *UserRepresentation { + this := UserRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) SetId(v string) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) SetUsername(v string) { + o.Username = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *UserRepresentation) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *UserRepresentation) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *UserRepresentation) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *UserRepresentation) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *UserRepresentation) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *UserRepresentation) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) SetEmail(v string) { + o.Email = &v +} + +// GetEmailVerified returns the EmailVerified field value if set, zero value otherwise. +func (o *UserRepresentation) GetEmailVerified() bool { + if o == nil || IsNil(o.EmailVerified) { + var ret bool + return ret + } + return *o.EmailVerified +} + +// GetEmailVerifiedOk returns a tuple with the EmailVerified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetEmailVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.EmailVerified) { + return nil, false + } + return o.EmailVerified, true +} + +// HasEmailVerified returns a boolean if a field has been set. +func (o *UserRepresentation) HasEmailVerified() bool { + if o != nil && !IsNil(o.EmailVerified) { + return true + } + + return false +} + +// SetEmailVerified gets a reference to the given bool and assigns it to the EmailVerified field. +func (o *UserRepresentation) SetEmailVerified(v bool) { + o.EmailVerified = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *UserRepresentation) GetAttributes() map[string][]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string][]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetAttributesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *UserRepresentation) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string][]string and assigns it to the Attributes field. +func (o *UserRepresentation) SetAttributes(v map[string][]string) { + o.Attributes = &v +} + +// GetUserProfileMetadata returns the UserProfileMetadata field value if set, zero value otherwise. +func (o *UserRepresentation) GetUserProfileMetadata() UserProfileMetadata { + if o == nil || IsNil(o.UserProfileMetadata) { + var ret UserProfileMetadata + return ret + } + return *o.UserProfileMetadata +} + +// GetUserProfileMetadataOk returns a tuple with the UserProfileMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetUserProfileMetadataOk() (*UserProfileMetadata, bool) { + if o == nil || IsNil(o.UserProfileMetadata) { + return nil, false + } + return o.UserProfileMetadata, true +} + +// HasUserProfileMetadata returns a boolean if a field has been set. +func (o *UserRepresentation) HasUserProfileMetadata() bool { + if o != nil && !IsNil(o.UserProfileMetadata) { + return true + } + + return false +} + +// SetUserProfileMetadata gets a reference to the given UserProfileMetadata and assigns it to the UserProfileMetadata field. +func (o *UserRepresentation) SetUserProfileMetadata(v UserProfileMetadata) { + o.UserProfileMetadata = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *UserRepresentation) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *UserRepresentation) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *UserRepresentation) SetSelf(v string) { + o.Self = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *UserRepresentation) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *UserRepresentation) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *UserRepresentation) SetOrigin(v string) { + o.Origin = &v +} + +// GetCreatedTimestamp returns the CreatedTimestamp field value if set, zero value otherwise. +func (o *UserRepresentation) GetCreatedTimestamp() int64 { + if o == nil || IsNil(o.CreatedTimestamp) { + var ret int64 + return ret + } + return *o.CreatedTimestamp +} + +// GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetCreatedTimestampOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedTimestamp) { + return nil, false + } + return o.CreatedTimestamp, true +} + +// HasCreatedTimestamp returns a boolean if a field has been set. +func (o *UserRepresentation) HasCreatedTimestamp() bool { + if o != nil && !IsNil(o.CreatedTimestamp) { + return true + } + + return false +} + +// SetCreatedTimestamp gets a reference to the given int64 and assigns it to the CreatedTimestamp field. +func (o *UserRepresentation) SetCreatedTimestamp(v int64) { + o.CreatedTimestamp = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) 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 *UserRepresentation) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetTotp returns the Totp field value if set, zero value otherwise. +func (o *UserRepresentation) GetTotp() bool { + if o == nil || IsNil(o.Totp) { + var ret bool + return ret + } + return *o.Totp +} + +// GetTotpOk returns a tuple with the Totp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetTotpOk() (*bool, bool) { + if o == nil || IsNil(o.Totp) { + return nil, false + } + return o.Totp, true +} + +// HasTotp returns a boolean if a field has been set. +func (o *UserRepresentation) HasTotp() bool { + if o != nil && !IsNil(o.Totp) { + return true + } + + return false +} + +// SetTotp gets a reference to the given bool and assigns it to the Totp field. +func (o *UserRepresentation) SetTotp(v bool) { + o.Totp = &v +} + +// GetFederationLink returns the FederationLink field value if set, zero value otherwise. +func (o *UserRepresentation) GetFederationLink() string { + if o == nil || IsNil(o.FederationLink) { + var ret string + return ret + } + return *o.FederationLink +} + +// GetFederationLinkOk returns a tuple with the FederationLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetFederationLinkOk() (*string, bool) { + if o == nil || IsNil(o.FederationLink) { + return nil, false + } + return o.FederationLink, true +} + +// HasFederationLink returns a boolean if a field has been set. +func (o *UserRepresentation) HasFederationLink() bool { + if o != nil && !IsNil(o.FederationLink) { + return true + } + + return false +} + +// SetFederationLink gets a reference to the given string and assigns it to the FederationLink field. +func (o *UserRepresentation) SetFederationLink(v string) { + o.FederationLink = &v +} + +// GetServiceAccountClientId returns the ServiceAccountClientId field value if set, zero value otherwise. +func (o *UserRepresentation) GetServiceAccountClientId() string { + if o == nil || IsNil(o.ServiceAccountClientId) { + var ret string + return ret + } + return *o.ServiceAccountClientId +} + +// GetServiceAccountClientIdOk returns a tuple with the ServiceAccountClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetServiceAccountClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceAccountClientId) { + return nil, false + } + return o.ServiceAccountClientId, true +} + +// HasServiceAccountClientId returns a boolean if a field has been set. +func (o *UserRepresentation) HasServiceAccountClientId() bool { + if o != nil && !IsNil(o.ServiceAccountClientId) { + return true + } + + return false +} + +// SetServiceAccountClientId gets a reference to the given string and assigns it to the ServiceAccountClientId field. +func (o *UserRepresentation) SetServiceAccountClientId(v string) { + o.ServiceAccountClientId = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *UserRepresentation) GetCredentials() []CredentialRepresentation { + if o == nil || IsNil(o.Credentials) { + var ret []CredentialRepresentation + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetCredentialsOk() ([]CredentialRepresentation, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *UserRepresentation) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given []CredentialRepresentation and assigns it to the Credentials field. +func (o *UserRepresentation) SetCredentials(v []CredentialRepresentation) { + o.Credentials = v +} + +// GetDisableableCredentialTypes returns the DisableableCredentialTypes field value if set, zero value otherwise. +func (o *UserRepresentation) GetDisableableCredentialTypes() []string { + if o == nil || IsNil(o.DisableableCredentialTypes) { + var ret []string + return ret + } + return o.DisableableCredentialTypes +} + +// GetDisableableCredentialTypesOk returns a tuple with the DisableableCredentialTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetDisableableCredentialTypesOk() ([]string, bool) { + if o == nil || IsNil(o.DisableableCredentialTypes) { + return nil, false + } + return o.DisableableCredentialTypes, true +} + +// HasDisableableCredentialTypes returns a boolean if a field has been set. +func (o *UserRepresentation) HasDisableableCredentialTypes() bool { + if o != nil && !IsNil(o.DisableableCredentialTypes) { + return true + } + + return false +} + +// SetDisableableCredentialTypes gets a reference to the given []string and assigns it to the DisableableCredentialTypes field. +func (o *UserRepresentation) SetDisableableCredentialTypes(v []string) { + o.DisableableCredentialTypes = v +} + +// GetRequiredActions returns the RequiredActions field value if set, zero value otherwise. +func (o *UserRepresentation) GetRequiredActions() []string { + if o == nil || IsNil(o.RequiredActions) { + var ret []string + return ret + } + return o.RequiredActions +} + +// GetRequiredActionsOk returns a tuple with the RequiredActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetRequiredActionsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredActions) { + return nil, false + } + return o.RequiredActions, true +} + +// HasRequiredActions returns a boolean if a field has been set. +func (o *UserRepresentation) HasRequiredActions() bool { + if o != nil && !IsNil(o.RequiredActions) { + return true + } + + return false +} + +// SetRequiredActions gets a reference to the given []string and assigns it to the RequiredActions field. +func (o *UserRepresentation) SetRequiredActions(v []string) { + o.RequiredActions = v +} + +// GetFederatedIdentities returns the FederatedIdentities field value if set, zero value otherwise. +func (o *UserRepresentation) GetFederatedIdentities() []FederatedIdentityRepresentation { + if o == nil || IsNil(o.FederatedIdentities) { + var ret []FederatedIdentityRepresentation + return ret + } + return o.FederatedIdentities +} + +// GetFederatedIdentitiesOk returns a tuple with the FederatedIdentities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetFederatedIdentitiesOk() ([]FederatedIdentityRepresentation, bool) { + if o == nil || IsNil(o.FederatedIdentities) { + return nil, false + } + return o.FederatedIdentities, true +} + +// HasFederatedIdentities returns a boolean if a field has been set. +func (o *UserRepresentation) HasFederatedIdentities() bool { + if o != nil && !IsNil(o.FederatedIdentities) { + return true + } + + return false +} + +// SetFederatedIdentities gets a reference to the given []FederatedIdentityRepresentation and assigns it to the FederatedIdentities field. +func (o *UserRepresentation) SetFederatedIdentities(v []FederatedIdentityRepresentation) { + o.FederatedIdentities = v +} + +// GetRealmRoles returns the RealmRoles field value if set, zero value otherwise. +func (o *UserRepresentation) GetRealmRoles() []string { + if o == nil || IsNil(o.RealmRoles) { + var ret []string + return ret + } + return o.RealmRoles +} + +// GetRealmRolesOk returns a tuple with the RealmRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetRealmRolesOk() ([]string, bool) { + if o == nil || IsNil(o.RealmRoles) { + return nil, false + } + return o.RealmRoles, true +} + +// HasRealmRoles returns a boolean if a field has been set. +func (o *UserRepresentation) HasRealmRoles() bool { + if o != nil && !IsNil(o.RealmRoles) { + return true + } + + return false +} + +// SetRealmRoles gets a reference to the given []string and assigns it to the RealmRoles field. +func (o *UserRepresentation) SetRealmRoles(v []string) { + o.RealmRoles = v +} + +// GetClientRoles returns the ClientRoles field value if set, zero value otherwise. +func (o *UserRepresentation) GetClientRoles() map[string][]string { + if o == nil || IsNil(o.ClientRoles) { + var ret map[string][]string + return ret + } + return *o.ClientRoles +} + +// GetClientRolesOk returns a tuple with the ClientRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetClientRolesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.ClientRoles) { + return nil, false + } + return o.ClientRoles, true +} + +// HasClientRoles returns a boolean if a field has been set. +func (o *UserRepresentation) HasClientRoles() bool { + if o != nil && !IsNil(o.ClientRoles) { + return true + } + + return false +} + +// SetClientRoles gets a reference to the given map[string][]string and assigns it to the ClientRoles field. +func (o *UserRepresentation) SetClientRoles(v map[string][]string) { + o.ClientRoles = &v +} + +// GetClientConsents returns the ClientConsents field value if set, zero value otherwise. +func (o *UserRepresentation) GetClientConsents() []UserConsentRepresentation { + if o == nil || IsNil(o.ClientConsents) { + var ret []UserConsentRepresentation + return ret + } + return o.ClientConsents +} + +// GetClientConsentsOk returns a tuple with the ClientConsents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetClientConsentsOk() ([]UserConsentRepresentation, bool) { + if o == nil || IsNil(o.ClientConsents) { + return nil, false + } + return o.ClientConsents, true +} + +// HasClientConsents returns a boolean if a field has been set. +func (o *UserRepresentation) HasClientConsents() bool { + if o != nil && !IsNil(o.ClientConsents) { + return true + } + + return false +} + +// SetClientConsents gets a reference to the given []UserConsentRepresentation and assigns it to the ClientConsents field. +func (o *UserRepresentation) SetClientConsents(v []UserConsentRepresentation) { + o.ClientConsents = v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *UserRepresentation) GetNotBefore() int32 { + if o == nil || IsNil(o.NotBefore) { + var ret int32 + 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 *UserRepresentation) GetNotBeforeOk() (*int32, 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 *UserRepresentation) HasNotBefore() bool { + if o != nil && !IsNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given int32 and assigns it to the NotBefore field. +func (o *UserRepresentation) SetNotBefore(v int32) { + o.NotBefore = &v +} + +// GetApplicationRoles returns the ApplicationRoles field value if set, zero value otherwise. +// Deprecated +func (o *UserRepresentation) GetApplicationRoles() map[string][]string { + if o == nil || IsNil(o.ApplicationRoles) { + var ret map[string][]string + return ret + } + return *o.ApplicationRoles +} + +// GetApplicationRolesOk returns a tuple with the ApplicationRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UserRepresentation) GetApplicationRolesOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.ApplicationRoles) { + return nil, false + } + return o.ApplicationRoles, true +} + +// HasApplicationRoles returns a boolean if a field has been set. +func (o *UserRepresentation) HasApplicationRoles() bool { + if o != nil && !IsNil(o.ApplicationRoles) { + return true + } + + return false +} + +// SetApplicationRoles gets a reference to the given map[string][]string and assigns it to the ApplicationRoles field. +// Deprecated +func (o *UserRepresentation) SetApplicationRoles(v map[string][]string) { + o.ApplicationRoles = &v +} + +// GetSocialLinks returns the SocialLinks field value if set, zero value otherwise. +// Deprecated +func (o *UserRepresentation) GetSocialLinks() []SocialLinkRepresentation { + if o == nil || IsNil(o.SocialLinks) { + var ret []SocialLinkRepresentation + return ret + } + return o.SocialLinks +} + +// GetSocialLinksOk returns a tuple with the SocialLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UserRepresentation) GetSocialLinksOk() ([]SocialLinkRepresentation, bool) { + if o == nil || IsNil(o.SocialLinks) { + return nil, false + } + return o.SocialLinks, true +} + +// HasSocialLinks returns a boolean if a field has been set. +func (o *UserRepresentation) HasSocialLinks() bool { + if o != nil && !IsNil(o.SocialLinks) { + return true + } + + return false +} + +// SetSocialLinks gets a reference to the given []SocialLinkRepresentation and assigns it to the SocialLinks field. +// Deprecated +func (o *UserRepresentation) SetSocialLinks(v []SocialLinkRepresentation) { + o.SocialLinks = v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *UserRepresentation) GetGroups() []string { + if o == nil || IsNil(o.Groups) { + var ret []string + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRepresentation) GetGroupsOk() ([]string, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *UserRepresentation) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []string and assigns it to the Groups field. +func (o *UserRepresentation) SetGroups(v []string) { + o.Groups = v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *UserRepresentation) GetAccess() map[string]bool { + if o == nil || IsNil(o.Access) { + var ret map[string]bool + 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 *UserRepresentation) GetAccessOk() (*map[string]bool, 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 *UserRepresentation) HasAccess() bool { + if o != nil && !IsNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given map[string]bool and assigns it to the Access field. +func (o *UserRepresentation) SetAccess(v map[string]bool) { + o.Access = &v +} + +func (o UserRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserRepresentation) 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.FirstName) { + toSerialize["firstName"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["lastName"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.EmailVerified) { + toSerialize["emailVerified"] = o.EmailVerified + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.UserProfileMetadata) { + toSerialize["userProfileMetadata"] = o.UserProfileMetadata + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + if !IsNil(o.CreatedTimestamp) { + toSerialize["createdTimestamp"] = o.CreatedTimestamp + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Totp) { + toSerialize["totp"] = o.Totp + } + if !IsNil(o.FederationLink) { + toSerialize["federationLink"] = o.FederationLink + } + if !IsNil(o.ServiceAccountClientId) { + toSerialize["serviceAccountClientId"] = o.ServiceAccountClientId + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.DisableableCredentialTypes) { + toSerialize["disableableCredentialTypes"] = o.DisableableCredentialTypes + } + if !IsNil(o.RequiredActions) { + toSerialize["requiredActions"] = o.RequiredActions + } + if !IsNil(o.FederatedIdentities) { + toSerialize["federatedIdentities"] = o.FederatedIdentities + } + if !IsNil(o.RealmRoles) { + toSerialize["realmRoles"] = o.RealmRoles + } + if !IsNil(o.ClientRoles) { + toSerialize["clientRoles"] = o.ClientRoles + } + if !IsNil(o.ClientConsents) { + toSerialize["clientConsents"] = o.ClientConsents + } + if !IsNil(o.NotBefore) { + toSerialize["notBefore"] = o.NotBefore + } + if !IsNil(o.ApplicationRoles) { + toSerialize["applicationRoles"] = o.ApplicationRoles + } + if !IsNil(o.SocialLinks) { + toSerialize["socialLinks"] = o.SocialLinks + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Access) { + toSerialize["access"] = o.Access + } + return toSerialize, nil +} + +type NullableUserRepresentation struct { + value *UserRepresentation + isSet bool +} + +func (v NullableUserRepresentation) Get() *UserRepresentation { + return v.value +} + +func (v *NullableUserRepresentation) Set(val *UserRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableUserRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableUserRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserRepresentation(val *UserRepresentation) *NullableUserRepresentation { + return &NullableUserRepresentation{value: val, isSet: true} +} + +func (v NullableUserRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_user_session_representation.go b/model_user_session_representation.go new file mode 100644 index 0000000..2dab1e3 --- /dev/null +++ b/model_user_session_representation.go @@ -0,0 +1,412 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "encoding/json" +) + +// checks if the UserSessionRepresentation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserSessionRepresentation{} + +// UserSessionRepresentation struct for UserSessionRepresentation +type UserSessionRepresentation struct { + Id *string `json:"id,omitempty"` + Username *string `json:"username,omitempty"` + UserId *string `json:"userId,omitempty"` + IpAddress *string `json:"ipAddress,omitempty"` + Start *int64 `json:"start,omitempty"` + LastAccess *int64 `json:"lastAccess,omitempty"` + RememberMe *bool `json:"rememberMe,omitempty"` + Clients *map[string]string `json:"clients,omitempty"` + TransientUser *bool `json:"transientUser,omitempty"` +} + +// NewUserSessionRepresentation instantiates a new UserSessionRepresentation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserSessionRepresentation() *UserSessionRepresentation { + this := UserSessionRepresentation{} + return &this +} + +// NewUserSessionRepresentationWithDefaults instantiates a new UserSessionRepresentation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserSessionRepresentationWithDefaults() *UserSessionRepresentation { + this := UserSessionRepresentation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *UserSessionRepresentation) 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 *UserSessionRepresentation) 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 *UserSessionRepresentation) 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 *UserSessionRepresentation) SetId(v string) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *UserSessionRepresentation) 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 *UserSessionRepresentation) 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 *UserSessionRepresentation) 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 *UserSessionRepresentation) SetUsername(v string) { + o.Username = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *UserSessionRepresentation) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserSessionRepresentation) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *UserSessionRepresentation) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *UserSessionRepresentation) SetUserId(v string) { + o.UserId = &v +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *UserSessionRepresentation) 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 *UserSessionRepresentation) 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 *UserSessionRepresentation) 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 *UserSessionRepresentation) SetIpAddress(v string) { + o.IpAddress = &v +} + +// GetStart returns the Start field value if set, zero value otherwise. +func (o *UserSessionRepresentation) GetStart() int64 { + if o == nil || IsNil(o.Start) { + var ret int64 + return ret + } + return *o.Start +} + +// GetStartOk returns a tuple with the Start field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserSessionRepresentation) GetStartOk() (*int64, bool) { + if o == nil || IsNil(o.Start) { + return nil, false + } + return o.Start, true +} + +// HasStart returns a boolean if a field has been set. +func (o *UserSessionRepresentation) HasStart() bool { + if o != nil && !IsNil(o.Start) { + return true + } + + return false +} + +// SetStart gets a reference to the given int64 and assigns it to the Start field. +func (o *UserSessionRepresentation) SetStart(v int64) { + o.Start = &v +} + +// GetLastAccess returns the LastAccess field value if set, zero value otherwise. +func (o *UserSessionRepresentation) GetLastAccess() int64 { + if o == nil || IsNil(o.LastAccess) { + var ret int64 + return ret + } + return *o.LastAccess +} + +// GetLastAccessOk returns a tuple with the LastAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserSessionRepresentation) GetLastAccessOk() (*int64, bool) { + if o == nil || IsNil(o.LastAccess) { + return nil, false + } + return o.LastAccess, true +} + +// HasLastAccess returns a boolean if a field has been set. +func (o *UserSessionRepresentation) HasLastAccess() bool { + if o != nil && !IsNil(o.LastAccess) { + return true + } + + return false +} + +// SetLastAccess gets a reference to the given int64 and assigns it to the LastAccess field. +func (o *UserSessionRepresentation) SetLastAccess(v int64) { + o.LastAccess = &v +} + +// GetRememberMe returns the RememberMe field value if set, zero value otherwise. +func (o *UserSessionRepresentation) GetRememberMe() bool { + if o == nil || IsNil(o.RememberMe) { + var ret bool + return ret + } + return *o.RememberMe +} + +// GetRememberMeOk returns a tuple with the RememberMe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserSessionRepresentation) GetRememberMeOk() (*bool, bool) { + if o == nil || IsNil(o.RememberMe) { + return nil, false + } + return o.RememberMe, true +} + +// HasRememberMe returns a boolean if a field has been set. +func (o *UserSessionRepresentation) HasRememberMe() bool { + if o != nil && !IsNil(o.RememberMe) { + return true + } + + return false +} + +// SetRememberMe gets a reference to the given bool and assigns it to the RememberMe field. +func (o *UserSessionRepresentation) SetRememberMe(v bool) { + o.RememberMe = &v +} + +// GetClients returns the Clients field value if set, zero value otherwise. +func (o *UserSessionRepresentation) GetClients() map[string]string { + if o == nil || IsNil(o.Clients) { + var ret map[string]string + return ret + } + return *o.Clients +} + +// GetClientsOk returns a tuple with the Clients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserSessionRepresentation) GetClientsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Clients) { + return nil, false + } + return o.Clients, true +} + +// HasClients returns a boolean if a field has been set. +func (o *UserSessionRepresentation) HasClients() bool { + if o != nil && !IsNil(o.Clients) { + return true + } + + return false +} + +// SetClients gets a reference to the given map[string]string and assigns it to the Clients field. +func (o *UserSessionRepresentation) SetClients(v map[string]string) { + o.Clients = &v +} + +// GetTransientUser returns the TransientUser field value if set, zero value otherwise. +func (o *UserSessionRepresentation) GetTransientUser() bool { + if o == nil || IsNil(o.TransientUser) { + var ret bool + return ret + } + return *o.TransientUser +} + +// GetTransientUserOk returns a tuple with the TransientUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserSessionRepresentation) GetTransientUserOk() (*bool, bool) { + if o == nil || IsNil(o.TransientUser) { + return nil, false + } + return o.TransientUser, true +} + +// HasTransientUser returns a boolean if a field has been set. +func (o *UserSessionRepresentation) HasTransientUser() bool { + if o != nil && !IsNil(o.TransientUser) { + return true + } + + return false +} + +// SetTransientUser gets a reference to the given bool and assigns it to the TransientUser field. +func (o *UserSessionRepresentation) SetTransientUser(v bool) { + o.TransientUser = &v +} + +func (o UserSessionRepresentation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserSessionRepresentation) 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.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + if !IsNil(o.Start) { + toSerialize["start"] = o.Start + } + if !IsNil(o.LastAccess) { + toSerialize["lastAccess"] = o.LastAccess + } + if !IsNil(o.RememberMe) { + toSerialize["rememberMe"] = o.RememberMe + } + if !IsNil(o.Clients) { + toSerialize["clients"] = o.Clients + } + if !IsNil(o.TransientUser) { + toSerialize["transientUser"] = o.TransientUser + } + return toSerialize, nil +} + +type NullableUserSessionRepresentation struct { + value *UserSessionRepresentation + isSet bool +} + +func (v NullableUserSessionRepresentation) Get() *UserSessionRepresentation { + return v.value +} + +func (v *NullableUserSessionRepresentation) Set(val *UserSessionRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableUserSessionRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableUserSessionRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserSessionRepresentation(val *UserSessionRepresentation) *NullableUserSessionRepresentation { + return &NullableUserSessionRepresentation{value: val, isSet: true} +} + +func (v NullableUserSessionRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserSessionRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/response.go b/response.go new file mode 100644 index 0000000..bd3af3c --- /dev/null +++ b/response.go @@ -0,0 +1,47 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/test/api_attack_detection_test.go b/test/api_attack_detection_test.go new file mode 100644 index 0000000..6bfc0bb --- /dev/null +++ b/test/api_attack_detection_test.go @@ -0,0 +1,67 @@ +/* +Keycloak Admin REST API + +Testing AttackDetectionAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_AttackDetectionAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AttackDetectionAPIService AdminRealmsRealmAttackDetectionBruteForceUsersDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersDelete(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AttackDetectionAPIService AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AttackDetectionAPIService AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.AttackDetectionAPI.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_authentication_management_test.go b/test/api_authentication_management_test.go new file mode 100644 index 0000000..ee1b0b2 --- /dev/null +++ b/test/api_authentication_management_test.go @@ -0,0 +1,577 @@ +/* +Keycloak Admin REST API + +Testing AuthenticationManagementAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_AuthenticationManagementAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationAuthenticatorProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationAuthenticatorProvidersGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var providerId string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet(context.Background(), realm, providerId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationConfigIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdDelete(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationConfigIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationConfigIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigIdPut(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationConfigPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationConfigPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var executionId string + var id string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet(context.Background(), realm, executionId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var executionId string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost(context.Background(), realm, executionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var executionId string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete(context.Background(), realm, executionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationExecutionsExecutionIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var executionId string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdGet(context.Background(), realm, executionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var executionId string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost(context.Background(), realm, executionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var executionId string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost(context.Background(), realm, executionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationExecutionsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationExecutionsPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var flowAlias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost(context.Background(), realm, flowAlias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var flowAlias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost(context.Background(), realm, flowAlias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var flowAlias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost(context.Background(), realm, flowAlias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var flowAlias string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet(context.Background(), realm, flowAlias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var flowAlias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut(context.Background(), realm, flowAlias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdDelete(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsIdPut(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFlowsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFlowsPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFormActionProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormActionProvidersGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationFormProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationFormProvidersGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRegisterRequiredActionPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRegisterRequiredActionPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasDelete(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasPut(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationRequiredActionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationRequiredActionsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthenticationManagementAPIService AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.AuthenticationManagementAPI.AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_client_attribute_certificate_test.go b/test/api_client_attribute_certificate_test.go new file mode 100644 index 0000000..846f7e1 --- /dev/null +++ b/test/api_client_attribute_certificate_test.go @@ -0,0 +1,121 @@ +/* +Keycloak Admin REST API + +Testing ClientAttributeCertificateAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ClientAttributeCertificateAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ClientAttributeCertificateAPIService AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var attr string + + resp, httpRes, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost(context.Background(), realm, clientUuid, attr).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientAttributeCertificateAPIService AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var attr string + + resp, httpRes, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost(context.Background(), realm, clientUuid, attr).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientAttributeCertificateAPIService AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var attr string + + resp, httpRes, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost(context.Background(), realm, clientUuid, attr).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientAttributeCertificateAPIService AdminRealmsRealmClientsClientUuidCertificatesAttrGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var attr string + + resp, httpRes, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGet(context.Background(), realm, clientUuid, attr).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientAttributeCertificateAPIService AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var attr string + + resp, httpRes, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost(context.Background(), realm, clientUuid, attr).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientAttributeCertificateAPIService AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var attr string + + resp, httpRes, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost(context.Background(), realm, clientUuid, attr).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_client_initial_access_test.go b/test/api_client_initial_access_test.go new file mode 100644 index 0000000..c11d452 --- /dev/null +++ b/test/api_client_initial_access_test.go @@ -0,0 +1,67 @@ +/* +Keycloak Admin REST API + +Testing ClientInitialAccessAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ClientInitialAccessAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ClientInitialAccessAPIService AdminRealmsRealmClientsInitialAccessGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientInitialAccessAPIService AdminRealmsRealmClientsInitialAccessIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessIdDelete(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientInitialAccessAPIService AdminRealmsRealmClientsInitialAccessPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.ClientInitialAccessAPI.AdminRealmsRealmClientsInitialAccessPost(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_client_registration_policy_test.go b/test/api_client_registration_policy_test.go new file mode 100644 index 0000000..196956a --- /dev/null +++ b/test/api_client_registration_policy_test.go @@ -0,0 +1,39 @@ +/* +Keycloak Admin REST API + +Testing ClientRegistrationPolicyAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ClientRegistrationPolicyAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ClientRegistrationPolicyAPIService AdminRealmsRealmClientRegistrationPolicyProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.ClientRegistrationPolicyAPI.AdminRealmsRealmClientRegistrationPolicyProvidersGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_client_role_mappings_test.go b/test/api_client_role_mappings_test.go new file mode 100644 index 0000000..4e7cb7d --- /dev/null +++ b/test/api_client_role_mappings_test.go @@ -0,0 +1,181 @@ +/* +Keycloak Admin REST API + +Testing ClientRoleMappingsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ClientRoleMappingsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + var clientId string + + resp, httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet(context.Background(), realm, groupId, clientId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + var clientId string + + resp, httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet(context.Background(), realm, groupId, clientId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + var clientId string + + httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete(context.Background(), realm, groupId, clientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + var clientId string + + resp, httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet(context.Background(), realm, groupId, clientId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + var clientId string + + httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost(context.Background(), realm, groupId, clientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var clientId string + + resp, httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet(context.Background(), realm, userId, clientId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var clientId string + + resp, httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet(context.Background(), realm, userId, clientId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var clientId string + + httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete(context.Background(), realm, userId, clientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var clientId string + + resp, httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet(context.Background(), realm, userId, clientId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientRoleMappingsAPIService AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var clientId string + + httpRes, err := apiClient.ClientRoleMappingsAPI.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost(context.Background(), realm, userId, clientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_client_scopes_test.go b/test/api_client_scopes_test.go new file mode 100644 index 0000000..fe8e750 --- /dev/null +++ b/test/api_client_scopes_test.go @@ -0,0 +1,165 @@ +/* +Keycloak Admin REST API + +Testing ClientScopesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ClientScopesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientScopesClientScopeIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientScopesClientScopeIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientScopesClientScopeIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesClientScopeIdPut(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientScopesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientScopesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientScopesPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientTemplatesClientScopeIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientTemplatesClientScopeIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientTemplatesClientScopeIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesClientScopeIdPut(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientTemplatesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientScopesAPIService AdminRealmsRealmClientTemplatesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.ClientScopesAPI.AdminRealmsRealmClientTemplatesPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_clients_test.go b/test/api_clients_test.go new file mode 100644 index 0000000..c70d6b8 --- /dev/null +++ b/test/api_clients_test.go @@ -0,0 +1,530 @@ +/* +Keycloak Admin REST API + +Testing ClientsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ClientsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidClientSecretGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidClientSecretPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidClientSecretRotatedGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var clientScopeId string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete(context.Background(), realm, clientUuid, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var clientScopeId string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut(context.Background(), realm, clientUuid, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidDefaultClientScopesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDelete(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleContainerId string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(context.Background(), realm, clientUuid, roleContainerId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleContainerId string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(context.Background(), realm, clientUuid, roleContainerId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var providerId string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet(context.Background(), realm, clientUuid, providerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidManagementPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidManagementPermissionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsPut(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidNodesNodeDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var node string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidNodesNodeDelete(context.Background(), realm, clientUuid, node).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidNodesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidNodesPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidOfflineSessionCountGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidOfflineSessionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionsGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var clientScopeId string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete(context.Background(), realm, clientUuid, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var clientScopeId string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut(context.Background(), realm, clientUuid, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidOptionalClientScopesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidPushRevocationPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidPushRevocationPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidPut(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidServiceAccountUserGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidServiceAccountUserGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidSessionCountGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidSessionCountGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidTestNodesAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsClientUuidUserSessionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidUserSessionsGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ClientsAPIService AdminRealmsRealmClientsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.ClientsAPI.AdminRealmsRealmClientsPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_component_test.go b/test/api_component_test.go new file mode 100644 index 0000000..6cb2725 --- /dev/null +++ b/test/api_component_test.go @@ -0,0 +1,110 @@ +/* +Keycloak Admin REST API + +Testing ComponentAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ComponentAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ComponentAPIService AdminRealmsRealmComponentsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ComponentAPIService AdminRealmsRealmComponentsIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdDelete(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ComponentAPIService AdminRealmsRealmComponentsIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ComponentAPIService AdminRealmsRealmComponentsIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdPut(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ComponentAPIService AdminRealmsRealmComponentsIdSubComponentTypesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsIdSubComponentTypesGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ComponentAPIService AdminRealmsRealmComponentsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.ComponentAPI.AdminRealmsRealmComponentsPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_default_test.go b/test/api_default_test.go new file mode 100644 index 0000000..0730088 --- /dev/null +++ b/test/api_default_test.go @@ -0,0 +1,491 @@ +/* +Keycloak Admin REST API + +Testing DefaultAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_DefaultAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerPut(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var resourceId string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet(context.Background(), realm, clientUuid, resourceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var resourceId string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete(context.Background(), realm, clientUuid, resourceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var resourceId string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet(context.Background(), realm, clientUuid, resourceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var resourceId string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet(context.Background(), realm, clientUuid, resourceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var resourceId string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut(context.Background(), realm, clientUuid, resourceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var resourceId string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet(context.Background(), realm, clientUuid, resourceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var scopeId string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete(context.Background(), realm, clientUuid, scopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var scopeId string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet(context.Background(), realm, clientUuid, scopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var scopeId string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet(context.Background(), realm, clientUuid, scopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var scopeId string + + httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut(context.Background(), realm, clientUuid, scopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var scopeId string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet(context.Background(), realm, clientUuid, scopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.DefaultAPI.AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_groups_test.go b/test/api_groups_test.go new file mode 100644 index 0000000..f425db7 --- /dev/null +++ b/test/api_groups_test.go @@ -0,0 +1,183 @@ +/* +Keycloak Admin REST API + +Testing GroupsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_GroupsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsCountGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsCountGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdChildrenGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdChildrenGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdChildrenPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdChildrenPost(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdDelete(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdManagementPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdManagementPermissionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdManagementPermissionsPut(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdMembersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdMembersGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsGroupIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsGroupIdPut(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GroupsAPIService AdminRealmsRealmGroupsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.GroupsAPI.AdminRealmsRealmGroupsPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_identity_providers_test.go b/test/api_identity_providers_test.go new file mode 100644 index 0000000..7bdf030 --- /dev/null +++ b/test/api_identity_providers_test.go @@ -0,0 +1,273 @@ +/* +Keycloak Admin REST API + +Testing IdentityProvidersAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_IdentityProvidersAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderImportConfigPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderImportConfigPost(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasDelete(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasExportGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasExportGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasMappersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + var id string + + httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete(context.Background(), realm, alias, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + var id string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet(context.Background(), realm, alias, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + var id string + + httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut(context.Background(), realm, alias, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasMappersPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasMappersPost(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasPut(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var alias string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet(context.Background(), realm, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderInstancesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderInstancesPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IdentityProvidersAPIService AdminRealmsRealmIdentityProviderProvidersProviderIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var providerId string + + resp, httpRes, err := apiClient.IdentityProvidersAPI.AdminRealmsRealmIdentityProviderProvidersProviderIdGet(context.Background(), realm, providerId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_key_test.go b/test/api_key_test.go new file mode 100644 index 0000000..3046bdb --- /dev/null +++ b/test/api_key_test.go @@ -0,0 +1,39 @@ +/* +Keycloak Admin REST API + +Testing KeyAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_KeyAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test KeyAPIService AdminRealmsRealmKeysGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.KeyAPI.AdminRealmsRealmKeysGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_organizations_test.go b/test/api_organizations_test.go new file mode 100644 index 0000000..d1d2e52 --- /dev/null +++ b/test/api_organizations_test.go @@ -0,0 +1,290 @@ +/* +Keycloak Admin REST API + +Testing OrganizationsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + "testing" + + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_keycloak_admin_client_OrganizationsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdDelete(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + var alias string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete(context.Background(), realm, id, alias).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + var alias string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet(context.Background(), realm, id, alias).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdIdentityProvidersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdIdentityProvidersPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdIdentityProvidersPost(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersCountGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersCountGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersInviteUserPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersInviteUserPost(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersPost(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersUserIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + var userId string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdDelete(context.Background(), realm, id, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersUserIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + var userId string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdGet(context.Background(), realm, id, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + var userId string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet(context.Background(), realm, id, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsIdPut(context.Background(), realm, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsMembersIdOrganizationsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var id string + + resp, httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsMembersIdOrganizationsGet(context.Background(), realm, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService AdminRealmsRealmOrganizationsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.OrganizationsAPI.AdminRealmsRealmOrganizationsPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_protocol_mappers_test.go b/test/api_protocol_mappers_test.go new file mode 100644 index 0000000..eaa138a --- /dev/null +++ b/test/api_protocol_mappers_test.go @@ -0,0 +1,340 @@ +/* +Keycloak Admin REST API + +Testing ProtocolMappersAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ProtocolMappersAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var id string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete(context.Background(), realm, clientScopeId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var id string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet(context.Background(), realm, clientScopeId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var id string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut(context.Background(), realm, clientScopeId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var protocol string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet(context.Background(), realm, clientScopeId, protocol).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var id string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete(context.Background(), realm, clientScopeId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var id string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet(context.Background(), realm, clientScopeId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var id string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut(context.Background(), realm, clientScopeId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var protocol string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet(context.Background(), realm, clientScopeId, protocol).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var id string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete(context.Background(), realm, clientUuid, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var id string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet(context.Background(), realm, clientUuid, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var id string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut(context.Background(), realm, clientUuid, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProtocolMappersAPIService AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var protocol string + + resp, httpRes, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet(context.Background(), realm, clientUuid, protocol).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_realms_admin_test.go b/test/api_realms_admin_test.go new file mode 100644 index 0000000..e4849ac --- /dev/null +++ b/test/api_realms_admin_test.go @@ -0,0 +1,645 @@ +/* +Keycloak Admin REST API + +Testing RealmsAdminAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_RealmsAdminAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test RealmsAdminAPIService AdminRealmsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsPost(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmAdminEventsDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmAdminEventsDelete(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmAdminEventsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmAdminEventsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientDescriptionConverterPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientDescriptionConverterPost(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientPoliciesPoliciesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesPoliciesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientPoliciesPoliciesPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesPoliciesPut(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientPoliciesProfilesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesProfilesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientPoliciesProfilesPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientPoliciesProfilesPut(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientSessionStatsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientSessionStatsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientTypesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientTypesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmClientTypesPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmClientTypesPut(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmCredentialRegistratorsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmCredentialRegistratorsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultDefaultClientScopesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultDefaultClientScopesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultGroupsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultGroupsGroupIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGroupIdDelete(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultGroupsGroupIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultGroupsGroupIdPut(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDefaultOptionalClientScopesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDefaultOptionalClientScopesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmDelete(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmEventsConfigGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsConfigGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmEventsConfigPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsConfigPut(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmEventsDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsDelete(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmEventsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmEventsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmGroupByPathPathGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var path string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmGroupByPathPathGet(context.Background(), realm, path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLocalizationGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLocalizationLocaleDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var locale string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleDelete(context.Background(), realm, locale).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLocalizationLocaleGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var locale string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleGet(context.Background(), realm, locale).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLocalizationLocaleKeyDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var key string + var locale string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyDelete(context.Background(), realm, key, locale).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLocalizationLocaleKeyGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var key string + var locale string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyGet(context.Background(), realm, key, locale).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLocalizationLocaleKeyPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var key string + var locale string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocaleKeyPut(context.Background(), realm, key, locale).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLocalizationLocalePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var locale string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLocalizationLocalePost(context.Background(), realm, locale).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmLogoutAllPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmLogoutAllPost(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmPartialExportPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPartialExportPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmPartialImportPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPartialImportPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmPushRevocationPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPushRevocationPost(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmPut(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmSessionsSessionDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var session string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmSessionsSessionDelete(context.Background(), realm, session).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmTestSMTPConnectionPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmTestSMTPConnectionPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmUsersManagementPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RealmsAdminAPIService AdminRealmsRealmUsersManagementPermissionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RealmsAdminAPI.AdminRealmsRealmUsersManagementPermissionsPut(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_role_mapper_test.go b/test/api_role_mapper_test.go new file mode 100644 index 0000000..1f97a6b --- /dev/null +++ b/test/api_role_mapper_test.go @@ -0,0 +1,201 @@ +/* +Keycloak Admin REST API + +Testing RoleMapperAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_RoleMapperAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var groupId string + + httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost(context.Background(), realm, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmUsersUserIdRoleMappingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmUsersUserIdRoleMappingsRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RoleMapperAPIService AdminRealmsRealmUsersUserIdRoleMappingsRealmPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.RoleMapperAPI.AdminRealmsRealmUsersUserIdRoleMappingsRealmPost(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_roles_by_id_test.go b/test/api_roles_by_id_test.go new file mode 100644 index 0000000..b93e3c3 --- /dev/null +++ b/test/api_roles_by_id_test.go @@ -0,0 +1,172 @@ +/* +Keycloak Admin REST API + +Testing RolesByIDAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_RolesByIDAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleId string + + resp, httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet(context.Background(), realm, clientUuid, roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdCompositesDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesDelete(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdCompositesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + resp, httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesGet(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdCompositesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesPost(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + resp, httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdDelete(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + resp, httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdGet(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + resp, httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + resp, httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesByIDAPIService AdminRealmsRealmRolesByIdRoleIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleId string + + httpRes, err := apiClient.RolesByIDAPI.AdminRealmsRealmRolesByIdRoleIdPut(context.Background(), realm, roleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_roles_test.go b/test/api_roles_test.go new file mode 100644 index 0000000..df8d029 --- /dev/null +++ b/test/api_roles_test.go @@ -0,0 +1,447 @@ +/* +Keycloak Admin REST API + +Testing RolesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_RolesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + var clientInCompositeUuid string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet(context.Background(), realm, clientUuid, roleName, clientInCompositeUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameDelete(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGet(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNamePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNamePut(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet(context.Background(), realm, clientUuid, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameCompositesDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesDelete(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameCompositesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesGet(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameCompositesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesPost(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameCompositesRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameCompositesRealmGet(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameDelete(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameGet(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameGroupsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameGroupsGet(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameManagementPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsGet(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameManagementPermissionsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameManagementPermissionsPut(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNamePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNamePut(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RolesAPIService AdminRealmsRealmRolesRoleNameUsersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var roleName string + + resp, httpRes, err := apiClient.RolesAPI.AdminRealmsRealmRolesRoleNameUsersGet(context.Background(), realm, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_scope_mappings_test.go b/test/api_scope_mappings_test.go new file mode 100644 index 0000000..ac1c956 --- /dev/null +++ b/test/api_scope_mappings_test.go @@ -0,0 +1,523 @@ +/* +Keycloak Admin REST API + +Testing ScopeMappingsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_ScopeMappingsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + var client string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost(context.Background(), realm, clientScopeId, client).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientScopeId string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost(context.Background(), realm, clientScopeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet(context.Background(), realm, clientUuid, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet(context.Background(), realm, clientUuid, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var client string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete(context.Background(), realm, clientUuid, client).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var client string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet(context.Background(), realm, clientUuid, client).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + var client string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost(context.Background(), realm, clientUuid, client).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + resp, httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ScopeMappingsAPIService AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var clientUuid string + + httpRes, err := apiClient.ScopeMappingsAPI.AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost(context.Background(), realm, clientUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_users_test.go b/test/api_users_test.go new file mode 100644 index 0000000..61ad3dd --- /dev/null +++ b/test/api_users_test.go @@ -0,0 +1,522 @@ +/* +Keycloak Admin REST API + +Testing UsersAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keycloak_admin_client + +import ( + "context" + openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keycloak_admin_client_UsersAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersCountGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersCountGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersPost(context.Background(), realm).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersProfileGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersProfileGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersProfileMetadataGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersProfileMetadataGet(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersProfilePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersProfilePut(context.Background(), realm).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdConsentsClientDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var client string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdConsentsClientDelete(context.Background(), realm, userId, client).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdConsentsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdConsentsGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var credentialId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete(context.Background(), realm, userId, credentialId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var credentialId string + var newPreviousCredentialId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(context.Background(), realm, userId, credentialId, newPreviousCredentialId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var credentialId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost(context.Background(), realm, userId, credentialId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var credentialId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut(context.Background(), realm, userId, credentialId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdCredentialsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdCredentialsGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdDelete(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdDisableCredentialTypesPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdDisableCredentialTypesPut(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdExecuteActionsEmailPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdExecuteActionsEmailPut(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdFederatedIdentityGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var provider string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete(context.Background(), realm, userId, provider).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var provider string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost(context.Background(), realm, userId, provider).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdGroupsCountGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsCountGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdGroupsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdGroupsGroupIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var groupId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsGroupIdDelete(context.Background(), realm, userId, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdGroupsGroupIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var groupId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdGroupsGroupIdPut(context.Background(), realm, userId, groupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdImpersonationPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdImpersonationPost(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdLogoutPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdLogoutPost(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + var clientUuid string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet(context.Background(), realm, userId, clientUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdPut(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdResetPasswordEmailPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdResetPasswordEmailPut(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdResetPasswordPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdResetPasswordPut(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdSendVerifyEmailPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdSendVerifyEmailPut(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdSessionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdSessionsGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService AdminRealmsRealmUsersUserIdUnmanagedAttributesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var realm string + var userId string + + resp, httpRes, err := apiClient.UsersAPI.AdminRealmsRealmUsersUserIdUnmanagedAttributesGet(context.Background(), realm, userId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go new file mode 100644 index 0000000..057b05b --- /dev/null +++ b/utils.go @@ -0,0 +1,361 @@ +/* +Keycloak Admin REST API + +This is a REST API reference for the Keycloak Admin REST API. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keycloak_admin_client + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +}